var wolfnrock_data = [ {"nom7bit": "Rocknroll", "id": "833", "nom": "Rocknroll", "items": [{ "type" : "T-shirt", "marque" : "Zara Homme" }, { "type" : "Thigh highs", "marque" : "Hëlls Bëlls" }, { "type" : "Shoes", "marque" : "Vans" }] }, 
{"nom7bit": "Dandy", "id": "840", "nom": "Dandy ?", "items": [{ "type" : "Shirt", "marque" : "..." }, { "type" : "Pants", "marque" : "Hëlls Bëlls" }, { "type" : "Gilet", "marque" : "Cerrutti" }] }, 
{"nom7bit": "Pochette de cd", "id": "841", "nom": "Pochette de cd ?!", "items": [{ "type" : "Gilet", "marque" : "Springfield" }, { "type" : "Pants", "marque" : "Hëlls Bëlls" }, { "type" : "Shoes", "marque" : "Nike" }, { "type" : "T-shirt", "marque" : "Galeries Lafayette" }] }, 
{"nom7bit": "Dandy  Rock", "id": "842", "nom": "Dandy  Rock", "items": [{ "type" : "Shoes", "marque" : "Converse" }] }, 
{"nom7bit": "Dandy  Rock1", "id": "843", "nom": "Dandy  Rock1", "items": [] }, 
{"nom7bit": "Dandy  Rock2", "id": "850", "nom": "Dandy  Rock2", "items": [{ "type" : "T-shirt", "marque" : "Kulte" }, { "type" : "Jeans", "marque" : "Hëlls Bëlls" }, { "type" : "Shoes", "marque" : "Converse" }, { "type" : "Belt", "marque" : "Freeman t Porter" }] }, 
{"nom7bit": "Dandy  Rock3", "id": "857", "nom": "Dandy  Rock3", "items": [{ "type" : "Jacket", "marque" : "Nudie" }, { "type" : "Shirt", "marque" : "Inconnu" }, { "type" : "Belt", "marque" : "Freeman porter" }] }, 
{"nom7bit": "After Fete de la Musique", "id": "888", "nom": "After Fete de la Musique", "items": [{ "type" : "Blouse", "marque" : "Schott" }, { "type" : "T-shirt", "marque" : "Galeries lafayettes" }, { "type" : "Badge / Button", "marque" : "Mighty Worm" }, { "type" : "Shoes", "marque" : "Converse" }] }, 
{"nom7bit": "Street  Rock1", "id": "891", "nom": "Street  Rock1", "items": [{ "type" : "Jacket", "marque" : "Springfield" }, { "type" : "T-shirt", "marque" : "Kulte" }, { "type" : "Shoes", "marque" : "Nike" }, { "type" : "Pants", "marque" : "Meltin' Pot" }, { "type" : "Badge / Button", "marque" : "Mighty Worm" }] }, 
{"nom7bit": "Jambes Party", "id": "892", "nom": "Jambes Party!", "items": [] }, 
{"nom7bit": "Merci les Soldes", "id": "921", "nom": "Merci les Soldes", "items": [{ "type" : "T-shirt", "marque" : "Nudie" }, { "type" : "Pants", "marque" : "Temp des Cerises" }, { "type" : "Belt", "marque" : "Freeman porter" }, { "type" : "Jacket", "marque" : "Springfield" }, { "type" : "Shoes", "marque" : "Nike SB" }] }, 
{"nom7bit": "Old school", "id": "948", "nom": "Old school", "items": [{ "type" : "T-shirt", "marque" : "Sixpack" }, { "type" : "Pants", "marque" : "Temp des Cerises" }, { "type" : "Shoes", "marque" : "Nike" }] }, 
{"nom7bit": "Old school1", "id": "953", "nom": "Old school1", "items": [{ "type" : "T-shirt", "marque" : "Sixpack" }, { "type" : "Pants", "marque" : "Temp des cerises" }, { "type" : "Shoes", "marque" : "Nike SB" }] }, 
{"nom7bit": "Veja Style", "id": "967", "nom": "Veja Style", "items": [{ "type" : "T-shirt", "marque" : "Nudie" }, { "type" : "Pants", "marque" : "Hells Bells" }, { "type" : "Shoes", "marque" : "Veja" }] }, 
{"nom7bit": "Veja Style1", "id": "968", "nom": "Veja Style1", "items": [{ "type" : "T-shirt", "marque" : "Zara" }, { "type" : "Pants", "marque" : "Hells Bells" }, { "type" : "Shoes", "marque" : "Veja" }] }, 
{"nom7bit": "Love my Shirt", "id": "991", "nom": "Love my Shirt", "items": [{ "type" : "Shirt", "marque" : "?" }] }, 
{"nom7bit": "Fred perrav", "id": "1037", "nom": "Fred perrav'", "items": [{ "type" : "Polo", "marque" : "Fred Perry" }, { "type" : "Pants", "marque" : "Hells Bells" }, { "type" : "Shoes", "marque" : "Nike" }] }, 
{"nom7bit": "Fluooo", "id": "1459", "nom": "Fluooo", "items": [{ "type" : "Jacket", "marque" : "Bershka" }, { "type" : "Shirt", "marque" : "?" }, { "type" : "Pants", "marque" : "Hells Bells" }, { "type" : "Shoes", "marque" : "Nike" }] }, 
{"nom7bit": "Flluo again", "id": "1460", "nom": "Flluo again", "items": [{ "type" : "Jacket", "marque" : "Bershka" }, { "type" : "T-shirt", "marque" : "Sixpack" }, { "type" : "Pants", "marque" : "Hells Bells" }, { "type" : "Shoes", "marque" : "Veja" }] }, 
{"nom7bit": "Fluo again and again", "id": "1462", "nom": "Fluo again and again", "items": [{ "type" : "Coat", "marque" : "Nike" }, { "type" : "T-shirt", "marque" : "Pull & Bear" }, { "type" : "Pants", "marque" : "Hells Bells" }, { "type" : "Shoes", "marque" : "Nike" }] }, 
{"nom7bit": "Detendu", "id": "1463", "nom": "Detendu", "items": [{ "type" : "Jacket", "marque" : "Bershka" }, { "type" : "Polo", "marque" : "Fred Perry" }, { "type" : "Pants", "marque" : "Hells Bells" }, { "type" : "Shoes", "marque" : "Converse" }] }, 
{"nom7bit": "rock n roll", "id": "1700", "nom": "rock n roll", "items": [{ "type" : "Tank", "marque" : "?" }, { "type" : "Pants", "marque" : "Hells Bells" }, { "type" : "Shoes", "marque" : "Uroads" }] }];

