// CREATIONAL : CREATE SITES
// COPYRIGHT 2005 - 2007 : CREATIONAL : WWW.CREATIONAL.NL
// PARTS ARE BASED ON CODE BY: John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
var iss=[];function CL_SlideShow(){if(!document.images||arguments.length==0){return;}var _1=arguments[0];var _2=null,height=null,delay=null;if(arguments.length==3){delay=arguments[2];}else{if(arguments.length==4||arguments.length==5){_2=arguments[2],height=arguments[3],delay=arguments[4]?arguments[4]:null;}}this.dom=(document.getElementById);this.da=document.all;this.delay=_1.delay?_1.delay:delay?delay:3000+iss.length*750;this.speed=_1.speed?_1.speed:10;this.nextimgidx=0;iss[this.issid=iss.length]=this;this.imgs=_1;if(_1.random){this.imgs.sort(function(){return 0.5-Math.random();});}this.imgborder=_1.border?parseInt(_1.border):0;if(!this.dom){this.postimgs=new Array();for(p=0;p<_1.length;p++){this.postimgs[p]=new Image();this.postimgs[p].src=this.imgs[p][0];}}if(this.dom){this.container_id=arguments[1];if(!document.getElementById(this.container_id)){return;}this.container=document.getElementById(this.container_id);this.container_counter=this.container;if(_1.counter_id){if(document.getElementById(_1.counter_id)){this.container_counter=document.getElementById(_1.counter_id);}}this.container_controls=this.container;if(_1.controls_id){if(document.getElementById(_1.controls_id)){this.container_controls=document.getElementById(_1.controls_id);}}this.container_description=this.container;if(_1.description_id){if(document.getElementById(_1.description_id)){this.container_description=document.getElementById(_1.description_id);}}this.faded=0;this.loadimgidx=[];this.fade=!_1.nofade;if(this.fade){this.degree=10;}this.pausecheck=_1.pause;this.mouseovercheck=0;this.canvasbase="canvas"+this.issid;this.curcanvas=this.canvasbase+"_0";this.description=_1.description;this.man_start=_1.manual_start;this.no_auto=_1.no_auto;this.onclick=_1.onclick;this.specs=_1.specs;this.counter=_1.counter;this.counter_outside=_1.counter_outside;this.ics=_1.image_controls;this.jumpto=_1.jumpto;this.controls=_1.controls;this.target=_1.target;this.ualt=_1.use_alt;this.utit=_1.use_title;this.fadecolor=_1.fadecolor;this.ibut_hc=_1.button_highlight;this.dp=_1.desc_prefix?_1.desc_prefix:" ";this.imbcolor=_1.border_color;this.imbstyle=_1.border_style;this.txt_viewing=_1.txt_viewing?_1.txt_viewing:"";this.txt_viewing_divider=_1.txt_viewing_divider?_1.txt_viewing_divider:" / ";this.txt_stop=_1.txt_stop?_1.txt_stop:"Stop";this.txt_play=_1.txt_play?_1.txt_play:"Play";this.txt_previous=_1.txt_previous?_1.txt_previous:"Previous";this.txt_next=_1.txt_next?_1.txt_next:"Next";this.txt_jumpto=_1.txt_jumpto?_1.txt_jumpto:"Jump to";this.txt_go=_1.txt_go?_1.txt_go:"GO";this.width=_1.width?_1.width:_2?_2:null;this.width=this.width?this.width+this.imgborder*2:null;this.height=_1.height?_1.height:height?height:null;this.height=this.height?this.height+this.imgborder*2:null;var _3="",dims="";if(this.width||this.height){dims=this.width&&this.height?"width:"+this.width+"px;height:"+this.height+"px;":this.width?"width:"+this.width+"px;":"height:"+this.height+"px;";}if(this.fade&&document.body&&document.body.style){_3=document.body.filters?"filter:progid:DXImageTransform.Microsoft.alpha(opacity=0);":typeof document.body.style.opacity=="string"?"opacity:0;":"opacity:0.10;-moz-opacity:0.10;-khtml-opacity:0.10;";iefl=document.body.filters?"filter:progid:DXImageTransform.Microsoft.alpha(opacity=75);":"opacity:0.75;-moz-opacity:0.75;-khtml-opacity:0.75;";}if(this.imgs.length==1){this.controls=0;this.counter=0;}if(this.controls&&_1.controls_top){this.controlsHTML();}var _4=document.createElement("div");_4.id="iss_master"+this.issid;var _5=document.createElement("div");_5.id="master"+this.issid;_5.style.cssText="position:relative;"+dims+"overflow:hidden;margin:0 auto;";var _6=document.createElement("div");_6.id=this.canvasbase+"_0";_6.style.cssText="position:absolute;"+dims+"top:0;left:0;"+_3+"background-color:"+(_1.fadecolor?_1.fadecolor:"#FFF");var _7=document.createElement("div");_7.id=this.canvasbase+"_1";_7.style.cssText="position:absolute;"+dims+"top:0;left:0;"+_3+"background-color:"+(_1.fadecolor?_1.fadecolor:"#FFF");_5.appendChild(_6);_5.appendChild(_7);if(this.controls){var _8=document.createElement("div");_8.id="iss_loading"+this.issid;_8.className="iss_loading";_8.style.cssText="display:none;position:absolute;"+dims+"top:0;left:0;"+iefl+"background-color:"+(_1.fadecolor?_1.fadecolor:"#FFF");_8.style.zIndex=3;_5.appendChild(_8);}_4.appendChild(_5);this.container.appendChild(_4);if(this.description){var _9=document.createElement("div");_9.id="iss_description"+this.issid;var _a=document.createTextNode(this.dp);var _b=document.createElement("span");_b.id="iss_descriptiontext"+this.issid;var _c=document.createTextNode("&nbsp;");_9.appendChild(_a);_b.appendChild(_c);_9.appendChild(_b);this.container_description.appendChild(_9);}if(this.counter){this.counterHTML();}if(this.controls&&!_1.controls_top){this.controlsHTML();}this.startit();}else{document.write("<div align=\"center\"><img name=\"defaultslide"+this.issid+"\" src=\""+this.postimgs[0].src+"\"></div>");this.nextimgidx++;setInterval("iss["+this.issid+"].rotateimg()",this.delay);}}CL_SlideShow.prototype.fadepic=function(){if(this.fade&&this.degree<100){this.faded=0;this.degree+=this.speed;if(this.tempobj.filters&&this.tempobj.filters[0]){if(typeof this.tempobj.filters[0].opacity=="number"){this.tempobj.filters[0].opacity=this.degree;}else{this.tempobj.style.filter="alpha(opacity="+this.degree+")";}}else{if(this.tempobj.style.MozOpacity){this.tempobj.style.MozOpacity=this.degree/101;}else{if(this.tempobj.style.KhtmlOpacity){this.tempobj.style.KhtmlOpacity=this.degree/100;}else{if(this.tempobj.style.opacity&&!this.tempobj.filters){this.tempobj.style.opacity=this.degree/101;}}}}}else{this.faded=1;clearInterval(this.fadeclear);this.nextcanvas=(this.curcanvas==this.canvasbase+"_0")?this.canvasbase+"_0":this.canvasbase+"_1";this.tempobj=this.go(this.nextcanvas);if(this.playing){this.changeimg();}}};CL_SlideShow.prototype.populateslide=function(_d,_e){if(document.getElementsByTagName){if(_d.getElementsByTagName("a")[0]&&_d.getElementsByTagName("a")[0].onclick){_d.getElementsByTagName("a")[0].onclick=null;}if(_d.getElementsByTagName("img")[0]&&_d.getElementsByTagName("img")[0].onload){_d.getElementsByTagName("img")[0].onload=null;}}_d.style.backgroundColor=this.imgs[_e].fadecolor?this.imgs[_e].fadecolor:this.fadecolor?this.fadecolor:"white";var _f="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\"><tr><td width=\"100%\" height=\"100%\" align=\"center\" valign=\"middle\" style=\"background:transparent none;\">";if(this.imgs[_e][2]){var _10=this.imgs[_e][4]?", '"+this.imgs[_e][4]+"'":this.specs?", '"+this.specs+"'":"";_f+="<a href=\""+this.imgs[_e][2]+"\""+(this.imgs[_e][3]?" target=\""+this.imgs[_e][3]+"\"":this.target?" target=\""+this.target+"\"":"")+" onclick=\""+(this.onclick?this.onclick:"window.open(this.href, (this.target? this.target : '_self')"+_10+");return false;")+"\">";}_f+="<img id=\"theimg"+_e+"_"+this.issid+"\" src=\""+(this.loadimgidx[_e]&&typeof this.loadimgidx[_e].complete=="boolean"&&this.loadimgidx[_e].complete?this.loadimgidx[_e].src:this.imgs[_e][0])+"\" alt=\""+(this.ualt?this.imgs[_e][1]:"")+"\" title=\""+(this.utit?this.imgs[_e][1]:"")+"\" "+(this.imbcolor&&!this.imgs[_e].noborder?"style=\"border:"+this.imgborder+"px "+(this.imbstyle?this.imbstyle:"solid")+" "+this.imbcolor+";\"":"border=\""+(this.imgs[_e].noborder?"0":this.imgborder)+"\"")+(!this.width||!this.height?" onload=\"iss["+this.issid+"].imgload(this);\"":"")+">";if(this.imgs[_e][2]){_f+="</a>";}_f+="</td></tr></table>";_d.innerHTML=_f;};CL_SlideShow.prototype.imgload=function(el){if(!el&&!this.imgel){return;}var el=el?el:this.imgel;if(el.width==0||el.height==0){this.imgel=el;var _13=this;clearTimeout(this.getdim);this.getdim=setTimeout(function(){_13.imgload();},300);return;}var m=this.go("master"+this.issid).style,c0=this.go(this.canvasbase+"_0").style,c1=this.go(this.canvasbase+"_1").style;if(this.controls){var l=this.go("iss_loading"+this.issid).style;}if(!this.width){this.width=el.width+this.imgborder*2;m.width=c0.width=c1.width=this.width+"px";if(this.controls){l.width=this.width+"px";}}if(!this.height){this.height=el.height+this.imgborder*2;m.height=c0.height=c1.height=this.height+"px";if(this.controls){l.height=this.height+"px";}}};CL_SlideShow.prototype.changeimg=function(_16,nav){if(this.playing){if(this.controls){this.buttons(false);}this.nextimgidx=(this.keeptrack()<this.imgs.length-1)?this.keeptrack()+1:0;this.populateslide(this.tempobj,this.nextimgidx);if(_16){this.rotateimg();}else{clearTimeout(this.inprocess);this.inprocess=setTimeout("iss["+this.issid+"].rotateimg()",this.delay);}}else{if(!this.faded){if(nav&&nav=="nav"){return;}this.nextimgidx=this.keeptrack()+(_16?1:-1);this.nextimgidx=(this.nextimgidx<this.imgs.length)?this.nextimgidx:this.nextimgidx-this.imgs.length;this.nextimgidx=(this.nextimgidx>-1)?this.nextimgidx:this.imgs.length+this.nextimgidx;return;}if(this.fadeclear){clearInterval(this.fadeclear);}var _18;if(_16){loadidx=this.nextimgidx+2;}else{loadidx=this.nextimgidx-2;}loadidx=(loadidx<this.imgs.length)?loadidx:loadidx-this.imgs.length;loadidx=(loadidx>-1)?loadidx:this.imgs.length+loadidx;this.loadimgidx[loadidx]=new Image();this.loadimgidx[loadidx].src=this.imgs[loadidx][0];if(nav&&nav=="jump"){this.nextimgidx++;}else{this.nextimgidx=this.keeptrack()+(_16?1:-1);}this.nextimgidx=(this.nextimgidx<this.imgs.length)?this.nextimgidx:this.nextimgidx-this.imgs.length;this.nextimgidx=(this.nextimgidx>-1)?this.nextimgidx:this.imgs.length+this.nextimgidx;this.populateslide(this.tempobj,this.nextimgidx);this.rotateimg();}};CL_SlideShow.prototype.go=function(id){return this.da?this.da[id]:document.getElementById(id);};CL_SlideShow.prototype.rotateimg=function(){if(this.dom){var _1a=this.go("theimg"+this.nextimgidx+"_"+this.issid)?this.go("theimg"+this.nextimgidx+"_"+this.issid):null;if(_1a&&typeof _1a.complete=="boolean"&&!_1a.complete){if(!this.playing&&this.controls){var l=this.go("iss_loading"+this.issid);l.style.display="block";}var _1c=this;clearTimeout(this.loading);this.loading=setTimeout(function(){_1c.rotateimg();},300);return;}else{if(!this.playing&&this.controls){var l=this.go("iss_loading"+this.issid);l.style.display="none";}this.test=0;}if(this.mouseovercheck==1){var _1e=this;clearTimeout(this.mousep);this.mousep=setTimeout(function(){_1e.rotateimg();},100);return;}if(this.fade){this.resetit();}var _1f=this.tempobj=this.go(this.curcanvas);_1f.style.zIndex++;var _20=this.curcanvas==this.canvasbase+"_0"?this.go(this.canvasbase+"_1"):this.go(this.canvasbase+"_0");_20.style.zIndex=0;if(this.description){this.go("iss_descriptiontext"+this.issid).firstChild.nodeValue=this.imgs[this.keeptrack()][1];}if(this.counter){var _21="";for(var p=0;p<this.cpad-(this.nextimgidx+1).toString().length;p++){_21+="<span style=\"visibility:hidden;\">0</span>";}if(this.go("iss_countercurrent"+this.issid)){this.go("iss_countercurrent"+this.issid).innerHTML=_21+(this.keeptrack()<this.imgs.length?this.keeptrack()+1:1);}}if(this.jumpto){this.go("goto"+this.issid).value=this.keeptrack()<this.imgs.length?this.keeptrack()+1:1;}this.jumperidx=this.keeptrack()<this.imgs.length?this.keeptrack()+1:1;var _23=this;clearInterval(this.fadeclear);this.fadeclear=setInterval(function(){_23.fadepic();},50);this.curcanvas=(this.curcanvas==this.canvasbase+"_0")?this.canvasbase+"_1":this.canvasbase+"_0";}else{var _24=document.images["defaultslide"+this.issid];_24.src=this.postimgs[this.nextimgidx].src;this.nextimgidx=(this.nextimgidx<this.imgs.length-1)?this.nextimgidx+1:0;}};CL_SlideShow.prototype.resetit=function(){this.degree=10;var _25=this.go(this.curcanvas);if(_25.filters&&_25.filters[0]){if(typeof _25.filters[0].opacity=="number"){_25.filters(0).opacity=this.degree;}else{_25.style.filter="alpha(opacity="+this.degree+")";}}else{if(_25.style.MozOpacity){_25.style.MozOpacity=this.degree/101;}else{if(_25.style.KhtmlOpacity){_25.style.KhtmlOpacity=this.degree/100;}else{if(_25.style.opacity&&!_25.filters){_25.style.opacity=this.degree/101;}}}}};CL_SlideShow.prototype.startit=function(){this.playing=1;var _26=this.go(this.curcanvas);this.populateslide(_26,this.nextimgidx);if(this.pausecheck==1){var _27=this;var _28=this.go("master"+this.issid);_28.onmouseover=function(){_27.mouseovercheck=1;};_28.onmouseout=function(){_27.mouseovercheck=0;};}this.rotateimg();if(this.no_auto){this.gostop(false);}else{if(this.man_start){this.gostop(false,this.go("gostp"+this.issid));}else{if(this.ics&&document.body.filters){this.buttons(false);}}}};CL_SlideShow.prototype.keeptrack=function(){if(!document.getElementsByTagName){return this.nextimgidx;}var _29=[this.go("canvas"+this.issid+"_0"),this.go("canvas"+this.issid+"_1")];if(_29[0].style.zIndex>_29[1].style.zIndex&&_29[0].getElementsByTagName("img")[0]){return parseInt(_29[0].getElementsByTagName("img")[0].id.replace(/theimg/,""));}else{if(_29[1].getElementsByTagName("img")[0]){return parseInt(_29[1].getElementsByTagName("img")[0].id.replace(/theimg/,""));}else{return this.nextimgidx;}}};