var Hoshiix_data = [ {"nom7bit": "Robe Bustier Bleue", "id": "2268", "nom": "Robe Bustier Bleue", "items": [{ "type" : "Dress", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Robe Bustier Bleue 3", "id": "2270", "nom": "Robe Bustier Bleue 3", "items": [{ "type" : "Dress", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Sage ", "id": "2271", "nom": "Sage ?", "items": [{ "type" : "Shirt", "marque" : "Pimkie" }, { "type" : "Skirt", "marque" : "" }, { "type" : "Necklace", "marque" : "" }] }, 
{"nom7bit": "Nice mix ", "id": "2290", "nom": "Nice mix ?", "items": [{ "type" : "Gilet", "marque" : "Etam" }, { "type" : "Dress", "marque" : "H&M" }] }, 
{"nom7bit": "Black  White", "id": "2291", "nom": "Black & White", "items": [{ "type" : "Sweater", "marque" : "Etam" }, { "type" : "Scarf", "marque" : "" }] }, 
{"nom7bit": "Flower Power ", "id": "2346", "nom": "Flower Power ", "items": [] }, 
{"nom7bit": "Flower Power 2", "id": "2347", "nom": "Flower Power 2", "items": [] }, 
{"nom7bit": "Flower Power 3", "id": "2348", "nom": "Flower Power 3", "items": [] }, 
{"nom7bit": "Flower Power 4", "id": "2349", "nom": "Flower Power 4", "items": [] }, 
{"nom7bit": "Flower Power 5", "id": "2350", "nom": "Flower Power 5", "items": [] }, 
{"nom7bit": "Lets Rock ", "id": "2351", "nom": "Let's Rock !", "items": [] }, 
{"nom7bit": "Lets Rock  2", "id": "2352", "nom": "Let's Rock ! -2-", "items": [] }, 
{"nom7bit": "Lets Rock  3", "id": "2353", "nom": "Let's Rock ! -3-", "items": [] }, 
{"nom7bit": "Lets Rock  4", "id": "2354", "nom": "Let's Rock ! -4-", "items": [] }, 
{"nom7bit": "Lets Rock  Again ", "id": "2355", "nom": "Let's Rock ! Again ?", "items": [] }, 
{"nom7bit": "Printaniere", "id": "2356", "nom": "Printanière", "items": [] }, 
{"nom7bit": "Printaniere 2", "id": "2357", "nom": "Printanière -2-", "items": [] }, 
{"nom7bit": "Printaniere 3", "id": "2358", "nom": "Printanière -3-", "items": [] }, 
{"nom7bit": "Printaniere 4", "id": "2359", "nom": "Printanière -4-", "items": [] }, 
{"nom7bit": "Printaniere 5", "id": "2360", "nom": "Printanière -5-", "items": [] }, 
{"nom7bit": "Gothic Lolita ", "id": "2361", "nom": "Gothic Lolita ?", "items": [] }];

var Hoshiix_tofindex = 16;

function Hoshiix_updatetof() {
  var tag = document.getElementById('look_Hoshiix');
  var dbgstr = Hoshiix_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://www.cloziz.com/look/thumb/lookid/' + Hoshiix_data[Hoshiix_tofindex].id;
  var new_link = 'http://www.cloziz.com/look/show/lookid/' + Hoshiix_data[Hoshiix_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", Hoshiix_data[Hoshiix_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_Hoshiix');
  if (tag) {
    tag.innerHTML = Hoshiix_data[Hoshiix_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_Hoshiix');
  if (tag) {
    var items = Hoshiix_data[Hoshiix_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_Hoshiix');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_Hoshiix');
  if (tag) tag.href = new_link;
  return true;
}

function Hoshiix_nexttof() {
  Hoshiix_tofindex++;
  if(Hoshiix_tofindex == Hoshiix_data.length)
    Hoshiix_tofindex = 0;
  return Hoshiix_updatetof();
}

function Hoshiix_prevtof() {
  if(Hoshiix_tofindex==0)
    Hoshiix_tofindex = Hoshiix_data.length;
  Hoshiix_tofindex--;
  return Hoshiix_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_Hoshiix" href="http://www.cloziz.com/Hoshiix/look/Robe+Bustier+Bleue"><img id="look_Hoshiix" alt="Robe Bustier Bleue" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://www.cloziz.com/look/thumb/lookid/2268" /></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="Hoshiix_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="Hoshiix_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_Hoshiix" 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_Hoshiix">');
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_Hoshiix">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>');

Hoshiix_updatetof();


