var STP=new Array();var FTP=new Array();var Tstep=new Array();var TotalStep=new Array();var Trans=new Array();var opacityValues=new Array();var maxLinks=new Array();var startValue=1;var cdiv=new Array();var maxHeight=new Array();var maxWidth=new Array();var minHeight=0;isIE=false;navVer=navigator.appVersion;ver=parseFloat(navVer);IEPos=navVer.indexOf('MSIE');if(IEPos!=-1){isIE=true;ver=parseFloat(navVer.substring(IEPos+5,navVer.indexOf(';',IEPos)))}isIE5up=(isIE&&ver>=5);function jjump(location,numc){clearTimeout(Trans[location]);if(numc>1){cdiv[location]=numc-1}else{cdiv[location]=maxLinks[location]}for(i=1;i<=maxLinks[location];i++){document.getElementById('link'+location+'_'+i).style.zIndex=200-i;offTurn('bt'+location+'_'+i);if(i==numc){onTurn('bt'+location+'_'+i)}if(i>cdiv[location]){setTransparent(i,TotalStep[location],location)}else{setTransparent(i,0,location)}}opacityValues[location]=1;Trans[location]=setTimeout("nextImage("+cdiv[location]+","+location+")",Tstep[location])}function setTransparent(adiv,tVal,location){if(document.getElementById('link'+location+'_'+adiv)!=null){if(isIE5up){document.getElementById('link'+location+'_'+adiv).filters[0].opacity=tVal}else{document.getElementById('link'+location+'_'+adiv).style.MozOpacity=tVal/100;document.getElementById('link'+location+'_'+adiv).style.opacity=tVal/100;document.getElementById('link'+location+'_'+adiv).style.KhtmlOpacity=tVal/100}}}function setTransparent1(adiv,tVal,location){if(document.getElementById(adiv)!=null){if(isIE5up){document.getElementById(adiv).filters[0].opacity=tVal}else{document.getElementById(adiv).style.MozOpacity=tVal/100;document.getElementById(adiv).style.opacity=tVal/100;document.getElementById(adiv).style.KhtmlOpacity=tVal/100}}}function isPause(location){if(document.getElementById("img"+location+"_pause").src.indexOf("play.gif")>0){return true}else{return false}}function jpause(location){if(maxLinks[location]==null){return false}clearTimeout(Trans[location]);if(isPause(location)){document.getElementById("img"+location+"_pause").src="/images/core/pause.gif";Trans[location]=setTimeout("nextImage("+cdiv[location]+","+location+")",Tstep[location])}else{document.getElementById("img"+location+"_pause").src="/images/core/play.gif"}}function jcontinue(location){if(maxLinks[location]==null){return false}clearTimeout(Trans[location]);document.getElementById("img"+location+"_pause").src="/images/core/pause.gif";Trans[location]=setTimeout("nextImage("+cdiv[location]+","+location+")",Tstep[location])}function jback(location){clearTimeout(Trans[location]);document.getElementById('link'+location+'_'+cdiv[location]).style.zIndex=200-cdiv[location];setTransparent(cdiv[location],100,location);offTurn('bt'+location+'_'+cdiv[location]);if(cdiv[location]>1){cdiv[location]=cdiv[location]-1;document.getElementById('link'+location+'_'+cdiv[location]).style.zIndex=200-cdiv[location];setTransparent(cdiv[location],100,location);opacityValues[location]=TotalStep[location]}else{cdiv[location]=maxLinks[location]-1;opacityValues[location]=1}onTurn('bt'+location+'_'+cdiv[location]);Trans[location]=setTimeout("nextImage("+cdiv[location]+","+location+")",Tstep[location])}function jnext(location){clearTimeout(Trans[location]);setTransparent(cdiv[location],0,location);opacityValues[location]=1;Trans[location]=setTimeout("nextImage("+cdiv[location]+","+location+")",Tstep[location])}function nextImage(value,location){if(value==0){value=1}cdiv[location]=value;opacityValues[location]=opacityValues[location]-1;if(opacityValues[location]<=25){setTransparent(value,opacityValues[location]*4,location)}if(opacityValues[location]==0){document.getElementById('link'+location+'_'+value).style.zIndex=100-value;opacityValues[location]=TotalStep[location];offTurn('bt'+location+'_'+value);value=value+1;if(value>maxLinks[location]){value=1}onTurn('bt'+location+'_'+value);cdiv[location]=value;if(value==1){for(i=1;i<=maxLinks[location];i++){document.getElementById('link'+location+'_'+i).style.zIndex=200-i*4;setTransparent(i,100,location)}}if(value==maxLinks[location]){for(i=1;i<maxLinks[location];i++){document.getElementById('link'+location+'_'+i).style.zIndex=100-i*4}setTransparent(1,100,location)}}if(!isPause(location)){Trans[location]=setTimeout("nextImage("+value+","+location+")",Tstep[location])}}function startFad(location,STPvalue,FTPvalue){clearTimeout(Trans[location]);maxHeight[location]=0;STP[location]=STPvalue;FTP[location]=FTPvalue;Tstep[location]=FTP[location]/25;TotalStep[location]=(FTP[location]+STP[location])/Tstep[location];cdiv[location]=0;opacityValues[location]=TotalStep[location];maxLinks[location]=document.getElementById("maxval_"+location).value;for(i=1;i<=maxLinks[location];i++){if(document.getElementById('link'+location+'_'+i).offsetHeight>maxHeight[location]){maxHeight[location]=document.getElementById('link'+location+'_'+i).offsetHeight;maxWidth[location]=document.getElementById('link'+location+'_'+i).offsetWidth}}for(i=1;i<=maxLinks[location];i++){document.getElementById('link'+location+'_'+i).style.height="268px";document.getElementById('link'+location+'_'+i).style.overflow="hidden"}if(document.getElementById('num'+location+'_bar')!=null){document.getElementById('num'+location+'_bar').style.width="674px"}if(document.getElementById('num'+location+'_cover')!=null){document.getElementById('num'+location+'_cover').style.width="674px"}onTurn('bt'+location+'_1');setTransparent1('num'+location+'_cover',80,location);Trans[location]=setTimeout("nextImage("+startValue+","+location+")",Tstep[location])}function onTurn(id){document.getElementById(id).style.color="#ffffff"}function offTurn(id){document.getElementById(id).style.color="#cc3333"}