var laluciola_data = [ {"nom7bit": "camel", "id": "1971", "nom": "camel", "items": [{ "type" : "Jacket", "marque" : "Ba&sh" }, { "type" : "Ankle boots", "marque" : "New look" }, { "type" : "Bag / Purse", "marque" : "Gérard Darel" }] }, 
{"nom7bit": "my chloe h", "id": "1972", "nom": "my chloé ♥", "items": [{ "type" : "Bag / Purse", "marque" : "Chloe" }] }, 
{"nom7bit": "bobo", "id": "1974", "nom": "bobo", "items": [{ "type" : "Dress", "marque" : "So'Redoute" }, { "type" : "Three quarter boots", "marque" : "Bata" }] }, 
{"nom7bit": "bijoux incrustes", "id": "1975", "nom": "bijoux incrustés", "items": [{ "type" : "Top", "marque" : "Morgan" }, { "type" : "Jeans", "marque" : "Zara" }] }, 
{"nom7bit": "juillet", "id": "1976", "nom": "juillet", "items": [{ "type" : "Blouse", "marque" : "New look" }, { "type" : "Top", "marque" : "La Redoute" }] }, 
{"nom7bit": "simple p", "id": "1977", "nom": "simple -:-p", "items": [{ "type" : "Sweater", "marque" : "La Redoute" }, { "type" : "Jeans", "marque" : "Zara" }] }, 
{"nom7bit": "ma tite robe noire", "id": "1978", "nom": "ma tite robe noire", "items": [{ "type" : "Dress", "marque" : "New look" }] }, 
{"nom7bit": "guerriere", "id": "1985", "nom": "guerrière", "items": [{ "type" : "Hair band", "marque" : "H&M" }, { "type" : "Dress", "marque" : "Soft Grey" }] }, 
{"nom7bit": " Us", "id": "1986", "nom": "* Us *", "items": [] }, 
{"nom7bit": "mousquetaire", "id": "1987", "nom": "mousquetaire", "items": [{ "type" : "Shirt", "marque" : "Gap" }] }, 
{"nom7bit": "street", "id": "1989", "nom": "street", "items": [{ "type" : "Jacket", "marque" : "H&M" }, { "type" : "Top", "marque" : "So'Redoute" }, { "type" : "Jeans", "marque" : "Zara" }, { "type" : "Bag / Purse", "marque" : "Gérard Darel" }] }, 
{"nom7bit": "bleu klein", "id": "1990", "nom": "bleu klein", "items": [] }, 
{"nom7bit": "cindirella", "id": "1992", "nom": "cindirella", "items": [{ "type" : "Dress", "marque" : "Morgan" }] }, 
{"nom7bit": "chauve souris", "id": "1993", "nom": "chauve souris", "items": [] }, 
{"nom7bit": "hiver", "id": "1994", "nom": "hiver", "items": [] }, 
{"nom7bit": "cavaliere", "id": "1995", "nom": "cavalière", "items": [] }, 
{"nom7bit": "flowers", "id": "1996", "nom": "flowers", "items": [] }, 
{"nom7bit": "romantic", "id": "1998", "nom": "romantic", "items": [{ "type" : "Blouse", "marque" : "Mango" }] }, 
{"nom7bit": "a la faveur de lautomne", "id": "2018", "nom": "a la faveur de l'automne", "items": [{ "type" : "Gilet", "marque" : "New look" }, { "type" : "Dress", "marque" : "Des Petits Hauts" }, { "type" : "Scarf", "marque" : "H&M" }] }, 
{"nom7bit": "my tee shirt", "id": "2034", "nom": "my tee shirt", "items": [{ "type" : "T-shirt", "marque" : "New look" }] }, 
{"nom7bit": "marine", "id": "2050", "nom": "marine", "items": [] }, 
{"nom7bit": "sandro", "id": "2051", "nom": "sandro", "items": [] }, 
{"nom7bit": "legging", "id": "2103", "nom": "legging", "items": [{ "type" : "Blouse", "marque" : "La Redoute" }, { "type" : "Three quarter boots", "marque" : "Bata" }] }, 
{"nom7bit": "rock ", "id": "2104", "nom": "rock !", "items": [{ "type" : "Jacket", "marque" : "H&M" }, { "type" : "Dress", "marque" : "So' Redoute" }, { "type" : "Ankle boots", "marque" : "Vintage" }, { "type" : "Foulard", "marque" : "marché" }, { "type" : "School bag", "marque" : "H&M" }] }, 
{"nom7bit": "fame", "id": "2105", "nom": "fame", "items": [{ "type" : "T-shirt", "marque" : "H&M" }] }, 
{"nom7bit": "in", "id": "2106", "nom": ""in"", "items": [{ "type" : "Gilet", "marque" : "Stradivarius" }, { "type" : "T-shirt", "marque" : "H&M" }, { "type" : "Jeans", "marque" : "Zara" }] }, 
{"nom7bit": "parc", "id": "2120", "nom": "parc", "items": [{ "type" : "Chemisier", "marque" : "Camaieu" }, { "type" : "Jeans", "marque" : "New look" }, { "type" : "Shoes", "marque" : "Miss Coquines" }, { "type" : "Bag / Purse", "marque" : "Gérard Darel" }] }, 
{"nom7bit": "marine1", "id": "2121", "nom": "marine1", "items": [{ "type" : "Blouse", "marque" : "La Redoute" }, { "type" : "T-shirt", "marque" : "H&M" }, { "type" : "Jeans", "marque" : "Mango" }] }, 
{"nom7bit": "baba", "id": "2122", "nom": "baba", "items": [{ "type" : "Blouse", "marque" : "See by Chloe" }, { "type" : "Belt", "marque" : "See by Chloe" }] }, 
{"nom7bit": "spring", "id": "2133", "nom": "spring", "items": [{ "type" : "Blouse", "marque" : "Vintage" }, { "type" : "Other", "marque" : "mon balcon fleuri :-)" }] }, 
{"nom7bit": "Yelle", "id": "2137", "nom": "Yelle", "items": [{ "type" : "Longline bra", "marque" : "Top Shop" }, { "type" : "Men's underpants", "marque" : "H&M" }] }, 
{"nom7bit": "un air de deja vu", "id": "2213", "nom": "un air de déjà vu", "items": [{ "type" : "Jeans", "marque" : "Mango" }, { "type" : "Necklace", "marque" : "stradivarius" }, { "type" : "Tunic", "marque" : "H&M" }] }, 
{"nom7bit": "70s show", "id": "2219", "nom": "70's show", "items": [{ "type" : "Tunic", "marque" : "H&M" }, { "type" : "Jeans", "marque" : "Mango" }, { "type" : "Jacket", "marque" : "Ba&sh" }] }, 
{"nom7bit": "je reve", "id": "2220", "nom": "je rêve", "items": [{ "type" : "Dress", "marque" : "New look" }, { "type" : "Pants", "marque" : "H&M" }] }, 
{"nom7bit": "palais de la chaussure ", "id": "2293", "nom": "palais de la chaussure !!", "items": [{ "type" : "Blouse", "marque" : "La Redoute" }, { "type" : "T-shirt", "marque" : "H&M" }, { "type" : "Jeans", "marque" : "Zara" }, { "type" : "Platforms", "marque" : "New look" }] }, 
{"nom7bit": "cassette", "id": "2381", "nom": "cassette", "items": [{ "type" : "Blouse", "marque" : "Zara" }, { "type" : "Longline bra", "marque" : "Top Shop" }, { "type" : "Jeans", "marque" : "Zara" }] }, 
{"nom7bit": "Tuileries", "id": "2382", "nom": "Tuileries", "items": [] }, 
{"nom7bit": "Mbal", "id": "2383", "nom": "M-bal", "items": [{ "type" : "Shirt", "marque" : "stradivarius" }, { "type" : "Jeans", "marque" : "Zara" }] }, 
{"nom7bit": "bohemienne", "id": "2404", "nom": "bohémienne", "items": [{ "type" : "Dress", "marque" : "Stradivarius" }] }, 
{"nom7bit": "Paris", "id": "2420", "nom": "Paris", "items": [{ "type" : "T-shirt", "marque" : "fabrique touristique" }] }, 
{"nom7bit": "crazy girls", "id": "2421", "nom": "crazy girls", "items": [{ "type" : "T-shirt", "marque" : "American Apparel" }, { "type" : "Pajama pants", "marque" : "H&M" }, { "type" : "Hair band", "marque" : "H&M" }, { "type" : "Jeans", "marque" : "Esprit" }] }, 
{"nom7bit": "jardin", "id": "2456", "nom": "jardin", "items": [{ "type" : "Jeans", "marque" : "New look" }] }, 
{"nom7bit": "banc public", "id": "2472", "nom": "banc public", "items": [{ "type" : "Tunic", "marque" : "Sandro" }, { "type" : "Jeans", "marque" : "Zara" }] }, 
{"nom7bit": "lasy", "id": "2514", "nom": "lasy", "items": [{ "type" : "T-shirt", "marque" : "New look" }, { "type" : "Shorts", "marque" : "Zara" }] }, 
{"nom7bit": "naturel ", "id": "2536", "nom": "naturel ", "items": [{ "type" : "Jacket", "marque" : "Ba&sh" }, { "type" : "Tunic", "marque" : "Soft Grey" }, { "type" : "Bag / Purse", "marque" : "Gérard Darel" }] }, 
{"nom7bit": "rock my bitch ", "id": "2537", "nom": "rock my bitch !", "items": [{ "type" : "Jacket", "marque" : "H&M" }, { "type" : "Shirt", "marque" : "H&M" }] }, 
{"nom7bit": "station", "id": "2549", "nom": "station", "items": [{ "type" : "Tunic", "marque" : "stick" }, { "type" : "Jeans", "marque" : "Zara" }, { "type" : "Belt", "marque" : "See by Chloe" }] }, 
{"nom7bit": "boheme1", "id": "2550", "nom": "bohème1", "items": [{ "type" : "Tunic", "marque" : "New look" }] }, 
{"nom7bit": "at night", "id": "2559", "nom": "at night", "items": [{ "type" : "Jacket", "marque" : "H&M" }, { "type" : "Pochette", "marque" : "Chloe" }] }, 
{"nom7bit": "scout", "id": "2563", "nom": "scout", "items": [{ "type" : "Dress", "marque" : "Camaieu" }, { "type" : "Belt", "marque" : "See by Chloe" }] }, 
{"nom7bit": "Paris paris", "id": "2593", "nom": "Paris paris", "items": [{ "type" : "Blouse", "marque" : "Apara Store" }] }, 
{"nom7bit": "grey", "id": "2594", "nom": "grey", "items": [{ "type" : "Gilet", "marque" : "Sandro" }, { "type" : "Blouse", "marque" : "Vintage" }, { "type" : "Jeans", "marque" : "Zara" }, { "type" : "Belt", "marque" : "See by Chloe" }] }, 
{"nom7bit": "loose", "id": "2595", "nom": "loose", "items": [{ "type" : "Sweater", "marque" : "H&M" }, { "type" : "Pants", "marque" : "Vintage" }, { "type" : "Bag / Purse", "marque" : "Vintage" }] }, 
{"nom7bit": "going out", "id": "2596", "nom": "going out", "items": [{ "type" : "Jacket", "marque" : "H&M" }, { "type" : "Blouse", "marque" : "Vintage" }, { "type" : "Jeans", "marque" : "Zara" }, { "type" : "Three quarter boots", "marque" : "Vintage" }] }, 
{"nom7bit": "very Versailles", "id": "2599", "nom": "very Versailles", "items": [{ "type" : "Jacket", "marque" : "Vintage" }, { "type" : "Shirt", "marque" : "H&M" }, { "type" : "Jeans", "marque" : "Zara" }, { "type" : "Sneakers", "marque" : "Converse All Star" }] }, 
{"nom7bit": "yeti", "id": "2620", "nom": "yeti", "items": [{ "type" : "Dress", "marque" : "So Redoute" }, { "type" : "Three quarter boots", "marque" : "Minnetonka" }, { "type" : "Necklace", "marque" : "Vintage" }] }, 
{"nom7bit": "Casquette Ed Hardy", "id": "2635", "nom": "Casquette Ed Hardy", "items": [{ "type" : "Cap", "marque" : "Ed Hardy" }] }, 
{"nom7bit": "By Christian Audigier", "id": "2636", "nom": "By Christian Audigier", "items": [{ "type" : "T-shirt", "marque" : "Ed Hardy" }, { "type" : "Jeans", "marque" : "Ed Hardy" }] }, 
{"nom7bit": "Ed Hardy Signature", "id": "2637", "nom": "Ed Hardy Signature", "items": [{ "type" : "Jeans", "marque" : "Ed Hardy" }] }, 
{"nom7bit": "Fifty  yo", "id": "2638", "nom": "Fifty ! yo", "items": [{ "type" : "Cap", "marque" : "Ed Hardy" }, { "type" : "Jeans", "marque" : "Zara" }, { "type" : "Sweater", "marque" : "H&M" }] }, 
{"nom7bit": "Skunk in Purple", "id": "2639", "nom": ""Skunk" in Purple", "items": [{ "type" : "T-shirt", "marque" : "Ed Hardy" }] }, 
{"nom7bit": "in the street", "id": "2640", "nom": "in the street", "items": [{ "type" : "Sneakers", "marque" : "Ed Hardy" }] }, 
{"nom7bit": "Sweety", "id": "2641", "nom": "Sweety", "items": [{ "type" : "Sweater", "marque" : "Ed Hardy" }] }, 
{"nom7bit": "Caps Strass", "id": "2642", "nom": "Caps Strass", "items": [{ "type" : "Cap", "marque" : "Ed Hardy" }] }, 
{"nom7bit": "Sweety1", "id": "2643", "nom": "Sweety'1", "items": [{ "type" : "Gilet", "marque" : "Ed Hardy" }] }, 
{"nom7bit": "des cactus ", "id": "2663", "nom": "des cactus !", "items": [{ "type" : "Jacket", "marque" : "H&M" }, { "type" : "Tunic", "marque" : "La Redoute" }, { "type" : "Pants", "marque" : "Zara" }, { "type" : "Three quarter boots", "marque" : "Minnetonka" }, { "type" : "Scarf", "marque" : "H&M" }] }, 
{"nom7bit": "bleu canard", "id": "2670", "nom": "bleu canard", "items": [] }, 
{"nom7bit": "white is white", "id": "2673", "nom": "white is white", "items": [{ "type" : "Tunic", "marque" : "Apara Store" }, { "type" : "Necklace", "marque" : "H&M" }, { "type" : "Belt", "marque" : "See by Chloe" }, { "type" : "Three quarter boots", "marque" : "Vintage" }] }, 
{"nom7bit": "Robe Adelaide Chocolat ", "id": "2678", "nom": "Robe Adelaide Chocolat ", "items": [{ "type" : "Dress", "marque" : "Deby Debo" }] }, 
{"nom7bit": "haut Pierre Bleu 2009", "id": "2679", "nom": "haut Pierre Bleu 2009", "items": [{ "type" : "Tunic", "marque" : "Deby Debo" }] }, 
{"nom7bit": "Yumi ", "id": "2690", "nom": "Yumi !", "items": [{ "type" : "Dress", "marque" : "Yumi - Asos" }, { "type" : "Jeans", "marque" : "H&M" }] }, 
{"nom7bit": "autumn", "id": "2705", "nom": "autumn", "items": [{ "type" : "Blouse", "marque" : "Apara Store" }, { "type" : "Scarf", "marque" : "H&M" }, { "type" : "Gilet", "marque" : "so redoute" }] }, 
{"nom7bit": "london", "id": "2706", "nom": "london", "items": [{ "type" : "Dress", "marque" : "Jovonna London" }, { "type" : "Men's underpants", "marque" : "American Apparel" }] }, 
{"nom7bit": "automnale", "id": "2711", "nom": "automnale", "items": [{ "type" : "Dress", "marque" : "Sandro" }, { "type" : "Sweater", "marque" : "so redoute" }, { "type" : "Men's underpants", "marque" : "H&M" }, { "type" : "Ankle boots", "marque" : "H&M" }, { "type" : "Necklace", "marque" : "H&M" }] }];

