var Breadandbutter08_data = [ {"nom7bit": "HellsBells", "id": "1673", "nom": "HellsBells", "items": [{ "type" : "Kavaj", "marque" : "Hells Bells" }, { "type" : "Jeans", "marque" : "Hells Bells" }] }, 
{"nom7bit": "Bread and Butter inconnue", "id": "1674", "nom": "Bread and Butter inconnue", "items": [{ "type" : "Pumps", "marque" : "Free Lance" }] }, 
{"nom7bit": "Blue Guy", "id": "1675", "nom": "Blue Guy", "items": [{ "type" : "Kavaj", "marque" : "Versace" }, { "type" : "Handväska", "marque" : "Dolce & Gabbana" }] }, 
{"nom7bit": "Paul and jolies baskets", "id": "1676", "nom": "Paul and jolies baskets", "items": [{ "type" : "Sneakers", "marque" : "Paul and Joe" }] }, 
{"nom7bit": "Bread and Butter Japan S", "id": "1677", "nom": "Bread and Butter Japan S", "items": [{ "type" : "Sneakers", "marque" : "K-Swiss" }, { "type" : "Sneakers", "marque" : "Adidas" }] }, 
{"nom7bit": "Shooping in BB08", "id": "1678", "nom": "Shooping in B&B08", "items": [{ "type" : "Annat", "marque" : "Bread and Butter" }] }, 
{"nom7bit": "Bread Wall", "id": "1692", "nom": "Bread Wall", "items": [{ "type" : "Jeans", "marque" : "Acne jeans" }, { "type" : "Stay-ups", "marque" : "Reebok" }] }, 
{"nom7bit": "Bread Girly pinky", "id": "1693", "nom": "Bread Girly pinky", "items": [] }, 
{"nom7bit": "Bread for guys", "id": "1694", "nom": "Bread for guys", "items": [{ "type" : "Blus", "marque" : "Hartford" }, { "type" : "Slips", "marque" : "Hartford" }, { "type" : "Skjorta", "marque" : "Hartford" }] }, 
{"nom7bit": "Girly cutie at the Bread", "id": "1695", "nom": "Girly cutie at the Bread", "items": [] }, 
{"nom7bit": "Paul And Joe Total Look", "id": "1714", "nom": "Paul And Joe Total Look", "items": [{ "type" : "Kavaj", "marque" : "Paul and Joe" }, { "type" : "Sneakers", "marque" : "Paul and Joe" }] }];

var Breadandbutter08_tofindex = 4;

function Breadandbutter08_updatetof() {
  var tag = document.getElementById('look_Breadandbutter08');
  var dbgstr = Breadandbutter08_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://sv.cloziz.com/look/thumb/lookid/' + Breadandbutter08_data[Breadandbutter08_tofindex].id;
  var new_link = 'http://sv.cloziz.com/look/show/lookid/' + Breadandbutter08_data[Breadandbutter08_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", Breadandbutter08_data[Breadandbutter08_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_Breadandbutter08');
  if (tag) {
    tag.innerHTML = Breadandbutter08_data[Breadandbutter08_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_Breadandbutter08');
  if (tag) {
    var items = Breadandbutter08_data[Breadandbutter08_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_Breadandbutter08');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_Breadandbutter08');
  if (tag) tag.href = new_link;
  return true;
}

function Breadandbutter08_nexttof() {
  Breadandbutter08_tofindex++;
  if(Breadandbutter08_tofindex == Breadandbutter08_data.length)
    Breadandbutter08_tofindex = 0;
  return Breadandbutter08_updatetof();
}

function Breadandbutter08_prevtof() {
  if(Breadandbutter08_tofindex==0)
    Breadandbutter08_tofindex = Breadandbutter08_data.length;
  Breadandbutter08_tofindex--;
  return Breadandbutter08_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_Breadandbutter08" href="http://sv.cloziz.com/Breadandbutter08/look/HellsBells"><img id="look_Breadandbutter08" alt="HellsBells" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://sv.cloziz.com/look/thumb/lookid/1673" /></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="Breadandbutter08_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="Breadandbutter08_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_Breadandbutter08" 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_Breadandbutter08">');
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_Breadandbutter08">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>');

Breadandbutter08_updatetof();


