var Courantdair_data = [ {"nom7bit": "Une tenue Boulot2", "id": "806", "nom": "Une tenue Boulot2", "items": [{ "type" : "Blouse", "marque" : "H&M" }] }, 
{"nom7bit": "Antiquites toujours dactu D Pour le boulot aussi entre autres1", "id": "828", "nom": "Antiquités toujours d'actu ;D Pour le boulot aussi entre autres", "items": [{ "type" : "Tank", "marque" : "H&M" }, { "type" : "Pants", "marque" : "Kookai" }] }, 
{"nom7bit": "Graphique", "id": "829", "nom": "Graphique", "items": [{ "type" : "Tunic", "marque" : "Fait Maison" }, { "type" : "Pants", "marque" : "La City" }, { "type" : "Necklace", "marque" : "H&M" }] }, 
{"nom7bit": "Leopard Party", "id": "830", "nom": "Léopard Party !", "items": [{ "type" : "Longline bra", "marque" : "Mango" }, { "type" : "Jeans", "marque" : "Pimkie" }, { "type" : "Necklace", "marque" : "Fait Maison" }] }, 
{"nom7bit": "A la DJeunZ", "id": "831", "nom": "A la D'Jeun'Z !", "items": [{ "type" : "Tunic", "marque" : "LR" }, { "type" : "Gilet", "marque" : "Mango" }, { "type" : "Jeans", "marque" : "Fait Maison" }, { "type" : "Platforms", "marque" : "San Marina" }, { "type" : "Chaîne", "marque" : "Camaieu" }, { "type" : "Belt", "marque" : "Promod" }] }, 
{"nom7bit": "Un Anniv Deguise", "id": "832", "nom": "Un Anniv Déguisé", "items": [{ "type" : "Foulard", "marque" : "Fait Maison" }, { "type" : "Wig", "marque" : "Grossiste Coiffeur" }, { "type" : "Tank", "marque" : "H&M" }, { "type" : "Foulard", "marque" : "Fait Maison" }, { "type" : "Skirt", "marque" : "H&M" }, { "type" : "Thongs", "marque" : "Fait Maison" }, { "type" : "Necklace", "marque" : "Fait Maison" }, { "type" : "Belt", "marque" : "Xanaka" }, { "type" : "Make-up", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Saturday Night Fever", "id": "2027", "nom": "Saturday Night Fever", "items": [{ "type" : "Tunic", "marque" : "Fait Maison" }, { "type" : "Pants", "marque" : "Fait Maison" }, { "type" : "Three quarter boots", "marque" : "Cosmo" }] }, 
{"nom7bit": "Liberty Power", "id": "2028", "nom": "Liberty Power !!", "items": [{ "type" : "Dress", "marque" : "H&M" }] }, 
{"nom7bit": "Liberty Power toujours", "id": "2029", "nom": "Liberty Power toujours", "items": [] }, 
{"nom7bit": "Black and Cream", "id": "2030", "nom": "Black and Cream", "items": [{ "type" : "Dress", "marque" : "Fait Maison" }, { "type" : "Men's underpants", "marque" : "Fait Maison" }, { "type" : "Sling-backs", "marque" : "H&M" }, { "type" : "Belt", "marque" : "Mango" }] }, 
{"nom7bit": "Les Shoes et moi", "id": "2031", "nom": "Les Shoes et moi", "items": [{ "type" : "Sling-backs", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Estival", "id": "2065", "nom": "Estival", "items": [{ "type" : "Blouse", "marque" : "New look" }, { "type" : "Jeans", "marque" : "Mim" }, { "type" : "Shoes", "marque" : "Manoush" }] }, 
{"nom7bit": "LOVE LOVE LOVE", "id": "2066", "nom": "LOVE LOVE LOVE", "items": [{ "type" : "Shoes", "marque" : "Manoush" }] }];

var Courantdair_tofindex = 4;

function Courantdair_updatetof() {
  var tag = document.getElementById('look_Courantdair');
  var dbgstr = Courantdair_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://www.cloziz.com/look/thumb/lookid/' + Courantdair_data[Courantdair_tofindex].id;
  var new_link = 'http://www.cloziz.com/look/show/lookid/' + Courantdair_data[Courantdair_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", Courantdair_data[Courantdair_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_Courantdair');
  if (tag) {
    tag.innerHTML = Courantdair_data[Courantdair_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_Courantdair');
  if (tag) {
    var items = Courantdair_data[Courantdair_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_Courantdair');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_Courantdair');
  if (tag) tag.href = new_link;
  return true;
}

function Courantdair_nexttof() {
  Courantdair_tofindex++;
  if(Courantdair_tofindex == Courantdair_data.length)
    Courantdair_tofindex = 0;
  return Courantdair_updatetof();
}

function Courantdair_prevtof() {
  if(Courantdair_tofindex==0)
    Courantdair_tofindex = Courantdair_data.length;
  Courantdair_tofindex--;
  return Courantdair_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://www.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://www.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://www.cloziz.com">');
document.write('<img style="border: 0; padding: 0;" src="http://www.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://www.cloziz.com/images/widget/widget_mid_bg_top.gif) repeat-x bottom #C5C5C5;">'); // mid mcontent
document.write('<div style="height: 5px; background: url(http://www.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://www.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_Courantdair" href="http://www.cloziz.com/Courantdair/look/Une+tenue+Boulot2"><img id="look_Courantdair" alt="Une tenue Boulot2" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://www.cloziz.com/look/thumb/lookid/806" /></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="Courantdair_prevtof(); return false;">');
document.write('<img style="margin: 0; padding: 0; width: 25px; height: 60px; border: 0; background: url(http://www.cloziz.com/images/widget/widget_mid_nav_prev.gif) top no-repeat;" src="http://www.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="Courantdair_nexttof(); return false;">');
document.write('<img style="margin: 0; padding: 0; width: 25px; height: 60px; border: 0; background: url(http://www.cloziz.com/images/widget/widget_mid_nav_next.gif) top no-repeat;" src="http://www.cloziz.com/images/widget/void.gif" alt="next" onmouseover="style.background=\'url(http://www.cloziz.com/images/widget/widget_mid_nav_next.gif) bottom no-repeat;\'" onmouseout="style.background=\'url(http://www.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_Courantdair" 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_Courantdair">');
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://www.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://www.cloziz.com" style="font-size: 10px; text-decoration: none; color: #910134;" onmouseover="style.color=\'#5d0122\'" onmouseout="style.color=\'#910134\'" id="link2_Courantdair">Le reste sur cloziz.com</a>');
document.write('</div>');
document.write('<div style="height: 5px; font-size: 0px; background: url(http://www.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://www.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://www.cloziz.com/images/widget/widget_btm_bg-left.gif) left top no-repeat;">'); // wbtm bleft
document.write('<div style="height: 10px; background: url(http://www.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>');

Courantdair_updatetof();