var laluciola_tofindex = 22;

function laluciola_updatetof() {
  var tag = document.getElementById('look_laluciola');
  var dbgstr = laluciola_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://en.cloziz.com/look/thumb/lookid/' + laluciola_data[laluciola_tofindex].id;
  var new_link = 'http://en.cloziz.com/look/show/lookid/' + laluciola_data[laluciola_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", laluciola_data[laluciola_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_laluciola');
  if (tag) {
    tag.innerHTML = laluciola_data[laluciola_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_laluciola');
  if (tag) {
    var items = laluciola_data[laluciola_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_laluciola');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_laluciola');
  if (tag) tag.href = new_link;
  return true;
}

function laluciola_nexttof() {
  laluciola_tofindex++;
  if(laluciola_tofindex == laluciola_data.length)
    laluciola_tofindex = 0;
  return laluciola_updatetof();
}

function laluciola_prevtof() {
  if(laluciola_tofindex==0)
    laluciola_tofindex = laluciola_data.length;
  laluciola_tofindex--;
  return laluciola_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_laluciola" href="http://en.cloziz.com/laluciola/look/camel"><img id="look_laluciola" alt="camel" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://en.cloziz.com/look/thumb/lookid/1971" /></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="laluciola_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="laluciola_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_laluciola" 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_laluciola">');
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_laluciola">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>');

laluciola_updatetof();


