var cyron5_data = [ {"nom7bit": "Madeincyr", "id": "1948", "nom": "Madeincyr", "items": [{ "type" : "Pochette", "marque" : "Chanel" }] }, 
{"nom7bit": "2 Bis1", "id": "1965", "nom": "2 Bis1", "items": [] }, 
{"nom7bit": "Wonder cycy", "id": "1966", "nom": "Wonder cycy", "items": [{ "type" : "Shoes", "marque" : "Zara" }, { "type" : "", "marque" : "Fait Maison" }] }, 
{"nom7bit": "WINTER", "id": "2003", "nom": "WINTER", "items": [{ "type" : "T-shirt", "marque" : "Pull and Bear" }, { "type" : "Bonnet", "marque" : "H&M" }, { "type" : "Skirt", "marque" : "Mango" }, { "type" : "Shoes", "marque" : "Zara" }] }, 
{"nom7bit": "Sixties1", "id": "2039", "nom": "Sixties1", "items": [{ "type" : "Sunglasses", "marque" : "Fait Maison" }, { "type" : "Shirt", "marque" : "Mango (je crois)" }, { "type" : "Earrings", "marque" : "BIJOUX BRIGITTE" }] }, 
{"nom7bit": "boudoir", "id": "2064", "nom": "boudoir", "items": [{ "type" : "Glasses", "marque" : "Fait Maison" }, { "type" : "T-shirt", "marque" : "Zara" }, { "type" : "Other", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Vinyleuse", "id": "2088", "nom": "Vinyleuse", "items": [{ "type" : "Dress", "marque" : "Debydebo" }, { "type" : "Shoes", "marque" : "SHOES" }] }, 
{"nom7bit": "Dylaneuse", "id": "2089", "nom": "Dylaneuse", "items": [{ "type" : "Dress", "marque" : "Deby Debo" }, { "type" : "Jeans", "marque" : "Cheap Monday" }] }, 
{"nom7bit": "Jai un Grain D", "id": "2090", "nom": "J'ai un Grain :D", "items": [{ "type" : "Tank", "marque" : "Deby Debo" }] }, 
{"nom7bit": "Pink", "id": "2091", "nom": "Pink", "items": [{ "type" : "Dress", "marque" : "Deby Debo" }] }, 
{"nom7bit": "Cage cage", "id": "2129", "nom": "Cage cage", "items": [{ "type" : "Dress", "marque" : "Etam" }] }, 
{"nom7bit": "Sleeping Dear", "id": "2334", "nom": "Sleeping Dear", "items": [{ "type" : "Sunglasses", "marque" : "Mango" }, { "type" : "Pants", "marque" : "H&M" }, { "type" : "Gilet", "marque" : "Mango" }] }, 
{"nom7bit": "James", "id": "2379", "nom": "James", "items": [{ "type" : "Tank", "marque" : "Firetrap" }] }, 
{"nom7bit": "MadeinCN", "id": "2415", "nom": "MadeinCN", "items": [{ "type" : "Bag / Purse", "marque" : "super lover" }] }, 
{"nom7bit": "Cha La faye", "id": "2444", "nom": "Cha La faye", "items": [{ "type" : "Shoes", "marque" : "Chanel" }] }, 
{"nom7bit": "Sex on the beach", "id": "2540", "nom": "Sex on the beach", "items": [{ "type" : "Jacket", "marque" : "Zara" }, { "type" : "T-shirt", "marque" : " TOP SHOP" }, { "type" : "Overshirt", "marque" : "Naf Naf" }, { "type" : "Pants", "marque" : "Cheap Monday" }, { "type" : "Bag / Purse", "marque" : "BAGLOVERS" }] }, 
{"nom7bit": "Psssshiit", "id": "2672", "nom": "Psssshiit", "items": [{ "type" : "Sunglasses", "marque" : "Fait Maison" }, { "type" : "Earrings", "marque" : "Fait Maison" }, { "type" : "Dress", "marque" : "luxury Dream" }, { "type" : "Shoes", "marque" : "Converses ALL STARS" }] }, 
{"nom7bit": "Indiana", "id": "2680", "nom": "Indiana", "items": [{ "type" : "Gilet", "marque" : "Zara" }, { "type" : "Jeans", "marque" : "Mango" }] }, 
{"nom7bit": "LOVE LOVE LOVE", "id": "2684", "nom": "LOVE LOVE LOVE", "items": [{ "type" : "Earrings", "marque" : "bijoux brigitte" }] }, 
{"nom7bit": "Jerseynight", "id": "2689", "nom": "Jerseynight", "items": [{ "type" : "Gilet", "marque" : "Mango" }, { "type" : "Tank", "marque" : "Deby Debo" }, { "type" : "Jeans", "marque" : "Cheap Monday" }] }, 
{"nom7bit": "BRITAIR", "id": "2704", "nom": "BRIT'AIR", "items": [{ "type" : "Jacket", "marque" : "H&M" }, { "type" : "Dress", "marque" : "Luxury Diamond" }, { "type" : "Foulard", "marque" : "H&M" }] }];

var cyron5_tofindex = 2;

function cyron5_updatetof() {
  var tag = document.getElementById('look_cyron5');
  var dbgstr = cyron5_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://en.cloziz.com/look/thumb/lookid/' + cyron5_data[cyron5_tofindex].id;
  var new_link = 'http://en.cloziz.com/look/show/lookid/' + cyron5_data[cyron5_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", cyron5_data[cyron5_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_cyron5');
  if (tag) {
    tag.innerHTML = cyron5_data[cyron5_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_cyron5');
  if (tag) {
    var items = cyron5_data[cyron5_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_cyron5');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_cyron5');
  if (tag) tag.href = new_link;
  return true;
}

function cyron5_nexttof() {
  cyron5_tofindex++;
  if(cyron5_tofindex == cyron5_data.length)
    cyron5_tofindex = 0;
  return cyron5_updatetof();
}

function cyron5_prevtof() {
  if(cyron5_tofindex==0)
    cyron5_tofindex = cyron5_data.length;
  cyron5_tofindex--;
  return cyron5_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://en.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://en.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://en.cloziz.com">');
document.write('<img style="border: 0; padding: 0;" src="http://en.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://en.cloziz.com/images/widget/widget_mid_bg_top.gif) repeat-x bottom #C5C5C5;">'); // mid mcontent
document.write('<div style="height: 5px; background: url(http://en.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://en.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_cyron5" href="http://en.cloziz.com/cyron5/look/Madeincyr"><img id="look_cyron5" alt="Madeincyr" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://en.cloziz.com/look/thumb/lookid/1948" /></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="cyron5_prevtof(); return false;">');
document.write('<img style="margin: 0; padding: 0; width: 25px; height: 60px; border: 0; background: url(http://en.cloziz.com/images/widget/widget_mid_nav_prev.gif) top no-repeat;" src="http://en.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="cyron5_nexttof(); return false;">');
document.write('<img style="margin: 0; padding: 0; width: 25px; height: 60px; border: 0; background: url(http://en.cloziz.com/images/widget/widget_mid_nav_next.gif) top no-repeat;" src="http://en.cloziz.com/images/widget/void.gif" alt="next" onmouseover="style.background=\'url(http://en.cloziz.com/images/widget/widget_mid_nav_next.gif) bottom no-repeat;\'" onmouseout="style.background=\'url(http://en.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_cyron5" 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_cyron5">');
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://en.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://en.cloziz.com" style="font-size: 10px; text-decoration: none; color: #910134;" onmouseover="style.color=\'#5d0122\'" onmouseout="style.color=\'#910134\'" id="link2_cyron5">Le reste sur cloziz.com</a>');
document.write('</div>');
document.write('<div style="height: 5px; font-size: 0px; background: url(http://en.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://en.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://en.cloziz.com/images/widget/widget_btm_bg-left.gif) left top no-repeat;">'); // wbtm bleft
document.write('<div style="height: 10px; background: url(http://en.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>');

cyron5_updatetof();


