var Dalisa_data = [ {"nom7bit": "Lolita1", "id": "23", "nom": "Lolita1", "items": [{ "type" : "Trägershirt", "marque" : "Princesse tam tam" }, { "type" : "Rock", "marque" : "Diesel" }, { "type" : "Stiefeletten", "marque" : "Bensimon" }, { "type" : "Sonnenbrille", "marque" : "Ralph Lauren" }] }, 
{"nom7bit": "JPG", "id": "208", "nom": "JPG", "items": [{ "type" : "Trägershirt", "marque" : "Jean Paul Gaultier" }, { "type" : "Hose", "marque" : "Zara" }, { "type" : "Pumps", "marque" : "Elisabeth Stuart" }, { "type" : "Sonnenbrille", "marque" : "Ralph Lauren" }, { "type" : "Hose", "marque" : "Zara" }, { "type" : "Pumps", "marque" : "Elisabeth Stuart" }, { "type" : "Sonnenbrille", "marque" : "Ralph Lauren" }] }, 
{"nom7bit": "fashion classic1", "id": "219", "nom": "fashion classic1", "items": [{ "type" : "Jacke", "marque" : "Mango" }, { "type" : "Longline-Büstenhalter", "marque" : "Fait Maison" }, { "type" : "Jeans", "marque" : "luxury n'vy denim" }, { "type" : "Pumps", "marque" : "San Marina" }, { "type" : "Sonnenbrille", "marque" : "Ralph Lauren" }] }, 
{"nom7bit": "Leia Organa Solo1", "id": "236", "nom": "Leïa Organa Solo1", "items": [{ "type" : "Mütze", "marque" : "Fait Maison" }, { "type" : "Top", "marque" : "So Kitsch" }, { "type" : "Handschuhe", "marque" : "Fait Maison" }, { "type" : "Halsband", "marque" : "Kookai" }] }, 
{"nom7bit": "Petit Pois", "id": "380", "nom": "Petit Pois", "items": [{ "type" : "Pumps", "marque" : "Andre" }] }, 
{"nom7bit": "Un pois cest tout1", "id": "415", "nom": "Un pois c'est tout1", "items": [{ "type" : "Handtasche", "marque" : "Fait Maison" }] }, 
{"nom7bit": "BUTINNESMOUAH2", "id": "443", "nom": "BUTINNES-MOUAH!2", "items": [{ "type" : "Longline-Büstenhalter", "marque" : "RAYA' SAN' SYSTEM" }, { "type" : "Jeans", "marque" : "Diesel" }, { "type" : "Schminke", "marque" : "The color workshop" }] }, 
{"nom7bit": "LOVE BOAT", "id": "465", "nom": ""LOVE BOAT"", "items": [{ "type" : "T-Shirt", "marque" : "SOGGO" }] }, 
{"nom7bit": "Play the street life1", "id": "466", "nom": "Play the street life1", "items": [{ "type" : "Jacke", "marque" : "Mango" }, { "type" : "Trägershirt", "marque" : "Kookai" }, { "type" : "Jeans", "marque" : "Pepe jeans" }] }, 
{"nom7bit": "Pink butterfly1", "id": "486", "nom": "Pink butterfly1", "items": [{ "type" : "Schlauchkleid", "marque" : "Raya San System" }, { "type" : "Jeans", "marque" : "Teddy Smith" }, { "type" : "Sonnenbrille", "marque" : "Fait Maison" }] }, 
{"nom7bit": "Brunch elections3", "id": "577", "nom": "Brunch élections3", "items": [{ "type" : "Kleid", "marque" : "Studio Pasha" }, { "type" : "Top", "marque" : "Trendy land" }] }, 
{"nom7bit": "On the road2", "id": "601", "nom": "On the road2", "items": [{ "type" : "Trägershirt", "marque" : "Morgan" }, { "type" : "Rock", "marque" : "Pepe jeans" }, { "type" : "Pantoletten", "marque" : "Converse" }] }, 
{"nom7bit": "Noeud", "id": "633", "nom": "Noeud", "items": [{ "type" : "Tuch", "marque" : "Promod" }] }, 
{"nom7bit": "Chevalier blanc", "id": "1557", "nom": "Chevalier blanc", "items": [{ "type" : "Halbstiefel", "marque" : "Bata" }] }, 
{"nom7bit": "Romantico rococo", "id": "1558", "nom": "Romantico rococo", "items": [{ "type" : "Stiefeletten", "marque" : "Bata" }] }, 
{"nom7bit": "Creatrice de glamour", "id": "1559", "nom": "Créatrice de glamour", "items": [{ "type" : "Kleid", "marque" : "Li Lei" }] }, 
{"nom7bit": "Captain Street", "id": "1560", "nom": "Captain Street", "items": [{ "type" : "Mantel", "marque" : "Mango" }] }, 
{"nom7bit": "Sexy street1", "id": "1561", "nom": "Sexy street1", "items": [{ "type" : "Mantel", "marque" : "Zara" }] }, 
{"nom7bit": "ALBATORA", "id": "1568", "nom": "ALBATORA", "items": [{ "type" : "Trägershirt", "marque" : "Li Lei" }] }, 
{"nom7bit": "Sweety1", "id": "1569", "nom": "Sweety1", "items": [{ "type" : "Bluse", "marque" : "Li Lei" }, { "type" : "Unterpulli", "marque" : "Li Lei" }] }];

var Dalisa_tofindex = 12;

function Dalisa_updatetof() {
  var tag = document.getElementById('look_Dalisa');
  var dbgstr = Dalisa_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://de.cloziz.com/look/thumb/lookid/' + Dalisa_data[Dalisa_tofindex].id;
  var new_link = 'http://de.cloziz.com/look/show/lookid/' + Dalisa_data[Dalisa_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", Dalisa_data[Dalisa_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_Dalisa');
  if (tag) {
    tag.innerHTML = Dalisa_data[Dalisa_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_Dalisa');
  if (tag) {
    var items = Dalisa_data[Dalisa_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_Dalisa');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_Dalisa');
  if (tag) tag.href = new_link;
  return true;
}

function Dalisa_nexttof() {
  Dalisa_tofindex++;
  if(Dalisa_tofindex == Dalisa_data.length)
    Dalisa_tofindex = 0;
  return Dalisa_updatetof();
}

function Dalisa_prevtof() {
  if(Dalisa_tofindex==0)
    Dalisa_tofindex = Dalisa_data.length;
  Dalisa_tofindex--;
  return Dalisa_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_Dalisa" href="http://de.cloziz.com/Dalisa/look/Lolita1"><img id="look_Dalisa" alt="Lolita1" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://de.cloziz.com/look/thumb/lookid/23" /></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="Dalisa_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="Dalisa_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_Dalisa" 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_Dalisa">');
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_Dalisa">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>');

Dalisa_updatetof();