var wolfnrock_tofindex = 21;

function wolfnrock_updatetof() {
  var tag = document.getElementById('look_wolfnrock');
  var dbgstr = wolfnrock_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://en.cloziz.com/look/thumb/lookid/' + wolfnrock_data[wolfnrock_tofindex].id;
  var new_link = 'http://en.cloziz.com/look/show/lookid/' + wolfnrock_data[wolfnrock_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", wolfnrock_data[wolfnrock_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_wolfnrock');
  if (tag) {
    tag.innerHTML = wolfnrock_data[wolfnrock_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_wolfnrock');
  if (tag) {
    var items = wolfnrock_data[wolfnrock_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_wolfnrock');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_wolfnrock');
  if (tag) tag.href = new_link;
  return true;
}

function wolfnrock_nexttof() {
  wolfnrock_tofindex++;
  if(wolfnrock_tofindex == wolfnrock_data.length)
    wolfnrock_tofindex = 0;
  return wolfnrock_updatetof();
}

function wolfnrock_prevtof() {
  if(wolfnrock_tofindex==0)
    wolfnrock_tofindex = wolfnrock_data.length;
  wolfnrock_tofindex--;
  return wolfnrock_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_wolfnrock" href="http://en.cloziz.com/wolfnrock/look/Rocknroll"><img id="look_wolfnrock" alt="Rocknroll" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://en.cloziz.com/look/thumb/lookid/833" /></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="wolfnrock_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="wolfnrock_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_wolfnrock" 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_wolfnrock">');
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_wolfnrock">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>');

wolfnrock_updatetof();


