var Coline_data = [ {"nom7bit": "jeudi 15 mars", "id": "2125", "nom": "jeudi 15 mars", "items": [{ "type" : "T-shirt", "marque" : "H&M" }, { "type" : "Väst", "marque" : "H&M" }, { "type" : "Jeans", "marque" : "Cheap Monday" }, { "type" : "Ankelboots", "marque" : "Minnetonka" }, { "type" : "Solglasögon", "marque" : "Camaieu" }, { "type" : "Halsband", "marque" : "H&M" }, { "type" : "Skärp", "marque" : "IKKS" }] }, 
{"nom7bit": "Vendredi 16 mai", "id": "2127", "nom": "Vendredi 16 mai", "items": [{ "type" : "Blus", "marque" : "Erotokritos" }, { "type" : "Väst", "marque" : "H&M" }, { "type" : "Kjol", "marque" : "Maman de Tinky" }] }, 
{"nom7bit": "190508", "id": "2132", "nom": "19.05.08", "items": [{ "type" : "Väst", "marque" : "American Retro" }, { "type" : "Stay-ups", "marque" : "Cheap Monday" }, { "type" : "Stövlar", "marque" : "Vintage" }, { "type" : "Handväska", "marque" : "Vintage" }] }, 
{"nom7bit": "220508", "id": "2141", "nom": "22.05.08", "items": [{ "type" : "T-shirt", "marque" : "H&M" }, { "type" : "Väst", "marque" : "Zara" }, { "type" : "Klänning", "marque" : "H&M" }, { "type" : "Stövlar", "marque" : "Vintage" }, { "type" : "Handväska", "marque" : "H&M" }] }, 
{"nom7bit": "27 mai 2008", "id": "2177", "nom": "27 mai 2008", "items": [{ "type" : "Blus", "marque" : "Marc Jacobs" }, { "type" : "Klänning", "marque" : "H&M" }, { "type" : "Stövlar", "marque" : "Vintage" }] }, 
{"nom7bit": "280508", "id": "2205", "nom": "28.05.08", "items": [{ "type" : "T-shirt", "marque" : "Bershka" }, { "type" : "Kavaj", "marque" : "Jennyfer" }, { "type" : "Jeans", "marque" : "Zara Enfants" }, { "type" : "Stadsskor", "marque" : "Steve Madden" }] }, 
{"nom7bit": "030608", "id": "2254", "nom": "03.06.08", "items": [{ "type" : "Blus", "marque" : "Pineapple" }, { "type" : "Stay-ups", "marque" : "Cheap Monday" }, { "type" : "Ballerinaskor", "marque" : "Manoush" }] }, 
{"nom7bit": "060608", "id": "2292", "nom": "06.06.08", "items": [{ "type" : "Blus", "marque" : "Gat Rimon" }, { "type" : "Blus", "marque" : "H&M" }, { "type" : "Ballerinaskor", "marque" : "Colorama de Pierre Hardy" }, { "type" : "Armbandsklocka", "marque" : "Oasis" }] }, 
{"nom7bit": "100608", "id": "2333", "nom": "10.06.08", "items": [{ "type" : "Korsett", "marque" : "H&M" }, { "type" : "Jacka", "marque" : "Adidas" }, { "type" : "Jeans", "marque" : "Cheap Monday" }, { "type" : "Platåskor", "marque" : "Steve Madden" }] }, 
{"nom7bit": "250608", "id": "2378", "nom": "25.06.08", "items": [{ "type" : "Topp", "marque" : "Bérangère Claire" }, { "type" : "Klänning", "marque" : "H&M" }, { "type" : "Ankelboots", "marque" : "Bronx" }, { "type" : "Handväska", "marque" : "Pimkie" }] }, 
{"nom7bit": "AR", "id": "2430", "nom": "A.R.", "items": [{ "type" : "Blus", "marque" : "American Retro" }, { "type" : "Stay-ups", "marque" : "Cheap Monday" }, { "type" : "Platåskor", "marque" : "New look" }] }, 
{"nom7bit": "Numph", "id": "2431", "nom": "Numph", "items": [{ "type" : "T-shirt", "marque" : "Nümph" }, { "type" : "Stay-ups", "marque" : "Zara" }, { "type" : "Platåskor", "marque" : "Zara" }] }, 
{"nom7bit": "Gat Rimon", "id": "2432", "nom": "Gat Rimon", "items": [{ "type" : "Klänning", "marque" : "Gat Rimon" }] }, 
{"nom7bit": "Satinee", "id": "2433", "nom": "Satinée", "items": [{ "type" : "Blus", "marque" : "April May" }, { "type" : "Kavaj", "marque" : "Jennyfer" }, { "type" : "Jeans", "marque" : "Cheap Monday" }, { "type" : "Ballerinaskor", "marque" : "Maloles" }] }, 
{"nom7bit": "230708", "id": "2457", "nom": "23.07.08", "items": [{ "type" : "T-shirt", "marque" : "Gap" }, { "type" : "Väst", "marque" : "H&M" }, { "type" : "Piratbyxor", "marque" : "Zara" }, { "type" : "Ankelboots", "marque" : "Urban Outfitters" }, { "type" : "Halsband", "marque" : "Etsy" }, { "type" : "Örhängen", "marque" : "Stay In Love" }] }, 
{"nom7bit": "pantalon beige", "id": "2478", "nom": "pantalon beige", "items": [{ "type" : "T-shirt", "marque" : "Gap" }, { "type" : "Stay-ups", "marque" : "H&M" }, { "type" : "Sandaler", "marque" : "Urban Outfitters" }] }, 
{"nom7bit": "Surface2Air", "id": "2479", "nom": "Surface2Air", "items": [{ "type" : "Blus", "marque" : "Surface to air" }, { "type" : "Stay-ups", "marque" : "Cheap Monday" }, { "type" : "Ballerinaskor", "marque" : "Bronx" }, { "type" : "Väst", "marque" : "H&M" }, { "type" : "Scarf/Sjal", "marque" : "H&M" }] }, 
{"nom7bit": "Hey Michael", "id": "2480", "nom": "Hey Michael!", "items": [{ "type" : "T-shirt", "marque" : "Soft Grey" }, { "type" : "Väst", "marque" : "Zara" }, { "type" : "Bermudashorts", "marque" : "H&M Enfant" }, { "type" : "Platåskor", "marque" : "Michael Kors" }] }, 
{"nom7bit": "Pink", "id": "2483", "nom": "Pink", "items": [{ "type" : "Blus", "marque" : "Erotokritos" }, { "type" : "Stay-ups", "marque" : "Cheap Monday" }, { "type" : "Ballerinaskor", "marque" : "Topshop" }] }, 
{"nom7bit": "Ma robe rose", "id": "2603", "nom": "Ma robe rose", "items": [{ "type" : "Klänning", "marque" : "APC" }, { "type" : "Ballerinaskor", "marque" : "Etam" }, { "type" : "Handväska", "marque" : "APC" }] }, 
{"nom7bit": "Folk", "id": "2608", "nom": "Folk", "items": [{ "type" : "Klänning", "marque" : "Vero Moda" }, { "type" : "Ankelboots", "marque" : "Zara" }, { "type" : "Väst", "marque" : "Pimkie" }] }];

