var jularousse_data = [ {"nom7bit": "nouvelvi nouvo look pr moi", "id": "263", "nom": "nouvelvi nouvo look pr moi", "items": [{ "type" : "Chemisier", "marque" : "Etam" }, { "type" : "Earrings", "marque" : "Etam" }] }, 
{"nom7bit": "talon", "id": "264", "nom": "talon", "items": [{ "type" : "Shirt", "marque" : "sans" }, { "type" : "Bermuda shorts", "marque" : "mim" }] }, 
{"nom7bit": "shortounet", "id": "265", "nom": "shortounet", "items": [{ "type" : "Chemisier", "marque" : "Etam" }, { "type" : "Shorts", "marque" : "Pimkie" }, { "type" : "Tall boots", "marque" : "?????" }] }, 
{"nom7bit": "tatouage cheville gauche", "id": "266", "nom": "tatouage cheville gauche", "items": [] }, 
{"nom7bit": "tenu de soire soft", "id": "295", "nom": "tenu de soiré soft", "items": [{ "type" : "T-shirt", "marque" : "Etam" }, { "type" : "Jeans", "marque" : "Lee" }, { "type" : "Boots", "marque" : "San Marina" }] }, 
{"nom7bit": "tatoo omoplate droite", "id": "316", "nom": "tatoo omoplate droite", "items": [] }, 
{"nom7bit": "tenue de soire un peu moins soft", "id": "318", "nom": "tenue de soiré un peu moins soft", "items": [{ "type" : "Dress", "marque" : "sans marque" }] }, 
{"nom7bit": "nouveau tatoo", "id": "1042", "nom": "nouveau tatoo", "items": [] }, 
{"nom7bit": "encore un nouveau tatoo1", "id": "1044", "nom": "encore un nouveau tatoo1", "items": [] }, 
{"nom7bit": "sale tete", "id": "1045", "nom": "sale téte", "items": [{ "type" : "T-shirt", "marque" : "Bershka" }, { "type" : "Pants", "marque" : "Bershka" }, { "type" : "Sling-backs", "marque" : "sans" }] }, 
{"nom7bit": "pour le mariage de la fille du boss", "id": "1046", "nom": "pour le mariage de la fille du boss", "items": [{ "type" : "Dress", "marque" : "Camaieu" }, { "type" : "Sling-backs", "marque" : "sans" }] }, 
{"nom7bit": "je le cherche depuis lontemps celui la", "id": "1047", "nom": "je le cherché depuis lontemps celui la", "items": [{ "type" : "T-shirt", "marque" : "Bershka" }] }, 
{"nom7bit": "nouvelle tete apres regime1", "id": "1048", "nom": "nouvelle tete aprés régime1", "items": [{ "type" : "Tank", "marque" : "H&M" }, { "type" : "Gilet", "marque" : "Tex" }, { "type" : "Cropped pants", "marque" : "Camaieu" }] }, 
{"nom7bit": "lunette de papy", "id": "1094", "nom": "lunette de papy", "items": [{ "type" : "Dress", "marque" : "fashion express" }, { "type" : "Thongs", "marque" : "aucune" }] }, 
{"nom7bit": "lete 2007 de Mr Patate et sa famille au complet", "id": "1095", "nom": "l'été 2007 de Mr Patate et sa famille au complet", "items": [] }, 
{"nom7bit": "new shoes1", "id": "1097", "nom": "new shoes1", "items": [{ "type" : "Jeans", "marque" : "Lee" }] }, 
{"nom7bit": "chaussures abandonnees dans le magasin", "id": "1098", "nom": "chaussures abandonnées dans le magasin", "items": [] }];

var jularousse_tofindex = 0;

function jularousse_updatetof() {
  var tag = document.getElementById('look_jularousse');
  var dbgstr = jularousse_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://www.cloziz.com/look/thumb/lookid/' + jularousse_data[jularousse_tofindex].id;
  var new_link = 'http://www.cloziz.com/look/show/lookid/' + jularousse_data[jularousse_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", jularousse_data[jularousse_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_jularousse');
  if (tag) {
    tag.innerHTML = jularousse_data[jularousse_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_jularousse');
  if (tag) {
    var items = jularousse_data[jularousse_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_jularousse');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_jularousse');
  if (tag) tag.href = new_link;
  return true;
}

function jularousse_nexttof() {
  jularousse_tofindex++;
  if(jularousse_tofindex == jularousse_data.length)
    jularousse_tofindex = 0;
  return jularousse_updatetof();
}

function jularousse_prevtof() {
  if(jularousse_tofindex==0)
    jularousse_tofindex = jularousse_data.length;
  jularousse_tofindex--;
  return jularousse_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_jularousse" href="http://www.cloziz.com/jularousse/look/nouvelvi+nouvo+look+pr+moi"><img id="look_jularousse" alt="nouvelvi nouvo look pr moi" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://www.cloziz.com/look/thumb/lookid/263" /></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="jularousse_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="jularousse_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_jularousse" 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_jularousse">');
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_jularousse">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>');

jularousse_updatetof();


