var Eight_data = [ {"nom7bit": "Maje Hi Hi", "id": "1015", "nom": "Maje Hi Hi", "items": [{ "type" : "Dress", "marque" : "Maje" }] }, 
{"nom7bit": "Vanessa Bruno", "id": "1016", "nom": "Vanessa Bruno", "items": [{ "type" : "Top", "marque" : "Vanessa Bruno" }] }, 
{"nom7bit": "Eight Sandro1", "id": "1031", "nom": "Eight Sandro1", "items": [{ "type" : "Jacket", "marque" : "Sandro" }, { "type" : "T-shirt", "marque" : "Petit Bateau" }, { "type" : "Jeans", "marque" : "Cheap Monday" }] }, 
{"nom7bit": "Eight Jonak", "id": "1032", "nom": "Eight Jonak", "items": [{ "type" : "Shoes", "marque" : "Jonak" }] }, 
{"nom7bit": "Eight Zadig", "id": "1074", "nom": "Eight Zadig", "items": [{ "type" : "Top", "marque" : "Zadig et Voltaire" }, { "type" : "Jeans", "marque" : "Diesel" }, { "type" : "Necklace", "marque" : "Tiffany" }] }, 
{"nom7bit": "Eight Chapeau", "id": "1075", "nom": "Eight Chapeau", "items": [{ "type" : "Hat", "marque" : "Andre" }, { "type" : "T-shirt", "marque" : "Petit Bateau" }, { "type" : "Gilet", "marque" : "Kookai" }, { "type" : "Bag / Purse", "marque" : "Zara" }] }, 
{"nom7bit": "Eight chapeau suite2", "id": "1103", "nom": "Eight chapeau suite2", "items": [{ "type" : "Hat", "marque" : "Andre" }, { "type" : "T-shirt", "marque" : "Petit Bateau" }, { "type" : "Gilet", "marque" : "Kookai" }, { "type" : "Bag / Purse", "marque" : "Zara" }] }, 
{"nom7bit": "Eight Cheap Lundi", "id": "1104", "nom": "Eight Cheap Lundi", "items": [{ "type" : "T-shirt", "marque" : "Petit Bateau" }, { "type" : "Gilet", "marque" : "Maje" }, { "type" : "Pants", "marque" : "Cheap Monday" }, { "type" : "Sandals", "marque" : "Jonak" }] }, 
{"nom7bit": "Eight Maje Hermes", "id": "1105", "nom": "Eight Maje Hermes", "items": [{ "type" : "Dress", "marque" : "Maje" }, { "type" : "Shoes", "marque" : "Jonak" }, { "type" : "Bag / Purse", "marque" : "Hermes" }, { "type" : "Necklace", "marque" : "Tiffany & Co" }] }, 
{"nom7bit": "Eight WhiteHAUT", "id": "1178", "nom": "Eight White-HAUT", "items": [{ "type" : "Blouse", "marque" : "Sandro" }, { "type" : "Jeans", "marque" : "Diesel" }] }, 
{"nom7bit": "Eight WhiteBAS", "id": "1179", "nom": "Eight White-BAS", "items": [{ "type" : "Jeans", "marque" : "Diesel" }, { "type" : "Sling-backs", "marque" : "Sandro" }] }, 
{"nom7bit": "Eight12", "id": "1255", "nom": "Eight-12", "items": [{ "type" : "Top", "marque" : "Vanessa Bruno" }, { "type" : "Cropped pants", "marque" : "Gap" }, { "type" : "Sling-backs", "marque" : "Valentino" }] }, 
{"nom7bit": "EightCapucine Puerari", "id": "1256", "nom": "Eight-Capucine Puerari", "items": [{ "type" : "Cache-coeur", "marque" : "Capucine Puerari" }, { "type" : "Jeans", "marque" : "Gap" }] }, 
{"nom7bit": "Sac a Eight", "id": "1272", "nom": "Sac à Eight", "items": [{ "type" : "Blouse", "marque" : "Zara" }, { "type" : "Bag / Purse", "marque" : "Zara" }] }];

var Eight_tofindex = 11;

function Eight_updatetof() {
  var tag = document.getElementById('look_Eight');
  var dbgstr = Eight_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://www.cloziz.com/look/thumb/lookid/' + Eight_data[Eight_tofindex].id;
  var new_link = 'http://www.cloziz.com/look/show/lookid/' + Eight_data[Eight_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", Eight_data[Eight_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_Eight');
  if (tag) {
    tag.innerHTML = Eight_data[Eight_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_Eight');
  if (tag) {
    var items = Eight_data[Eight_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_Eight');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_Eight');
  if (tag) tag.href = new_link;
  return true;
}

function Eight_nexttof() {
  Eight_tofindex++;
  if(Eight_tofindex == Eight_data.length)
    Eight_tofindex = 0;
  return Eight_updatetof();
}

function Eight_prevtof() {
  if(Eight_tofindex==0)
    Eight_tofindex = Eight_data.length;
  Eight_tofindex--;
  return Eight_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_Eight" href="http://www.cloziz.com/Eight/look/Maje+Hi+Hi"><img id="look_Eight" alt="Maje Hi Hi" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://www.cloziz.com/look/thumb/lookid/1015" /></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="Eight_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="Eight_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_Eight" 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_Eight">');
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_Eight">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>');

Eight_updatetof();


