var juliefirst_data = [ {"nom7bit": "doudou dodo", "id": "32", "nom": "doudou dodo:)", "items": [{ "type" : "Trainingsanzug", "marque" : "H&M" }, { "type" : "Lieblingsteil", "marque" : "Stand Papapique et mamancoud, sur le marché de Vannes." }] }, 
{"nom7bit": "babouchka", "id": "220", "nom": "babouchka", "items": [{ "type" : "Pulli", "marque" : "Chistera" }, { "type" : "Rock", "marque" : "Promod" }, { "type" : "Strumpfhosen", "marque" : "Monoprix" }, { "type" : "Halbstiefel", "marque" : "Bata" }, { "type" : "Ohrringe", "marque" : "H&M" }] }, 
{"nom7bit": "Classic", "id": "251", "nom": "Classic", "items": [{ "type" : "Top", "marque" : "Pimkie" }, { "type" : "Rock", "marque" : "Naf Naf" }, { "type" : "Halsband", "marque" : "Fait Maison" }, { "type" : "Ohrringe", "marque" : "H&M" }] }, 
{"nom7bit": "Sexy camping", "id": "252", "nom": "Sexy camping", "items": [{ "type" : "Badeanzug", "marque" : "Hip Up" }, { "type" : "Sonnenbrille", "marque" : "Créateurs de beauté" }] }, 
{"nom7bit": "100 Moi", "id": "253", "nom": "100% Moi", "items": [{ "type" : "Top", "marque" : "Fait Maison" }, { "type" : "Jeans", "marque" : "Etam" }, { "type" : "Sneakers", "marque" : "Nike" }, { "type" : "Ohrringe", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Ki est la", "id": "379", "nom": "Ki est là?", "items": [{ "type" : "Ring", "marque" : "Fait Maison" }, { "type" : "Ring", "marque" : "Agatha" }, { "type" : "Ring", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Pinnnnk3", "id": "411", "nom": "Pinnnnk3", "items": [{ "type" : "T-Shirt", "marque" : "CONTINENTAL" }] }, 
{"nom7bit": "Be careful", "id": "412", "nom": "Be careful", "items": [{ "type" : "Halbstiefel", "marque" : "CELLINA" }] }, 
{"nom7bit": "Boule de poils1", "id": "413", "nom": "Boule de poils1", "items": [{ "type" : "Schirmmütze", "marque" : "H & M" }, { "type" : "Pulli", "marque" : "Zara" }] }, 
{"nom7bit": "Mon sac bleu", "id": "433", "nom": "Mon sac bleu", "items": [{ "type" : "Minirock", "marque" : "Pepe jeans" }, { "type" : "Handtasche", "marque" : "Etam" }] }, 
{"nom7bit": "Douce folie1", "id": "487", "nom": "Douce folie1", "items": [{ "type" : "Trägershirt", "marque" : "Xpect" }, { "type" : "Shorts", "marque" : "Promod" }, { "type" : "Pumps", "marque" : "Bata" }, { "type" : "Ohrringe", "marque" : "Galeries Lafayette" }] }, 
{"nom7bit": "Bain de soleil1", "id": "488", "nom": "Bain de soleil1", "items": [{ "type" : "Schlauchkleid", "marque" : "Mango" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Ohrringe", "marque" : "Galeries Lafayette" }] }, 
{"nom7bit": "Jveux sortir du placard", "id": "499", "nom": "Jveux sortir du placard", "items": [{ "type" : "Trägershirt", "marque" : "Galeries Lafayette" }] }, 
{"nom7bit": "Palmier shell party", "id": "510", "nom": "Palmier shell party", "items": [{ "type" : "Jacke", "marque" : "H&M" }, { "type" : "Pulli", "marque" : "FEELGOOD" }, { "type" : "Schal", "marque" : "H&M" }, { "type" : "Jeans", "marque" : "Etam" }, { "type" : "Handtasche", "marque" : "DAVID JONES" }] }, 
{"nom7bit": "Songe", "id": "579", "nom": "Songe", "items": [{ "type" : "Ohrringe", "marque" : "Camaieu" }, { "type" : "Schminke", "marque" : "Agnès b" }, { "type" : "Top", "marque" : "Petit Bateau" }] }, 
{"nom7bit": "Satin", "id": "1205", "nom": "Satin", "items": [{ "type" : "Kleid", "marque" : "H&M" }] }, 
{"nom7bit": "blanc dhiver", "id": "1542", "nom": "blanc d'hiver", "items": [{ "type" : "Bluse", "marque" : "H&M" }, { "type" : "Top", "marque" : "Etam" }, { "type" : "Ohrringe", "marque" : "H&M" }] }, 
{"nom7bit": "Sexy pour mon Anniv", "id": "1543", "nom": "Sexy pour mon Anniv", "items": [{ "type" : "Trägershirt", "marque" : "H&M" }, { "type" : "Shorts", "marque" : "Promod" }, { "type" : "Halbstiefel", "marque" : "Bata" }, { "type" : "Halsband", "marque" : "Createurs de beauté" }] }, 
{"nom7bit": "Robe du soir", "id": "1544", "nom": "Robe du soir", "items": [{ "type" : "Kleid", "marque" : "Pimkie" }, { "type" : "Pumps", "marque" : "Fait Maison" }, { "type" : "Ohrringe", "marque" : "H&M" }] }, 
{"nom7bit": "THE robe", "id": "1548", "nom": "THE robe", "items": [{ "type" : "Kleid", "marque" : "Young Blood" }, { "type" : "Ohrringe", "marque" : "Camaieu" }, { "type" : "Pumps", "marque" : "Bata" }] }, 
{"nom7bit": "Winter mimi", "id": "1580", "nom": "Winter mimi", "items": [{ "type" : "Mantel", "marque" : "JRF" }, { "type" : "Shorts", "marque" : "Promod" }, { "type" : "Halbstiefel", "marque" : "Bata" }, { "type" : "Ohrringe", "marque" : "H&M" }] }];

var juliefirst_tofindex = 12;

function juliefirst_updatetof() {
  var tag = document.getElementById('look_juliefirst');
  var dbgstr = juliefirst_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://de.cloziz.com/look/thumb/lookid/' + juliefirst_data[juliefirst_tofindex].id;
  var new_link = 'http://de.cloziz.com/look/show/lookid/' + juliefirst_data[juliefirst_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", juliefirst_data[juliefirst_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_juliefirst');
  if (tag) {
    tag.innerHTML = juliefirst_data[juliefirst_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_juliefirst');
  if (tag) {
    var items = juliefirst_data[juliefirst_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_juliefirst');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_juliefirst');
  if (tag) tag.href = new_link;
  return true;
}

function juliefirst_nexttof() {
  juliefirst_tofindex++;
  if(juliefirst_tofindex == juliefirst_data.length)
    juliefirst_tofindex = 0;
  return juliefirst_updatetof();
}

function juliefirst_prevtof() {
  if(juliefirst_tofindex==0)
    juliefirst_tofindex = juliefirst_data.length;
  juliefirst_tofindex--;
  return juliefirst_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://de.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://de.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://de.cloziz.com">');
document.write('<img style="border: 0; padding: 0;" src="http://de.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://de.cloziz.com/images/widget/widget_mid_bg_top.gif) repeat-x bottom #C5C5C5;">'); // mid mcontent
document.write('<div style="height: 5px; background: url(http://de.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://de.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_juliefirst" href="http://de.cloziz.com/juliefirst/look/doudou+dodo"><img id="look_juliefirst" alt="doudou dodo:)" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://de.cloziz.com/look/thumb/lookid/32" /></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="juliefirst_prevtof(); return false;">');
document.write('<img style="margin: 0; padding: 0; width: 25px; height: 60px; border: 0; background: url(http://de.cloziz.com/images/widget/widget_mid_nav_prev.gif) top no-repeat;" src="http://de.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="juliefirst_nexttof(); return false;">');
document.write('<img style="margin: 0; padding: 0; width: 25px; height: 60px; border: 0; background: url(http://de.cloziz.com/images/widget/widget_mid_nav_next.gif) top no-repeat;" src="http://de.cloziz.com/images/widget/void.gif" alt="next" onmouseover="style.background=\'url(http://de.cloziz.com/images/widget/widget_mid_nav_next.gif) bottom no-repeat;\'" onmouseout="style.background=\'url(http://de.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_juliefirst" 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_juliefirst">');
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://de.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://de.cloziz.com" style="font-size: 10px; text-decoration: none; color: #910134;" onmouseover="style.color=\'#5d0122\'" onmouseout="style.color=\'#910134\'" id="link2_juliefirst">Le reste sur cloziz.com</a>');
document.write('</div>');
document.write('<div style="height: 5px; font-size: 0px; background: url(http://de.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://de.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://de.cloziz.com/images/widget/widget_btm_bg-left.gif) left top no-repeat;">'); // wbtm bleft
document.write('<div style="height: 10px; background: url(http://de.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>');

juliefirst_updatetof();