var Coline_tofindex = 9;

function Coline_updatetof() {
  var tag = document.getElementById('look_Coline');
  var dbgstr = Coline_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://sv.cloziz.com/look/thumb/lookid/' + Coline_data[Coline_tofindex].id;
  var new_link = 'http://sv.cloziz.com/look/show/lookid/' + Coline_data[Coline_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", Coline_data[Coline_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_Coline');
  if (tag) {
    tag.innerHTML = Coline_data[Coline_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_Coline');
  if (tag) {
    var items = Coline_data[Coline_tofindex].items;
    tag.innerHTML = "";
    for(var i=0; i<items.length; i++) {
      tag.innerHTML += '<li style="display: inline;">';
      tag.innerHTML += items[i].type + " : " + items[i].marque;
      if(i<items.length-1)
        tag.innerHTML += ',';
      tag.innerHTML += "</li>  ";
    }
  }
  tag = document.getElementById('link1_Coline');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_Coline');
  if (tag) tag.href = new_link;
  return true;
}

function Coline_nexttof() {
  Coline_tofindex++;
  if(Coline_tofindex == Coline_data.length)
    Coline_tofindex = 0;
  return Coline_updatetof();
}

function Coline_prevtof() {
  if(Coline_tofindex==0)
    Coline_tofindex = Coline_data.length;
  Coline_tofindex--;
  return Coline_updatetof();
}

document.write('<div style="margin: 0 auto; width: 230px; font-family: Arial, sans-serif;">');
document.write('<div style="height: 40px; margin: 0 5px; background: url(http://sv.cloziz.com/images/widget/widget_top_bg-left.gif) left top no-repeat;">');
document.write('<div style="height: 40px; margin: 0 auto; background: url(http://sv.cloziz.com/images/widget/widget_top_bg-right.gif) right top no-repeat;">');
document.write('<div style="padding: 2px 0 0 5px;">');
document.write('<a href="http://sv.cloziz.com">');
document.write('<img style="border: 0; padding: 0;" src="http://sv.cloziz.com/images/widget/widget_top_clozizlogo.gif" alt="" /></a>');
document.write('</div></div></div>');

document.write('<div style="margin: 0 5px; padding: 0 10px; background: url(http://sv.cloziz.com/images/widget/widget_mid_bg_top.gif) repeat-x bottom #C5C5C5;">'); // mid mcontent
document.write('<div style="height: 5px; background: url(http://sv.cloziz.com/images/widget/widget_mid_content_top_bg-left.gif) left bottom no-repeat;">'); // content-top left
document.write('<div style="height: 5px; background: url(http://sv.cloziz.com/images/widget/widget_mid_content_top_bg-right.gif) right bottom no-repeat;">'); // content-top right
document.write('</div></div>');
document.write('<div style="padding: 3px 0 6px 0; background: #fff; text-align: center;">'); // content
document.write('<div>'); // photo
document.write('<a target="_blank" id="link1_Coline" href="http://sv.cloziz.com/Coline/look/jeudi+15+mars"><img id="look_Coline" alt="jeudi 15 mars" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://sv.cloziz.com/look/thumb/lookid/2125" /></a>\n');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('<div style="width: 100%; height: 60px;">'); //mid nav
document.write('<div style="float: left; width: 25px; height: 60px;">');  // nav previous
document.write('<a href="#" onClick="Coline_prevtof(); return false;">');
document.write('<img style="margin: 0; padding: 0; width: 25px; height: 60px; border: 0; background: url(http://sv.cloziz.com/images/widget/widget_mid_nav_prev.gif) top no-repeat;" src="http://sv.cloziz.com/images/widget/void.gif" alt="previous" onmouseover="style.backgroundPosition=\'bottom\'" onmouseout="style.backgroundPosition=\'top\'">');
document.write('</a>');
document.write('</div>');
document.write('<div style="float: right; width: 25px; height: 60px;">'); // nav next
document.write('<a href="#" onClick="Coline_nexttof(); return false;">');
document.write('<img style="margin: 0; padding: 0; width: 25px; height: 60px; border: 0; background: url(http://sv.cloziz.com/images/widget/widget_mid_nav_next.gif) top no-repeat;" src="http://sv.cloziz.com/images/widget/void.gif" alt="next" onmouseover="style.background=\'url(http://sv.cloziz.com/images/widget/widget_mid_nav_next.gif) bottom no-repeat;\'" onmouseout="style.background=\'url(http://sv.cloziz.com/images/widget/widget_mid_nav_next.gif) top no-repeat;\'">');
document.write('</a>');
document.write('</div>');

document.write('<div style="margin: 0 25px; padding: 0 1px; text-align: center; background: #fff;">'); // lookdata
document.write('<h1 style="margin: 0; padding: 0; border: 0; height: 18px; font-size: 14px; font-weight: bold;">');
document.write('<a style="color: #d0517e; text-decoration: none;" href="#" id="nomlook_Coline" onmouseover="style.color=\'#910134\'" onmouseout="style.color=\'#d0517e\'">Nomdulook</a>');
document.write('</h1>');
document.write('<ul style="margin: 0; padding: 0 10px; height: 42px; list-style: none; text-align: center; line-height: 10px; overflow: hidden; font-size: 10px; color: #000;" id="detaillook_Coline">');
document.write('<li>detail</li>');
document.write('</ul>');
document.write('</div>');
document.write('</div>');
document.write('<div style="clear: both;">'); // clear
document.write('</div>');
document.write('<div style="margin: 0 5px; padding: 0 10px; height: 20px; background: url(http://sv.cloziz.com/images/widget/widget_mid_bg_btm.gif) repeat-x top #C5C5C5;">'); // mid links
document.write('<div style="padding: 2px 10px 0 10px; background: #fff; line-height: 16px; text-align: right;">'); // links
document.write('<a href="http://sv.cloziz.com" style="font-size: 10px; text-decoration: none; color: #910134;" onmouseover="style.color=\'#5d0122\'" onmouseout="style.color=\'#910134\'" id="link2_Coline">Le reste sur cloziz.com</a>');
document.write('</div>');
document.write('<div style="height: 5px; font-size: 0px; background: url(http://sv.cloziz.com/images/widget/widget_mid_content_btm_bg-left.gif) left top no-repeat;">'); // content-btm left
document.write('<div style="height: 5px; font-size: 0px; background: url(http://sv.cloziz.com/images/widget/widget_mid_content_btm_bg-right.gif) right top no-repeat;">'); // content-btm right
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('<div style="margin: 0 auto; height: 10px; font-size: 0px;">'); // wbtm
document.write('<div style="margin: 0 5px; height: 10px; background: url(http://sv.cloziz.com/images/widget/widget_btm_bg-left.gif) left top no-repeat;">'); // wbtm bleft
document.write('<div style="height: 10px; background: url(http://sv.cloziz.com/images/widget/widget_btm_bg-right.gif) right top no-repeat;">'); // wbtm bright
document.write('</div>');
document.write('</div>');
document.write('</div>');

document.write('</div>');

Coline_updatetof();


