var Nanais_data = [ {"nom7bit": "Mexico", "id": "17", "nom": "Mexico", "items": [{ "type" : "Swimsuit", "marque" : "Naf Naf" }] }, 
{"nom7bit": "Au lit mais pas couchee :)", "id": "134", "nom": "Au lit mais pas couchée :)", "items": [{ "type" : "Top", "marque" : "Fait Maison" }, { "type" : "Gilet", "marque" : "Pimkie" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Sling-backs", "marque" : "" }] }, 
{"nom7bit": "bad glam girl", "id": "229", "nom": "bad glam girl", "items": [{ "type" : "Sweater", "marque" : "Mango" }, { "type" : "Ring", "marque" : "Fait Maison" }, { "type" : "Necklace", "marque" : "Gavilane" }, { "type" : "Make-up", "marque" : "Chanel" }] }, 
{"nom7bit": "Presque vintage", "id": "230", "nom": "Presque vintage", "items": [{ "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Three quarter boots", "marque" : "Andre" }] }, 
{"nom7bit": "Missy Me", "id": "234", "nom": "Missy Me", "items": [{ "type" : "Sweater", "marque" : "Pepe jeans" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Sneakers", "marque" : "Adidas" }] }, 
{"nom7bit": "Winter Rock", "id": "235", "nom": "Winter Rock", "items": [{ "type" : "Coat", "marque" : "Côté Femme" }, { "type" : "Cap", "marque" : "Pepe jeans" }, { "type" : "Make-up", "marque" : "Yves Saint Laurent" }] }, 
{"nom7bit": "Natural Princess", "id": "270", "nom": "Natural Princess", "items": [{ "type" : "Gilet", "marque" : "Bershka" }, { "type" : "Turtleneck", "marque" : "Coeur d'artichaud" }, { "type" : "Hair band", "marque" : "Fait Maison" }, { "type" : "Necklace", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Portobello Road", "id": "313", "nom": "Portobello Road", "items": [{ "type" : "Sweater", "marque" : "Mango" }, { "type" : "Belt", "marque" : "Fait Maison" }, { "type" : "Cap", "marque" : "Monoprix" }] }, 
{"nom7bit": "Zimbabwe", "id": "364", "nom": "Zimbabwe", "items": [{ "type" : "Gilet", "marque" : "Adidas" }] }, 
{"nom7bit": "Greys academie", "id": "365", "nom": "Grey's académie", "items": [{ "type" : "Dress", "marque" : "Pepe jeans" }, { "type" : "Tank", "marque" : "Zara" }, { "type" : "Tie", "marque" : "Pepe jeans" }] }, 
{"nom7bit": "Ultra violet", "id": "366", "nom": "Ultra violet", "items": [{ "type" : "Top", "marque" : "Zara" }] }, 
{"nom7bit": "Petit chaperon rouge", "id": "368", "nom": "Petit chaperon rouge", "items": [{ "type" : "Sling-backs", "marque" : "Azalee" }] }, 
{"nom7bit": "Tete de Mort", "id": "370", "nom": "Tete de Mort", "items": [{ "type" : "T-shirt", "marque" : "Pepe jeans" }] }, 
{"nom7bit": "Sweet Sixties", "id": "383", "nom": "Sweet Sixties", "items": [{ "type" : "Blouse", "marque" : "Zara" }, { "type" : "Shorts", "marque" : "Pepe jeans" }] }, 
{"nom7bit": "Baby Doll", "id": "414", "nom": "Baby Doll", "items": [{ "type" : "Other", "marque" : "Yves Saint Laurent" }] }, 
{"nom7bit": "Purple mafia", "id": "431", "nom": "Purple mafia", "items": [{ "type" : "Hat", "marque" : "Lady Soul" }, { "type" : "Turtleneck", "marque" : "Coeur d'Artichaud" }, { "type" : "Dress", "marque" : "Mango" }, { "type" : "Men's underpants", "marque" : "Zara" }, { "type" : "Three quarter boots", "marque" : "Andre" }] }, 
{"nom7bit": "Poisson davril", "id": "432", "nom": "Poisson d'avril :-)", "items": [{ "type" : "Hat", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Orange Metallique3", "id": "489", "nom": "Orange Métallique3", "items": [{ "type" : "T-shirt", "marque" : "Bershka" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Necklace", "marque" : "Bala Boosté" }] }, 
{"nom7bit": "Girls best friend3", "id": "494", "nom": "Girls best friend3", "items": [{ "type" : "Top", "marque" : "Pepe jeans" }, { "type" : "Necklace", "marque" : "La Boule Magique" }] }, 
{"nom7bit": "Manucustom basket2", "id": "574", "nom": "Manucustom basket2", "items": [{ "type" : "Sneakers", "marque" : "Manucustom" }] }, 
{"nom7bit": "Cotton Eyed Joe", "id": "580", "nom": "Cotton Eyed Joe", "items": [{ "type" : "Longline bra", "marque" : "Pepe jeans" }] }, 
{"nom7bit": "Nanais in Wonderland2", "id": "586", "nom": "Nanais in Wonderland2", "items": [{ "type" : "Dress", "marque" : "Naf Naf" }, { "type" : "Ballerinas", "marque" : "Etam" }, { "type" : "Sunglasses", "marque" : "H&M" }, { "type" : "Ring", "marque" : "" }] }, 
{"nom7bit": "RetroStreet", "id": "600", "nom": "RetroStreet", "items": [{ "type" : "Top", "marque" : "Naf Naf" }, { "type" : "Bermuda shorts", "marque" : "Mango" }, { "type" : "Belt", "marque" : "Mango" }, { "type" : "Sling-backs", "marque" : "Zara" }, { "type" : "Sunglasses", "marque" : "Galeries Lafayette" }] }, 
{"nom7bit": "Absinthe", "id": "612", "nom": "Absinthe", "items": [{ "type" : "Dress", "marque" : "Les Petites" }] }, 
{"nom7bit": "Rayure1", "id": "628", "nom": "Rayure1", "items": [{ "type" : "Shirt", "marque" : "Zara" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Belt", "marque" : "Pimkie" }] }, 
{"nom7bit": "Mac1", "id": "645", "nom": "Mac1", "items": [{ "type" : "Ordinateur", "marque" : "Apple" }, { "type" : "Make-up", "marque" : "Chanel" }] }, 
{"nom7bit": "Vernis bio2", "id": "650", "nom": "Vernis bio2", "items": [{ "type" : "Make-up", "marque" : "Formazur" }] }, 
{"nom7bit": "Speciale dedicace", "id": "690", "nom": "Spéciale dédicace ;-)", "items": [{ "type" : "Top", "marque" : "Mango" }] }, 
{"nom7bit": "Amsterdam WE", "id": "724", "nom": "Amsterdam WE", "items": [{ "type" : "Dress", "marque" : "Vero Moda" }, { "type" : "Earrings", "marque" : "Claire's" }] }, 
{"nom7bit": "Mon dernier vert1", "id": "775", "nom": "Mon dernier vert1", "items": [{ "type" : "Ankle boots", "marque" : "Café Moda" }] }, 
{"nom7bit": "80s nostalgie2", "id": "776", "nom": "80's nostalgie2", "items": [{ "type" : "Tunic", "marque" : "Inconnu!!" }] }, 
{"nom7bit": "Plastic heart1", "id": "777", "nom": "Plastic heart1", "items": [{ "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Bracelet", "marque" : "Claire's" }, { "type" : "Pochette", "marque" : "Bershka" }] }, 
{"nom7bit": "En entier", "id": "861", "nom": "En entier", "items": [{ "type" : "Dress", "marque" : "Vero Moda" }, { "type" : "Sling-backs", "marque" : "Tropico" }] }, 
{"nom7bit": "Soleil Inca", "id": "862", "nom": "Soleil Inca", "items": [{ "type" : "Dress", "marque" : "Zara" }] }, 
{"nom7bit": "Summer color", "id": "863", "nom": "Summer color", "items": [{ "type" : "Dress", "marque" : "Zara" }, { "type" : "Sling-backs", "marque" : "Zara" }] }, 
{"nom7bit": "Sexy back", "id": "864", "nom": "Sexy back", "items": [{ "type" : "Dress", "marque" : "Pineapple" }] }, 
{"nom7bit": "Yesim Chambrey", "id": "865", "nom": "Yesim Chambrey", "items": [{ "type" : "Dress", "marque" : "Yesim Chambrey" }] }, 
{"nom7bit": "Folk in the City", "id": "893", "nom": "Folk in the City", "items": [{ "type" : "Tunic", "marque" : "Mango" }, { "type" : "Tank", "marque" : "Zara" }, { "type" : "Necklace", "marque" : "Bala Boosté" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Bracelet", "marque" : "Inconnue car hollandaise" }, { "type" : "Ankle boots", "marque" : "Café moda" }] }, 
{"nom7bit": "Vogue a lame", "id": "1212", "nom": "Vogue à l'âme", "items": [{ "type" : "Gilet", "marque" : "H&M" }, { "type" : "Bracelet", "marque" : "Claire's" }, { "type" : "Make-up", "marque" : "Bourjois" }, { "type" : "Make-up", "marque" : "Nivea" }] }, 
{"nom7bit": "Petit Marin fashion", "id": "1213", "nom": "Petit Marin fashion", "items": [{ "type" : "Jacket", "marque" : "Fait Maison" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Ballerinas", "marque" : "Fait Maison" }, { "type" : "Cap", "marque" : "Pepe jeans" }] }, 
{"nom7bit": "Mer en vue", "id": "1215", "nom": "Mer en vue", "items": [{ "type" : "Gilet", "marque" : "Etam" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Ballerinas", "marque" : "Etam" }, { "type" : "Sunglasses", "marque" : "Galeries Lafayette" }] }, 
{"nom7bit": "Self confidence", "id": "1216", "nom": "Self confidence", "items": [{ "type" : "Swimsuit top", "marque" : "H&M" }, { "type" : "Swimsuit bottom", "marque" : "H&M" }, { "type" : "Sunglasses", "marque" : "Galeries Lafayette" }] }, 
{"nom7bit": "Randonnee sexy", "id": "1217", "nom": "Randonnée sexy", "items": [{ "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Sling-backs", "marque" : "" }] }, 
{"nom7bit": "Fashion Rodeo", "id": "1218", "nom": "Fashion Rodéo", "items": [{ "type" : "Sweater", "marque" : "" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Sling-backs", "marque" : "Tropico" }, { "type" : "Hair band", "marque" : "Papa pique et Maman coud" }] }, 
{"nom7bit": "Miroir de la rue", "id": "1573", "nom": "Miroir de la rue", "items": [{ "type" : "Coat", "marque" : "Pepe jeans" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Three quarter boots", "marque" : "Andre" }] }, 
{"nom7bit": "Escaliers de la Republique", "id": "1579", "nom": "Escaliers de la République", "items": [{ "type" : "Coat", "marque" : "Pepe jeans" }, { "type" : "Jeans", "marque" : "Zara" }] }, 
{"nom7bit": "New is Good sometimes", "id": "1596", "nom": "New is Good sometimes ;-)", "items": [{ "type" : "Wallet", "marque" : "Brontibay" }] }, 
{"nom7bit": "Cheap n Chic1", "id": "1597", "nom": "Cheap n' Chic1", "items": [{ "type" : "Sweater", "marque" : "Eurodif" }, { "type" : "Top", "marque" : "Pepe jeans" }, { "type" : "Necklace", "marque" : "Monoprix" }, { "type" : "Jeans", "marque" : "Pepe jeans" }, { "type" : "Ankle boots", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Mac In Touch", "id": "1598", "nom": "Mac In Touch", "items": [{ "type" : "Make-up", "marque" : "Mac Cosmetics" }] }, 
{"nom7bit": "Couleurs de lamour", "id": "1605", "nom": "Couleurs de l'amour", "items": [{ "type" : "Bracelet", "marque" : "Gueguin Picaud" }, { "type" : "Ring", "marque" : "Gueguin Picaud" }] }, 
{"nom7bit": "Majestic", "id": "1610", "nom": "Majestic", "items": [{ "type" : "Top", "marque" : "Majestic" }] }];

var Nanais_tofindex = 19;

function Nanais_updatetof() {
  var tag = document.getElementById('look_Nanais');
  var dbgstr = Nanais_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://en.cloziz.com/look/thumb/lookid/' + Nanais_data[Nanais_tofindex].id;
  var new_link = 'http://en.cloziz.com/look/show/lookid/' + Nanais_data[Nanais_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", Nanais_data[Nanais_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_Nanais');
  if (tag) {
    tag.innerHTML = Nanais_data[Nanais_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_Nanais');
  if (tag) {
    var items = Nanais_data[Nanais_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_Nanais');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_Nanais');
  if (tag) tag.href = new_link;
  return true;
}

function Nanais_nexttof() {
  Nanais_tofindex++;
  if(Nanais_tofindex == Nanais_data.length)
    Nanais_tofindex = 0;
  return Nanais_updatetof();
}

function Nanais_prevtof() {
  if(Nanais_tofindex==0)
    Nanais_tofindex = Nanais_data.length;
  Nanais_tofindex--;
  return Nanais_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_Nanais" href="http://en.cloziz.com/Nanais/look/Mexico"><img id="look_Nanais" alt="Mexico" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://en.cloziz.com/look/thumb/lookid/17" /></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="Nanais_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="Nanais_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_Nanais" 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_Nanais">');
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_Nanais">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>');

Nanais_updatetof();


