var akwaba_data = [ {"nom7bit": "LO1", "id": "416", "nom": "LO1", "items": [{ "type" : "Other", "marque" : "Site internet" }] }, 
{"nom7bit": "Hurghada1", "id": "417", "nom": "Hurghada1", "items": [{ "type" : "Swimsuit", "marque" : "banana moon" }, { "type" : "Other", "marque" : "tatoo" }] }, 
{"nom7bit": "2eme tatouage", "id": "418", "nom": "2eme tatouage", "items": [{ "type" : "Other", "marque" : "tatoo" }] }, 
{"nom7bit": "bureau", "id": "419", "nom": "bureau", "items": [{ "type" : "Cache-coeur", "marque" : "Ventilo" }, { "type" : "Skirt", "marque" : "Comptoir des cotonniers" }, { "type" : "Necklace", "marque" : "Fait Maison" }] }, 
{"nom7bit": "juste pour le fun", "id": "420", "nom": "juste pour le fun !", "items": [{ "type" : "T-shirt", "marque" : "Adidas" }, { "type" : "Skirt", "marque" : "Morgan" }] }, 
{"nom7bit": "bottes elysabeth stuart", "id": "421", "nom": "bottes elysabeth stuart", "items": [{ "type" : "Three quarter boots", "marque" : "elysabeth stuart" }] }, 
{"nom7bit": "venise 0306", "id": "422", "nom": "venise 03-06", "items": [{ "type" : "Jacket", "marque" : "Giorgio Armani" }, { "type" : "Jeans", "marque" : "Fornarina" }, { "type" : "Three quarter boots", "marque" : "Max Mara" }, { "type" : "Bag / Purse", "marque" : "Gucci" }] }, 
{"nom7bit": "Elbe 0806", "id": "423", "nom": "Elbe 08-06", "items": [{ "type" : "Top", "marque" : "Replay" }, { "type" : "Skirt", "marque" : "Caroll" }, { "type" : "Watch", "marque" : "follie follies" }, { "type" : "Sunglasses", "marque" : "glamour" }] }, 
{"nom7bit": "Rome  Fontaine de Trevi", "id": "424", "nom": "Rome - Fontaine de Trevi", "items": [{ "type" : "Jacket", "marque" : "Morgan" }, { "type" : "Bag / Purse", "marque" : "Prada" }, { "type" : "Cropped pants", "marque" : "italia" }] }, 
{"nom7bit": "Rome  2006", "id": "425", "nom": "Rome - 2006", "items": [{ "type" : "Sunglasses", "marque" : "Gucci" }, { "type" : "Top", "marque" : "Trussardi" }, { "type" : "Jeans", "marque" : "Corleone" }, { "type" : "Bag / Purse", "marque" : "Prada" }] }, 
{"nom7bit": "Florence  0207", "id": "426", "nom": "Florence - 02-07", "items": [{ "type" : "Coat", "marque" : "La Fée Maraboutée" }, { "type" : "Three quarter boots", "marque" : "Max Mara" }, { "type" : "Bag / Purse", "marque" : "Vuitton" }] }, 
{"nom7bit": "playa del carmen 0407", "id": "583", "nom": "playa del carmen 04-07", "items": [{ "type" : "Sunglasses", "marque" : "Rayban" }, { "type" : "Top", "marque" : "Morgan" }, { "type" : "Cropped pants", "marque" : "en jean acheté en italie, taille basse" }, { "type" : "Belt", "marque" : "Max Mara" }, { "type" : "Cabas", "marque" : "Vuitton" }] }, 
{"nom7bit": "playa del carmen 048", "id": "584", "nom": "playa del carmen 04-8", "items": [{ "type" : "Sunglasses", "marque" : "Ray ban" }, { "type" : "Longline bra", "marque" : "Comptoir des cotonniers" }, { "type" : "Cropped pants", "marque" : "acheté en italie, taille basse" }, { "type" : "Belt", "marque" : "Esprit" }] }, 
{"nom7bit": "portofino", "id": "1439", "nom": "portofino", "items": [{ "type" : "Sunglasses", "marque" : "rayban" }, { "type" : "Jacket", "marque" : "petite boutique de Velisy" }, { "type" : "Pants", "marque" : "Comptoir des cotonniers" }] }, 
{"nom7bit": "portofino1", "id": "1440", "nom": "portofino1", "items": [{ "type" : "Gilet", "marque" : "Zara" }, { "type" : "Jeans", "marque" : "Fornarina" }, { "type" : "Sport shoes", "marque" : "Bocage" }, { "type" : "Bag / Purse", "marque" : "Prada" }] }, 
{"nom7bit": "Capri Juillet 2007", "id": "1441", "nom": "Capri Juillet 2007", "items": [{ "type" : "Pendant", "marque" : "TOUS" }, { "type" : "Watch", "marque" : "Za" }, { "type" : "Watch", "marque" : "Zadig et Voltaire" }] }, 
{"nom7bit": "Marrackech Nov07", "id": "1442", "nom": "Marrackech Nov/07", "items": [{ "type" : "Top", "marque" : "Club Med" }] }];

var akwaba_tofindex = 12;

function akwaba_updatetof() {
  var tag = document.getElementById('look_akwaba');
  var dbgstr = akwaba_tofindex + "\n" + tag.src + "\n";
  var new_src = 'http://en.cloziz.com/look/thumb/lookid/' + akwaba_data[akwaba_tofindex].id;
  var new_link = 'http://en.cloziz.com/look/show/lookid/' + akwaba_data[akwaba_tofindex].id;
  if (tag) {
    tag.setAttribute("src", new_src);
    tag.setAttribute("alt", akwaba_data[akwaba_tofindex].nom);
  }
  dbgstr += tag.src + "\n";
  tag = document.getElementById('nomlook_akwaba');
  if (tag) {
    tag.innerHTML = akwaba_data[akwaba_tofindex].nom;
    tag.href = new_link;
  }
  tag = document.getElementById('detaillook_akwaba');
  if (tag) {
    var items = akwaba_data[akwaba_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_akwaba');
  if (tag) tag.href = new_link;
  tag = document.getElementById('link2_akwaba');
  if (tag) tag.href = new_link;
  return true;
}

function akwaba_nexttof() {
  akwaba_tofindex++;
  if(akwaba_tofindex == akwaba_data.length)
    akwaba_tofindex = 0;
  return akwaba_updatetof();
}

function akwaba_prevtof() {
  if(akwaba_tofindex==0)
    akwaba_tofindex = akwaba_data.length;
  akwaba_tofindex--;
  return akwaba_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_akwaba" href="http://en.cloziz.com/akwaba/look/LO1"><img id="look_akwaba" alt="LO1" style="border: 1px solid #313131; padding: 0; margin: 0;" src="http://en.cloziz.com/look/thumb/lookid/416" /></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="akwaba_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="akwaba_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_akwaba" 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_akwaba">');
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_akwaba">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>');

akwaba_updatetof();


