/* $Id: $ */
/*
  www.clubkart.it - Copyright (c) 2002-2011 Mario Cimento - cimario@tiscali.it - http://creativecommons.org/licenses/by-nc-nd/2.5/it/
  Reverse engineering of this file is strictly prohibited. File protected by copyright law and provided under license.
  - Script visualizzare la slide gallery -
*/
var ck_slideGallInit=false;var slideGallCont;var loc=""+window.location;function loadSlideGall(){var A="js/gallery/noobSlide.js";var B=false;$$("head")[0].getElements("script").each(function(D){if(D.get("src")==A){B=true}});if(!B){var C=new Element("script",{"type":"text/javascript","src":A});C.addEvent("load",buildSlideGallEv.bindWithEvent(C));C.addEvent("readystatechange",buildSlideGallEv.bindWithEvent(C));C.inject($$("head")[0])}else{buildSlideGall()}}function buildSlideGallEv(A){buildSlideGall()}function buildSlideGall(){if((typeof (MooTools)=="undefined")||(typeof (Fx.Transitions)=="undefined")||(typeof (noobSlide)=="undefined")){buildSlideGall.delay(500,null);return }if(ck_slideGallInit==true){return }ck_slideGallInit=true;slideGallCont=$("slideGallCont");if(slideGallCont==null){return }if(IMAGES_src==null){alert("\n\n IMAGES_src non trovato!!! \n\n");return }var E="";if(typeof (IMAGES_thumbs_ext)=="string"){E=IMAGES_thumbs_ext}var G=new Element("div",{"style":"float:left; background:none; width:100px; height:100%; border:0px solid #ff9900; padding-bottom:10px;"}).inject(slideGallCont);var H=new Element("div",{"style":"float:left; position:relative; margin:0px; padding-bottom:15px; top:5px; left:7px; overflow:hidden; background:none; width:350px; height:250px;"}).inject(slideGallCont);var B=new Element("div",{"style":"position:absolute; text-align:center; font-family:Verdana; font-size:10pt; font-weight:bold; color:#ee0000; background:none; top:0px; left:0px; width:100%; height:20px;","html":"highlights "+IMAGES_raceName}).inject(H);var M=new Element("div",{"style":"position:absolute; margin:0px; top:20px; left:0px; overflow:hidden; background:none; width:350px; height:210px;"}).inject(H);var I=new Element("div",{"style":"position:absolute; background:none; width:350px; height:210px; top:0px; left:0px;"}).inject(M);var D=new Element("div",{"style":"position:absolute; font-family:Verdana; font-size:10pt; color:#eeeeee; background:#333333; top:230px; left:0px; width:100%; height:20px;"}).inject(H);var F=new Element("div",{"style":"float:right; background:none; width:100px; height:100%; border:0px solid #ff0099; padding-bottom:10px;"}).inject(slideGallCont);var J=20;var A=IMAGES_src.length;var C=[];var K=[];IMAGES_src.each(function(T,Q){if(Q<J){var S=T.replace(/\.([^\.]*)$/,E+".$1");var U=new Element("span",{"style":"width:100%; display:block; height:210px; float:left;"}).inject(I);var P=new Element("img",{"style":"width:100%; display:block; height:100%;","src":S}).inject(U);var O=((Q<4)||(Q<A/2))?G:F;var N=new Element("div",{"style":"width:100px; height:65px; display:block; float:left; cursor:pointer;"}).inject(O);var R=new Element("img",{"style":"width:100%; height:100%; display:block;","src":S}).inject(N);C.push(N);K.push({comment:IMAGES_comment[Q]})}});D.set("opacity",0.8);var L=new noobSlide({mode:"vertical",box:I,items:K,size:210,handles:C,handle_event:"mousemove",button_event:"click",fxOptions:{duration:1000,transition:Fx.Transitions.Back.easeOut,wait:false},onWalk:function(N,O){D.empty();D.set("html","<b>"+N.comment+"</b>");this.handles.each(function(P){P.set("opacity",0.4)});O.set("opacity",1)}})}window.addEvent("domready",loadSlideGall)
