var zedude_data = [ {"nom7bit": "Rock Baby", "id": "14", "nom": "Rock Baby", "items": [{ "type" : "Polo", "marque" : "Pepe jeans" }, { "type" : "Jeans", "marque" : "Pepe jeans" }] }, 
{"nom7bit": "Rock at night", "id": "37", "nom": "Rock at night", "items": [{ "type" : "Jacket", "marque" : "Pepe jeans" }, { "type" : "Shirt", "marque" : "Bruce Field" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Boots", "marque" : "Rautureau" }] }, 
{"nom7bit": "Noel", "id": "155", "nom": "Noel", "items": [{ "type" : "Parka", "marque" : "Pepe jeans" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Sneakers", "marque" : "Converse" }] }, 
{"nom7bit": "my music", "id": "217", "nom": "my music", "items": [{ "type" : "Sweater", "marque" : "Aem Kei" }, { "type" : "Sunglasses", "marque" : "Ray ban" }] }, 
{"nom7bit": "business casual", "id": "218", "nom": "business casual", "items": [{ "type" : "Bonnet", "marque" : "Pepe jeans" }, { "type" : "Jacket", "marque" : "Pepe jeans" }, { "type" : "Sweater", "marque" : "Gap" }, { "type" : "T-shirt", "marque" : "Paul Smith" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Belt", "marque" : "Aem Kei" }, { "type" : "Ordinateur", "marque" : "Apple" }] }, 
{"nom7bit": "PinkGreen", "id": "222", "nom": "Pink&Green", "items": [{ "type" : "Sweater", "marque" : "Bill Tornade" }, { "type" : "Gloves", "marque" : "Guess" }] }, 
{"nom7bit": "At Emmas club in Finland", "id": "232", "nom": "At Emma's (club in Finland)", "items": [{ "type" : "Jacket", "marque" : "Pepe jeans" }, { "type" : "Sweater", "marque" : "Massimo Dutti" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Boots", "marque" : "Rautureau" }, { "type" : "Belt", "marque" : "" }] }, 
{"nom7bit": "Gamer saoul", "id": "283", "nom": "Gamer saoul :)", "items": [{ "type" : "Sweater", "marque" : "Massimo Dutti" }, { "type" : "Sunglasses", "marque" : "Ray ban" }, { "type" : "Video game", "marque" : "Nintendo" }] }, 
{"nom7bit": "Nouvelle shoes", "id": "314", "nom": "Nouvelle shoes", "items": [{ "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Boots", "marque" : "Paul Smith" }] }, 
{"nom7bit": "My wallet", "id": "317", "nom": "My wallet", "items": [{ "type" : "Wallet", "marque" : "Paul Smith" }] }, 
{"nom7bit": "dead t shirt", "id": "350", "nom": "dead t shirt", "items": [{ "type" : "Jacket", "marque" : "Pepe jeans" }, { "type" : "T-shirt", "marque" : "wsh grafik" }] }, 
{"nom7bit": "Rock Watch", "id": "372", "nom": "Rock Watch", "items": [{ "type" : "Watch", "marque" : "Zadig et Voltaire" }] }, 
{"nom7bit": "Schmoove shoes", "id": "436", "nom": "Schmoove shoes", "items": [{ "type" : "Classic shoes", "marque" : "Schmoove" }] }, 
{"nom7bit": "Pimp my tim2", "id": "572", "nom": "Pimp my tim2", "items": [{ "type" : "Shoes", "marque" : "Timberland" }] }, 
{"nom7bit": "Finland in Pepe Jeans", "id": "625", "nom": "Finland in Pepe Jeans", "items": [{ "type" : "Bonnet", "marque" : "Pepe jeans" }, { "type" : "Sunglasses", "marque" : "Ray ban" }, { "type" : "Parka", "marque" : "Pepe jeans" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Three quarter boots", "marque" : "Rautureau" }] }, 
{"nom7bit": "NYC1", "id": "644", "nom": "NYC1", "items": [{ "type" : "Sweater", "marque" : "Energie" }, { "type" : "Jeans", "marque" : "Japan rags" }, { "type" : "", "marque" : "Statue de la Liberté" }] }, 
{"nom7bit": "CLOZIZ IN NYC", "id": "646", "nom": "CLOZIZ IN NYC !!!!", "items": [{ "type" : "", "marque" : "Cloziz" }] }, 
{"nom7bit": "Juicy Dude NYC", "id": "647", "nom": "Juicy Dude NYC", "items": [{ "type" : "T-shirt", "marque" : "Juicy couture" }, { "type" : "Jeans", "marque" : "Juicy couture" }] }, 
{"nom7bit": "CLOZIZ IN NYC  3", "id": "653", "nom": "CLOZIZ IN NYC !!!! 3", "items": [{ "type" : "", "marque" : "Cloziz" }] }, 
{"nom7bit": "Pull Art1", "id": "681", "nom": "Pull Art1", "items": [{ "type" : "Sweater", "marque" : "Arguments" }, { "type" : "Jeans", "marque" : "Japan rags" }, { "type" : "Other", "marque" : "Olympus" }] }, 
{"nom7bit": "Au taff", "id": "692", "nom": "Au taff !", "items": [{ "type" : "T-shirt", "marque" : "Homecore" }, { "type" : "Mp3", "marque" : "Ipod" }, { "type" : "Sunglasses", "marque" : "Ray ban" }] }, 
{"nom7bit": "Soiree cloziz au bar le 31 Zedude2", "id": "723", "nom": "Soiree cloziz au bar le 31- Zedude2", "items": [{ "type" : "Shirt", "marque" : "Banana Republic" }, { "type" : "Tie", "marque" : "Juicy couture" }, { "type" : "Jeans", "marque" : "Levi's" }, { "type" : "Classic shoes", "marque" : "Schmoove" }] }, 
{"nom7bit": "Zoom sur ma cravate", "id": "727", "nom": "Zoom sur ma cravate :)", "items": [{ "type" : "Tie", "marque" : "Juicy couture" }] }, 
{"nom7bit": "Existe en noir", "id": "796", "nom": "Existe en noir :)", "items": [{ "type" : "Watch", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "Ocean Eleven2", "id": "813", "nom": "Ocean Eleven2", "items": [{ "type" : "Jacket", "marque" : "Eleven" }, { "type" : "Jeans", "marque" : "Levi's" }, { "type" : "Belt", "marque" : "Aem Kei" }, { "type" : "T-shirt", "marque" : "Wsh Gaphik" }] }, 
{"nom7bit": "Juicy Eleven at Work", "id": "877", "nom": "Juicy Eleven at Work", "items": [{ "type" : "T-shirt", "marque" : "Juicy couture" }, { "type" : "Jacket", "marque" : "Eleven" }] }, 
{"nom7bit": "Veste New", "id": "904", "nom": "Veste New", "items": [{ "type" : "Jacket", "marque" : "Balthazar" }, { "type" : "T-shirt", "marque" : "wsh grafik" }, { "type" : "Belt", "marque" : "Aem Kei" }] }, 
{"nom7bit": "My new bag", "id": "954", "nom": "My new bag !", "items": [{ "type" : "Bag / Purse", "marque" : "Longchamp" }] }, 
{"nom7bit": "Converse Cat", "id": "975", "nom": "Converse Cat", "items": [{ "type" : "Sneakers", "marque" : "Converse All Star" }] }, 
{"nom7bit": "IBIZA ROCKS", "id": "1143", "nom": "IBIZA ROCKS", "items": [{ "type" : "T-shirt", "marque" : "Pacha" }, { "type" : "Sunglasses", "marque" : "Ray ban" }] }, 
{"nom7bit": "IbizAndales", "id": "1144", "nom": "IbizAndales", "items": [{ "type" : "Espadrilles", "marque" : "Balthazar" }] }, 
{"nom7bit": "aDiorables", "id": "1145", "nom": "aDiorables", "items": [{ "type" : "Sneakers", "marque" : "Dior" }] }, 
{"nom7bit": "Chat Chic1", "id": "1202", "nom": "Chat Chic1", "items": [{ "type" : "", "marque" : "Dior" }] }, 
{"nom7bit": "Artiste", "id": "1239", "nom": "Artiste ?", "items": [{ "type" : "Sweater", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "Basique", "id": "1306", "nom": "Basique", "items": [{ "type" : "T-shirt", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "Puma", "id": "1307", "nom": "Puma", "items": [{ "type" : "Sneakers", "marque" : "Puma" }] }, 
{"nom7bit": "Vote Petrelli", "id": "1334", "nom": "Vote Petrelli", "items": [{ "type" : "Jacket", "marque" : "El Ganso" }, { "type" : "Badge / Button", "marque" : "Heroes" }] }, 
{"nom7bit": "Smoking in Prague", "id": "1379", "nom": "Smoking in Prague", "items": [{ "type" : "Sweater", "marque" : "Homecore" }, { "type" : "Sunglasses", "marque" : "Ray ban" }] }, 
{"nom7bit": "Encore de lAcne", "id": "1392", "nom": "Encore de l'Acne !", "items": [{ "type" : "Jacket", "marque" : "Eleven" }, { "type" : "Jeans", "marque" : "Acne jeans" }, { "type" : "T-shirt", "marque" : "David Hasseloff's Haircut" }, { "type" : "Watch", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "Jai craque", "id": "1420", "nom": "J'ai craqué !", "items": [{ "type" : "Sneakers", "marque" : "Paul Smith" }] }, 
{"nom7bit": "El Ganso Rosso", "id": "1485", "nom": "El Ganso Rosso !", "items": [{ "type" : "Jacket", "marque" : "El Ganso" }, { "type" : "Top", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "Zadig Soldes Privees", "id": "1581", "nom": "Zadig Soldes Privées", "items": [{ "type" : "Sweater", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "VENTE PRIVEE", "id": "1583", "nom": "VENTE PRIVEE", "items": [{ "type" : "", "marque" : "Antik Batik" }] }, 
{"nom7bit": "Soldziz", "id": "1654", "nom": "Soldziz", "items": [{ "type" : "Jacket", "marque" : "Zadig & Voltaire" }, { "type" : "Mobile phone", "marque" : "Apple" }] }, 
{"nom7bit": "Born in Glamourous", "id": "1697", "nom": "Born in Glamourous", "items": [{ "type" : "T-shirt", "marque" : "Juicy couture" }, { "type" : "Jeans", "marque" : "Japan rags" }] }, 
{"nom7bit": "Shopping Londonien", "id": "1820", "nom": "Shopping Londonien", "items": [{ "type" : "Sweater", "marque" : "Zadig & Voltaire" }, { "type" : "Jeans", "marque" : "Acne jeans" }, { "type" : "Belt", "marque" : "Duchamp" }, { "type" : "Sneakers", "marque" : "Paul Smith" }] }, 
{"nom7bit": "Ed 18 feb 08", "id": "1826", "nom": "Ed 18 feb 08", "items": [{ "type" : "Shirt", "marque" : "Banana Republic" }, { "type" : "Jacket", "marque" : "Balthazar" }, { "type" : "Tie", "marque" : "Stephan Schneider" }] }, 
{"nom7bit": "Whats in the bag", "id": "1852", "nom": "What's in the bag ???", "items": [{ "type" : "Jeans", "marque" : "Acne jeans" }, { "type" : "Sneakers", "marque" : "Dior" }, { "type" : "Other", "marque" : "Etro" }, { "type" : "Sunglasses", "marque" : "Ray ban" }] }, 
{"nom7bit": "Mon manteau de fille", "id": "1904", "nom": "Mon manteau de fille...", "items": [{ "type" : "Coat", "marque" : "Sessun" }, { "type" : "Scarf", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "NYC dude 1", "id": "1936", "nom": "NYC dude 1", "items": [{ "type" : "Hat", "marque" : "Vintage" }, { "type" : "Jacket", "marque" : "Paul and Joe" }, { "type" : "Sweater", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "NyC Dude23", "id": "1955", "nom": "NyC Dude23", "items": [{ "type" : "T-shirt", "marque" : "I Love NY" }] }, 
{"nom7bit": "NY DINER", "id": "1999", "nom": "NY DINER", "items": [{ "type" : "Jacket", "marque" : "Paul and Joe" }, { "type" : "T-shirt", "marque" : "Juicy couture" }, { "type" : "Hat", "marque" : "vintage" }, { "type" : "Sunglasses", "marque" : "Ray ban" }, { "type" : "Scarf", "marque" : "Zadig & Voltaire" }] }, 
{"nom7bit": "Mes belles italiennes", "id": "2043", "nom": "Mes belles italiennes", "items": [{ "type" : "Ankle boots", "marque" : "Fratelli Rossetti" }] }, 
{"nom7bit": "Ma cravate etro belle ", "id": "2372", "nom": "Ma cravate "etro" belle !", "items": [{ "type" : "Tie", "marque" : "Etro" }] }, 
{"nom7bit": "Party Eddy", "id": "2405", "nom": "Party Eddy", "items": [{ "type" : "Jacket", "marque" : "Paul and Joe" }, { "type" : "Shirt", "marque" : "Etro" }, { "type" : "Jeans", "marque" : "Acne jeans" }, { "type" : "Ankle boots", "marque" : "Fratelli Rossetti" }, { "type" : "Watch", "marque" : "Baume & Mercier" }] }, 
{"nom7bit": "Vintage Church", "id": "2555", "nom": "Vintage Church", "items": [{ "type" : "Polo", "marque" : "Vintage" }] }, 
{"nom7bit": "Rock NRoll Wallet", "id": "2558", "nom": "Rock N'Roll Wallet", "items": [{ "type" : "Wallet", "marque" : "Paris House" }] }];

var zedude_tofindex = 27;

function zedude_updatetof() {
  var tag = document.getElementById('look_zedude');
  var dbgstr = zedude_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://www.cloziz.com/look/thumb/lookid/' + zedude_data[zedude_tofindex].id;
  var new_link = 'http://www.cloziz.com/look/show/lookid/' + zedude_data[zedude_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", zedude_data[zedude_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_zedude');
  if (tag) {
    tag.innerHTML = zedude_data[zedude_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_zedude');
  if (tag) {
    var items = zedude_data[zedude_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_zedude');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_zedude');
  if (tag) tag.href = new_link;
  return true;
}

function zedude_nexttof() {
  zedude_tofindex++;
  if(zedude_tofindex == zedude_data.length)
    zedude_tofindex = 0;
  return zedude_updatetof();
}

function zedude_prevtof() {
  if(zedude_tofindex==0)
    zedude_tofindex = zedude_data.length;
  zedude_tofindex--;
  return zedude_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_zedude" href="http://www.cloziz.com/zedude/look/Rock+Baby"><img id="look_zedude" alt="Rock Baby" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://www.cloziz.com/look/thumb/lookid/14" /></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="zedude_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="zedude_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_zedude" 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_zedude">');
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_zedude">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>');

zedude_updatetof();


