var dreamer_data = [ {"nom7bit": "jeans art", "id": "517", "nom": "jeans art", "items": [{ "type" : "Jeans", "marque" : "Fait Maison" }, { "type" : "Sportschuhe", "marque" : "mizuno" }] }, 
{"nom7bit": "tshirt thoughts mandela", "id": "518", "nom": "t-shirt thoughts "mandela"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt thoughts bob marley", "id": "547", "nom": "t-shirt thoughts "bob marley"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "jeans art venus de botticelli3", "id": "548", "nom": "jeans art "venus de botticelli"3", "items": [{ "type" : "Jeans", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt thoughts ali", "id": "565", "nom": "t-shirt thoughts "ali"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "jeans cash money", "id": "566", "nom": "jeans cash money", "items": [{ "type" : "Jeans", "marque" : "Fait Maison" }] }, 
{"nom7bit": "running", "id": "567", "nom": "running", "items": [{ "type" : "Sportschuhe", "marque" : "New Balance" }] }, 
{"nom7bit": "tshirt thoughts john lennon", "id": "602", "nom": "t-shirt thoughts "john lennon"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "jeans art venus de botticelli2", "id": "604", "nom": "jeans art "venus de botticelli"2", "items": [{ "type" : "Jeans", "marque" : "Fait Maison" }] }, 
{"nom7bit": "badges originaux girls", "id": "605", "nom": "badges originaux "girls"", "items": [{ "type" : "Button", "marque" : "Fait Maison" }] }, 
{"nom7bit": "badges originaux girls1", "id": "606", "nom": "badges originaux "girls"1", "items": [{ "type" : "Button", "marque" : "Fait Maison" }] }, 
{"nom7bit": "badges originaux girls3", "id": "608", "nom": "badges originaux "girls"3", "items": [{ "type" : "Button", "marque" : "Fait Maison" }] }, 
{"nom7bit": "badges originaux girls4", "id": "609", "nom": "badges originaux "girls"4", "items": [{ "type" : "Button", "marque" : "Fait Maison" }] }, 
{"nom7bit": "badges originaux girls6", "id": "610", "nom": "badges originaux "girls"6", "items": [{ "type" : "Button", "marque" : "Fait Maison" }] }, 
{"nom7bit": " 4", "id": "619", "nom": " "&"4", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "etoile filante1", "id": "620", "nom": "étoile filante1", "items": [{ "type" : "Trägershirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "debardeur  badges1", "id": "621", "nom": "débardeur + badges1", "items": [{ "type" : "Top", "marque" : "Fait Maison" }, { "type" : "Button", "marque" : "Fait Maison" }] }, 
{"nom7bit": "top  broderiebroches1", "id": "622", "nom": "top + broderie-broches1", "items": [{ "type" : "Trägershirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "concept broderiebroches", "id": "623", "nom": "concept broderie-broches", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "jealous", "id": "635", "nom": "jealous", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "debardeur brochebroderie", "id": "636", "nom": "débardeur "broche-broderie"", "items": [{ "type" : "Top", "marque" : "Fait Maison" }] }, 
{"nom7bit": "m  u me and you", "id": "637", "nom": "m & u "me and you"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "top brochebroderie", "id": "693", "nom": "top "broche-broderie"", "items": [{ "type" : "Trägershirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "debardeur dos nageur broderiebroche1", "id": "695", "nom": "débardeur dos nageur "broderie-broche"1", "items": [{ "type" : "Top", "marque" : "Fait Maison" }] }, 
{"nom7bit": "top etoile filante", "id": "698", "nom": "top "étoile filante"", "items": [{ "type" : "Trägershirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "top fatal beauty1", "id": "699", "nom": "top "fatal beauty"1", "items": [{ "type" : "Trägershirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt  jealous", "id": "700", "nom": "t-shirt  "jealous ?"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt vintage ange1", "id": "705", "nom": "t-shirt vintage "ange"1", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt interdit aux cons", "id": "706", "nom": "t-shirt "interdit aux cons"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt star", "id": "712", "nom": "t-shirt "star"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt broderiebroche", "id": "733", "nom": "t-shirt "broderie-broche"", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt les 7 arts", "id": "735", "nom": "t-shirt les 7 arts", "items": [{ "type" : "Bluse", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tshirt star1", "id": "769", "nom": "t-shirt "star"1", "items": [{ "type" : "T-Shirt", "marque" : "Fait Maison" }] }, 
{"nom7bit": "badges originaux girls7", "id": "802", "nom": "badges originaux "girls"7", "items": [{ "type" : "Button", "marque" : "Fait Maison" }] }, 
{"nom7bit": "tattoo tribal concept jeans dentelles", "id": "1316", "nom": "tattoo tribal "concept jeans dentelles"", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "tattoo tribal concept jeans dentelles1", "id": "1317", "nom": "tattoo tribal "concept jeans dentelles"1", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "gold leaf  silver star jeans dentelles2", "id": "1320", "nom": "gold leaf & silver star "jeans dentelles"2", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "gold leal  silver star", "id": "1321", "nom": "gold leal & silver star", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "abbey road concept ombre et lumiere", "id": "1326", "nom": "abbey road "concept ombre et lumière"", "items": [{ "type" : "Top", "marque" : "b original b unique" }] }, 
{"nom7bit": "tattoo kanjihands concept jeans dentelles", "id": "1327", "nom": "tattoo kanji-hands "concept jeans dentelles"", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "tattoo kanji  hands concept jeans dentelles", "id": "1328", "nom": "tattoo kanji & hands "concept jeans dentelles"", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "DENIN WPH NACRE", "id": "1856", "nom": "DENIN WPH NACRE", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }, { "type" : "Ballerinas", "marque" : "Fait Maison" }] }, 
{"nom7bit": "DENIN WPH NACRE1", "id": "1857", "nom": "DENIN WPH NACRE1", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "BOUTON BIJOU WPH NACRE", "id": "1858", "nom": "BOUTON BIJOU WPH NACRE", "items": [{ "type" : "Gürtel", "marque" : "b original b unique" }] }, 
{"nom7bit": "DENIN WPH FLORAL", "id": "1859", "nom": "DENIN WPH FLORAL", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "DENIN WPH FLORAL1", "id": "1860", "nom": "DENIN WPH FLORAL1", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "BOUTON BIJOU WPH FLORAL", "id": "1861", "nom": "BOUTON BIJOU WPH FLORAL", "items": [{ "type" : "Gürtel", "marque" : "b original b unique" }] }, 
{"nom7bit": "BOUTON BIJOU WPH FLORAL1", "id": "1862", "nom": "BOUTON BIJOU WPH FLORAL1", "items": [{ "type" : "Stutzen", "marque" : "b original b unique" }] }, 
{"nom7bit": "DENIN WPH ORIENTAL", "id": "1873", "nom": "DENIN WPH ORIENTAL", "items": [{ "type" : "Jeans", "marque" : "b original b unique" }] }, 
{"nom7bit": "DENIN  WPH ORIENTAL", "id": "1874", "nom": "DENIN  WPH ORIENTAL", "items": [] }, 
{"nom7bit": "BOUTON BIJOU WPH ORIENTAL", "id": "1875", "nom": "BOUTON BIJOU WPH ORIENTAL", "items": [{ "type" : "Gürtel", "marque" : "b original b unique" }] }, 
{"nom7bit": "jeans tattoo tribal ", "id": "2070", "nom": "jeans tattoo tribal ", "items": [{ "type" : "Bluse", "marque" : "b original b unique" }, { "type" : "Stutzen", "marque" : "b original b unique" }, { "type" : "Button", "marque" : "b original b unique" }] }, 
{"nom7bit": "jeans tattoo tribal1", "id": "2071", "nom": "jeans tattoo tribal1", "items": [{ "type" : "Top", "marque" : "b original b unique" }, { "type" : "Jeans", "marque" : "b original b unique" }, { "type" : "Button", "marque" : "b original b unique" }] }, 
{"nom7bit": "   a fleur de peau", "id": "2085", "nom": " ? - à fleur de peau", "items": [{ "type" : "T-Shirt", "marque" : "b original b unique" }, { "type" : "Stutzen", "marque" : "b original b unique" }] }, 
{"nom7bit": "broderiebroche", "id": "2086", "nom": "broderie-broche", "items": [{ "type" : "Top", "marque" : "b original b unique" }] }, 
{"nom7bit": "jimmy", "id": "2217", "nom": "jimmy", "items": [{ "type" : "T-Shirt", "marque" : "b original b unique" }] }, 
{"nom7bit": "brochebroderiedragonfly", "id": "2218", "nom": "broche-broderie/dragonfly", "items": [{ "type" : "Top", "marque" : "b original b unique" }] }];

var dreamer_tofindex = 39;

function dreamer_updatetof() {
  var tag = document.getElementById('look_dreamer');
  var dbgstr = dreamer_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://de.cloziz.com/look/thumb/lookid/' + dreamer_data[dreamer_tofindex].id;
  var new_link = 'http://de.cloziz.com/look/show/lookid/' + dreamer_data[dreamer_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", dreamer_data[dreamer_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_dreamer');
  if (tag) {
    tag.innerHTML = dreamer_data[dreamer_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_dreamer');
  if (tag) {
    var items = dreamer_data[dreamer_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_dreamer');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_dreamer');
  if (tag) tag.href = new_link;
  return true;
}

function dreamer_nexttof() {
  dreamer_tofindex++;
  if(dreamer_tofindex == dreamer_data.length)
    dreamer_tofindex = 0;
  return dreamer_updatetof();
}

function dreamer_prevtof() {
  if(dreamer_tofindex==0)
    dreamer_tofindex = dreamer_data.length;
  dreamer_tofindex--;
  return dreamer_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_dreamer" href="http://de.cloziz.com/dreamer/look/jeans+art"><img id="look_dreamer" alt="jeans art" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://de.cloziz.com/look/thumb/lookid/517" /></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="dreamer_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="dreamer_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_dreamer" 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_dreamer">');
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_dreamer">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>');

dreamer_updatetof();


