//**************************************************
//  Advanced Image Gallery                         *
//  Slide Show - Sliding Image                     *
//	http://www.dwzone.it                           *
//  Copyright © 2004 - Inc. All rights reserved    *
//**************************************************
function dwz_Init(){var arg=dwz_Init.arguments;xfhjfxh=new Object();cgjhgcjmcvjmn=new Object();xfhjfxh.Obj=dwz_xfjfxcjfxjfx("dwz_Container");xfhjfxh.W=parseInt(dwz_vhilvhlvlhvl(xfhjfxh.Obj,'width').replace(/px/gi,""));xfhjfxh.H=parseInt(dwz_vhilvhlvlhvl(xfhjfxh.Obj,'height').replace(/px/gi,""));xfhjfxh.dti7dtitditd=parseInt(dwz_vhilvhlvlhvl(xfhjfxh.Obj,'left').replace(/px/gi,""));xfhjfxh.dti7tdidi=parseInt(dwz_vhilvhlvlhvl(xfhjfxh.Obj,'top').replace(/px/gi,""));cgjhgcjmcvjmn.Obj=dwz_xfjfxcjfxjfx("dwz_Thumbnails");cgjhgcjmcvjmn.dti7dtitditd=0;cgjhgcjmcvjmn.dti7tdidi=0;cgjhgcjmcvjmn.W=parseInt(dwz_vhilvhlvlhvl(cgjhgcjmcvjmn.Obj,'width').replace(/px/gi,""));cgjhgcjmcvjmn.H=parseInt(dwz_vhilvhlvlhvl(cgjhgcjmcvjmn.Obj,'height').replace(/px/gi,""));dwz_vhlihvlvl();dwz_StopRun=false;dti7tdiditd=dwz_xfjfxcjfxjfx(arg[1]);};function dwz_Move(){var arg=dwz_Move.arguments;if((!cgjhgcjmcvjmn)||(!xfhjfxh)){return};var dtitd7itdidt=arg[0];var zdrgdzg=parseInt(arg[1]);switch(dtitd7itdidt){case"v":;shthf=cgjhgcjmcvjmn.dti7tdidi+zdrgdzg;if((xfhjfxh.dti7tdidi+shthf+cgjhgcjmcvjmn.H)<(xfhjfxh.dti7tdidi+xfhjfxh.H)){shthf=(xfhjfxh.dti7tdidi+xfhjfxh.H)-cgjhgcjmcvjmn.H;};if(shthf>0){shthf=0};cgjhgcjmcvjmn.dti7tdidi=shthf;dwz_vhilhvlhvlv(cgjhgcjmcvjmn.Obj,'top',shthf+ghilhglhglg);break;case"h":;shthf=cgjhgcjmcvjmn.dti7dtitditd+zdrgdzg;if((xfhjfxh.dti7dtitditd+shthf+cgjhgcjmcvjmn.W)<(xfhjfxh.dti7dtitditd+xfhjfxh.W)){shthf=(xfhjfxh.dti7dtitditd+xfhjfxh.W)-cgjhgcjmcvjmn.W;};if(shthf>0){shthf=0};cgjhgcjmcvjmn.dti7dtitditd=shthf;dwz_vhilhvlhvlv(cgjhgcjmcvjmn.Obj,'left',shthf+ghilhglhglg);break;};if(!dwz_StopRun){setTimeout("dwz_Move('"+dtitd7itdidt+"',"+zdrgdzg+")",30);};};function dwz_CreateImage(){dwz_MaxImage=-1;cgjhgcjmgcj=new Object();var arg=dwz_CreateImage.arguments;cgjhgcjmgcj.isMac=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);cgjhgcjmgcj.imageTag=dwz_xfjfxcjfxjfx(arg[0]);cgjhgcjmgcj.transTime=arg[1]/1000;cgjhgcjmgcj.imagePath=new Array();cgjhgcjmgcj.imageFilter=new Array();cgjhgcjmgcj.imageWidth=new Array();cgjhgcjmgcj.imageHeight=new Array();cgjhgcjmgcj.imageTrans=new Array();cgjhgcjmgcj.imageAlt=new Array();cgjhgcjmgcj.imageLink=new Array();cgjhgcjmgcj.imageTarget=new Array();cgjhgcjmgcj.hasText=new Array();for(var dtidt77ididti=2;dtidt77ididti<arg.length;dtidt77ididti+=8){dwz_MaxImage+=1;cgjhgcjmgcj.imagePath[dwz_MaxImage]=arg[dtidt77ididti];cgjhgcjmgcj.imageFilter[dwz_MaxImage]=arg[dtidt77ididti+1];cgjhgcjmgcj.imageWidth[dwz_MaxImage]=arg[dtidt77ididti+2];cgjhgcjmgcj.imageHeight[dwz_MaxImage]=arg[dtidt77ididti+3];cgjhgcjmgcj.imageAlt[dwz_MaxImage]=arg[dtidt77ididti+4];cgjhgcjmgcj.imageLink[dwz_MaxImage]=arg[dtidt77ididti+5];if(arg[dtidt77ididti+6]!=""){cgjhgcjmgcj.imageTarget[dwz_MaxImage]=arg[dtidt77ididti+6];}else{cgjhgcjmgcj.imageTarget[dwz_MaxImage]="_self";}cgjhgcjmgcj.hasText[dwz_MaxImage]=arg[dtidt77ididti+7];}dwz_OpenImg(arg[0],'0');};function dwz_OpenImg(){var arg=dwz_OpenImg.arguments;var ghilhglgjilg;ghilhglgjilg=dwz_xfjfxcjfxjfx(arg[0]);var dwz_ActualImage=arg[1];if(cgjhgcjmgcj){if((cgjhgcjmgcj.imageFilter[dwz_ActualImage]!="-1")&&(!cgjhgcjmgcj.isMac)&&(cgjhgcjmgcj.imageTag.filters)){if(cgjhgcjmgcj.imageTag.filters[0]&&cgjhgcjmgcj.imageTag.filters[0].status==2){cgjhgcjmgcj.imageTag.filters[0].Stop();}if(cgjhgcjmgcj.imageFilter[dwz_ActualImage]=="0"){ghilghl="blendTrans(Duration="+cgjhgcjmgcj.transTime+")";}else{ghilghl="revealTrans(Duration="+cgjhgcjmgcj.transTime+",Transition="+(cgjhgcjmgcj.imageFilter[dwz_ActualImage]-1)+")";};cgjhgcjmgcj.imageTag.style.filter=ghilghl;cgjhgcjmgcj.imageTag.onfilterchange=dwz_sdhfhfxhxfxfh;cgjhgcjmgcj.imageTag.filters[0].Apply();gyikik=true;}cgjhgcjmgcj.imageTag.src=cgjhgcjmgcj.imagePath[dwz_ActualImage];if(cgjhgcjmgcj.imageWidth[dwz_ActualImage]!=""){cgjhgcjmgcj.imageTag.width=parseInt(cgjhgcjmgcj.imageWidth[dwz_ActualImage]);};if(cgjhgcjmgcj.imageHeight[dwz_ActualImage]!=""){cgjhgcjmgcj.imageTag.height=parseInt(cgjhgcjmgcj.imageHeight[dwz_ActualImage]);};if(cgjhgcjmgcj.imageAlt[dwz_ActualImage]!=""){cgjhgcjmgcj.imageTag.alt=cgjhgcjmgcj.imageAlt[dwz_ActualImage];cgjhgcjmgcj.imageTag.title=cgjhgcjmgcj.imageAlt[dwz_ActualImage];}else{cgjhgcjmgcj.imageTag.alt="";cgjhgcjmgcj.imageTag.title="";};cgjhgcjmgcj.imageTag.link=cgjhgcjmgcj.imageLink[dwz_ActualImage];if(cgjhgcjmgcj.imageLink[dwz_ActualImage]==""){cgjhgcjmgcj.imageTag.style.cursor="";}else{cgjhgcjmgcj.imageTag.style.cursor="hand";};cgjhgcjmgcj.imageTag.target=cgjhgcjmgcj.imageTarget[dwz_ActualImage];if(cgjhgcjmgcj.hasText[dwz_ActualImage]=="-1"){dwz_xfjyfxxj(dwz_ActualImage,"visible");}else{dwz_xfjyfxxj("-99","visible");}if(cgjhgcjmgcj.imageTag.filters&&cgjhgcjmgcj.imageTag.filters[0]&&gyikik){cgjhgcjmgcj.imageTag.filters[0].Play();};};};var dwz_ActualImage=-1;var dwz_MaxImage=-1;var xfjyfxjfxj="";var dwz_StopRun=false;var ghilggh="";var dgjyggcj=true;var xfjyfxj=true;var xfhjfxh,dti7tdiditd,cgjhgcjmcvjmn,dwz_StopRun,cgjhgcjmgcj,dwz_MaxImage;function dwz_setFoto(){dwz_vhlihvlvl();var arg=dwz_setFoto.arguments;var ghilhglgjilg;ghilhglgjilg=dwz_xfjfxcjfxjfx(arg[0]);if(ghilhglgjilg){ghilhglgjilg.isMac=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);ghilhglgjilg.transTime=arg[1]/1000;ghilhglgjilg.pauseTime=arg[2]/1000;ghilhglgjilg.autoPlay=arg[3];ghilhglgjilg.showType=arg[4];ghilhglgjilg.imagePath=new Array();ghilhglgjilg.imageFilter=new Array();ghilhglgjilg.imageWidth=new Array();ghilhglgjilg.imageHeight=new Array();ghilhglgjilg.imageTrans=new Array();ghilhglgjilg.imageAlt=new Array();ghilhglgjilg.imageLink=new Array();ghilhglgjilg.imageTarget=new Array();ghilhglgjilg.hasText=new Array();for(var dtidt77ididti=5;dtidt77ididti<arg.length;dtidt77ididti+=8){dwz_MaxImage+=1;ghilhglgjilg.imagePath[dwz_MaxImage]=arg[dtidt77ididti];ghilhglgjilg.imageFilter[dwz_MaxImage]=arg[dtidt77ididti+1];ghilhglgjilg.imageWidth[dwz_MaxImage]=arg[dtidt77ididti+2];ghilhglgjilg.imageHeight[dwz_MaxImage]=arg[dtidt77ididti+3];ghilhglgjilg.imageAlt[dwz_MaxImage]=arg[dtidt77ididti+4];ghilhglgjilg.imageLink[dwz_MaxImage]=arg[dtidt77ididti+5];if(arg[dtidt77ididti+6]!=""){ghilhglgjilg.imageTarget[dwz_MaxImage]=arg[dtidt77ididti+6];}else{ghilhglgjilg.imageTarget[dwz_MaxImage]="_self";}ghilhglgjilg.hasText[dwz_MaxImage]=arg[dtidt77ididti+7];};};if(ghilhglgjilg.autoPlay=="1"){if(dgjyggcj){var dti7dtiditdi=0;dgjyggcj=false;}else{var dti7dtiditdi=(ghilhglgjilg.pauseTime+ghilhglgjilg.transTime)*1000;};ghilhglgjilg.timer=setTimeout("dwz_MoveFoto('"+arg[0]+"','+1')",dti7dtiditdi);};};function dwz_StartSlide(){var arg=arguments;var ghilhglgjilg;ghilhglgjilg=dwz_xfjfxcjfxjfx(arg[0]);if((dwz_ActualImage>dwz_MaxImage)&&(ghilhglgjilg.showType=="1")){dwz_ActualImage=-1;dwz_MoveFoto(arg[0],"+1");}else{if(ghilhglgjilg.autoPlay=="0"){clearTimeout(ghilhglgjilg.timer);if((ghilhglgjilg.showType=="0")&&(dwz_ActualImage>=dwz_MaxImage)){dwz_ActualImage=-1;};ghilhglgjilg.autoPlay="1";dwz_MoveFoto(arg[0],"+1");};};};function dwz_MoveSlide(){var arg=arguments;var ghilhglgjilg;ghilhglgjilg=dwz_xfjfxcjfxjfx(arg[0]);clearTimeout(ghilhglgjilg.timer);ghilhglgjilg.autoPlay="0";eval("dwz_MoveFoto('"+arg[0]+"','"+arg[1]+"')",100);};function dwz_MoveFoto(){if(dwz_MaxImage==-1){return};var arg=arguments;var ghilhglgjilg;ghilhglgjilg=dwz_xfjfxcjfxjfx(arg[0]);if(dwz_StopRun){ghilhglgjilg.autoPlay="0";clearTimeout(ghilhglgjilg.timer);dwz_StopRun=false;return;};if(ghilggh=="P"){dwz_ActualImage=-1;ghilggh="";};if(ghilggh=="U"){dwz_ActualImage=dwz_MaxImage-1;ghilggh="";};eval("dwz_ActualImage=dwz_ActualImage"+arg[1]);if(ghilhglgjilg.showType=="1"&&dwz_ActualImage>dwz_MaxImage){clearTimeout(ghilhglgjilg.timer);return;};if(dwz_ActualImage<0){dwz_ActualImage=dwz_MaxImage};if(dwz_ActualImage>dwz_MaxImage){dwz_ActualImage=0};var gyikik=false;if(ghilhglgjilg){if((ghilhglgjilg.imageFilter[dwz_ActualImage]!="-1")&&(!ghilhglgjilg.isMac)&&(ghilhglgjilg.filters)){if(ghilhglgjilg.filters[0]&&ghilhglgjilg.filters[0].status==2){ghilhglgjilg.filters[0].Stop();}if(ghilhglgjilg.imageFilter[dwz_ActualImage]=="0"){ghilghl="blendTrans(Duration="+ghilhglgjilg.transTime+")";}else{ghilghl="revealTrans(Duration="+ghilhglgjilg.transTime+",Transition="+(ghilhglgjilg.imageFilter[dwz_ActualImage]-1)+")";};ghilhglgjilg.style.filter=ghilghl;ghilhglgjilg.onfilterchange=dwz_sdhfhfxhxfxfh;ghilhglgjilg.filters[0].Apply();gyikik=true;};ghilhglgjilg.src=ghilhglgjilg.imagePath[dwz_ActualImage];if(ghilhglgjilg.imageWidth[dwz_ActualImage]!=""){ghilhglgjilg.width=parseInt(ghilhglgjilg.imageWidth[dwz_ActualImage]);};if(ghilhglgjilg.imageHeight[dwz_ActualImage]!=""){ghilhglgjilg.height=parseInt(ghilhglgjilg.imageHeight[dwz_ActualImage]);};if(ghilhglgjilg.imageAlt[dwz_ActualImage]!=""){ghilhglgjilg.alt=ghilhglgjilg.imageAlt[dwz_ActualImage];ghilhglgjilg.title=ghilhglgjilg.imageAlt[dwz_ActualImage];}else{ghilhglgjilg.alt="";ghilhglgjilg.title="";};ghilhglgjilg.link=ghilhglgjilg.imageLink[dwz_ActualImage];ghilhglgjilg.target=ghilhglgjilg.imageTarget[dwz_ActualImage];if(ghilhglgjilg.imageLink[dwz_ActualImage]==""){ghilhglgjilg.style.cursor="";}else{ghilhglgjilg.style.cursor="hand";};if((gyikik)&&(ghilhglgjilg.filters)){ghilhglgjilg.filters[0].Play();};if(ghilhglgjilg.hasText[dwz_ActualImage]=="-1"){dwz_xfjyfxxj(dwz_ActualImage,"visible");}else{dwz_xfjyfxxj("-99","visible");};if(ghilhglgjilg.autoPlay=="1"){var dti7dtiditdi=(ghilhglgjilg.pauseTime+ghilhglgjilg.transTime)*1000;ghilhglgjilg.timer=setTimeout("dwz_MoveFoto('"+arg[0]+"','+1')",dti7dtiditdi);};};};function dwz_xfjyfxxj(ghilhglghl,dt7itdididt){/* http://www.dwzone.it - Copyright © 2004 - Inc. All rights reserved */for(y=0;y<=dwz_MaxImage;y++){if(dwz_xfjfxcjfxjfx("dwz_LayerText_"+y)){dwz_vhilhvlhvlv(dwz_xfjfxcjfxjfx("dwz_LayerText_"+y),'visibility',"hidden");};};if(dwz_xfjfxcjfxjfx("dwz_LayerText_"+ghilhglghl)){dwz_vhilhvlhvlv(dwz_xfjfxcjfxjfx("dwz_LayerText_"+ghilhglghl),"position","absolute");dwz_vhilhvlhvlv(dwz_xfjfxcjfxjfx("dwz_LayerText_"+ghilhglghl),"left","0"+ghilhglhglg);dwz_vhilhvlhvlv(dwz_xfjfxcjfxjfx("dwz_LayerText_"+ghilhglghl),"top","0"+ghilhglhglg);dwz_vhilhvlhvlv(dwz_xfjfxcjfxjfx("dwz_LayerText_"+ghilhglghl),"visibility",dt7itdididt);};};function dwz_openLink(xfyjfxjhfx){/* http://www.dwzone.it - Copyright © 2004 - Inc. All rights reserved */if((xfyjfxjhfx.target)&&(xfyjfxjhfx.link!="")){switch(xfyjfxjhfx.target.toLowerCase()+""){case"_top":;top.location.href=xfyjfxjhfx.link;break;case"_parent":;parent.location.href=xfyjfxjhfx.link;break;case"_blank":;window.open(xfyjfxjhfx.link);break;case"_self":;location.href=xfyjfxjhfx.link;break;case"":;location.href=xfyjfxjhfx.link;break;case"eval js":;eval(xfyjfxjhfx.link);break;default:;window.open(xfyjfxjhfx.link,xfyjfxjhfx.target);break;};};};function dwz_vhilvhlvlhvl(obj,dt7ididti){return eval("obj.style."+dt7ididti);};function dwz_vhilhvlhvlv(obj,dt7ididti,dti7dtitdidtitdi){eval("obj.style."+dt7ididti+"='"+dti7dtitdidtitdi+"'");};function dwz_sdhfhfxhxfxfh(){this.style.filter="";};function dwz_preloadImages(){var zsrgdzh=document;if(zsrgdzh.images){if(!zsrgdzh.MM_p)zsrgdzh.MM_p=new Array();var ghilhglghl,xfdhfthxf=zsrgdzh.MM_p.length,cvjfjj=dwz_preloadImages.arguments;for(ghilhglghl=0;ghilhglghl<cvjfjj.length;ghilhglghl++){if(cvjfjj[ghilhglghl].indexOf("#")!=0){zsrgdzh.MM_p[xfdhfthxf]=new Image;zsrgdzh.MM_p[xfdhfthxf++].src=cvjfjj[ghilhglghl];}}}};function dwz_swapImgRestore(){var ghilhglghl,dtidt77ididti,cvjfjj=document.MM_sr;for(ghilhglghl=0;cvjfjj&&ghilhglghl<cvjfjj.length&&(dtidt77ididti=cvjfjj[ghilhglghl])&&dtidt77ididti.oSrc;ghilhglghl++)dtidt77ididti.src=dtidt77ididti.oSrc;};function dwz_swapImage(){var ghilhglghl,xfdhfthxf=0,dtidt77ididti,cvjfjj=dwz_swapImage.arguments;document.MM_sr=new Array;for(ghilhglghl=0;ghilhglghl<(cvjfjj.length-2);ghilhglghl+=3){if((dtidt77ididti=dwz_xfjfxcjfxjfx(cvjfjj[ghilhglghl]))!=null){document.MM_sr[xfdhfthxf++]=dtidt77ididti;if(!dtidt77ididti.oSrc)dtidt77ididti.oSrc=dtidt77ididti.src;dtidt77ididti.src=cvjfjj[ghilhglghl+2];}}};function dwz_xfjfxcjfxjfx(dti7tditdi,zsrgdzh){var dt7ididti,ghilhglghl,dtidt77ididti;if(!zsrgdzh)zsrgdzh=document;if((dt7ididti=dti7tditdi.indexOf("?"))>0&&parent.frames.length){zsrgdzh=parent.frames[dti7tditdi.substring(dt7ididti+1)].document;dti7tditdi=dti7tditdi.substring(0,dt7ididti);};if(!(dtidt77ididti=zsrgdzh[dti7tditdi])&&zsrgdzh.all)dtidt77ididti=zsrgdzh.all[dti7tditdi];for(ghilhglghl=0;!dtidt77ididti&&ghilhglghl<zsrgdzh.forms.length;ghilhglghl++){dtidt77ididti=zsrgdzh.forms[ghilhglghl][dti7tditdi];};for(ghilhglghl=0;!dtidt77ididti&&zsrgdzh.layers&&ghilhglghl<zsrgdzh.layers.length;ghilhglghl++){dtidt77ididti=dwz_xfjfxcjfxjfx(dti7tditdi,zsrgdzh.layers[ghilhglghl].document);};if(!dtidt77ididti&&zsrgdzh.getElementById)dtidt77ididti=zsrgdzh.getElementById(dti7tditdi);return dtidt77ididti;};function dwz_Stop(){dwz_StopRun=true;};function dwz_vhlihvlvl(){ghilhglhglg="px";};function dwz_setSpeed(){var arg=dwz_setSpeed.arguments;var ghilhglgjilg;ghilhglgjilg=dwz_xfjfxcjfxjfx(arg[0]);ghilhglgjilg.pauseTime=arg[1]/1000;};function dwz_StopSlide(){dwz_StopRun=true;};function dwz_vhlihvlhvl(){if(cgjhgcjmcvjmn.Obj){var arg=dwz_vhlihvlhvl.arguments;if(arg[0]=="h"){dwz_vhilhvlhvlv(cgjhgcjmcvjmn.Obj,'width',arg[1]+ghilhglhglg);}else{dwz_vhilhvlhvlv(cgjhgcjmcvjmn.Obj,'height',arg[1]+ghilhglhglg);}}}


