﻿// JScript File

    // Cap lock check function
        function capLock(e){
            kc = e.keyCode?e.keyCode:e.which;
            sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
            if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
                alert('Caps Lock is on. Please do not fill out form in caps.');
        }
        
    // Number only entry
    function num(e){
        var k;
        document.all ? k = e.keyCode : k = e.which;
        return ((k > 47 && k < 58) || k == 46);
    }

    
    // Start Accordion Flex Menu
        // Define and declare variables 
        var ContentHeight = 400;
        var TimeToSlide = 250.0;
        var openAccordion = "";
        var url = document.URL.toUpperCase();
        var test = null;
        var useDefaultMenu = true;
        
        var flexMenuArray = new Array();
        flexMenuArray[0] = "parksdepartment.aspx";
        flexMenuArray[1] = "recreation.aspx";
        flexMenuArray[2] = "cityclerk.aspx";
        flexMenuArray[3] = "waterdepartment.aspx";
        flexMenuArray[4] = "utilitybilling.aspx";
        flexMenuArray[5] = "streetsdepartment.aspx";
        flexMenuArray[6] = "sanitation.aspx";
        flexMenuArray[7] = "snowpolicy";
        flexMenuArray[8] = "cityengineering";
        flexMenuArray[9] = "publicworks.aspx";
        flexMenuArray[10] = "buildingdepartment.aspx";
        flexMenuArray[11] = "developmentguidelines.aspx";
        flexMenuArray[12] = "Detectives.aspx";
        flexMenuArray[13] = "fraudprevention.aspx";
        flexMenuArray[14] = "identitytheft.aspx";
        flexMenuArray[15] = "DrugIdentification.aspx";
        flexMenuArray[16] = "preventtheft.aspx";
        flexMenuArray[17] = "DrugTaskForce.aspx";
        flexMenuArray[18] = "Patrol.aspx";
        flexMenuArray[19] = "Communications.aspx";
        flexMenuArray[20] = "SpecialResponseTeam.aspx";
        flexMenuArray[21] = "DareOfficer.aspx";
        flexMenuArray[22] = "drunkdriving.aspx";
        flexMenuArray[23] = "CrimeSolver.aspx";
        flexMenuArray[24] = "CrimeTip.aspx";
        flexMenuArray[25] = "PatrolRequest.aspx";
        flexMenuArray[26] = "K9Unit.aspx";
        flexMenuArray[27] = "AnimalControl.aspx";
        flexMenuArray[28] = "parkinformation.aspx";
        flexMenuArray[29] = "parkreservations.aspx";
        flexMenuArray[30] = "Evidence.aspx";
        flexMenuArray[31] = "LostProperty.aspx";
        flexMenuArray[32] = "LostPet.aspx";
        flexMenuArray[33] = "Records.aspx";
        flexMenuArray[34] = "PoliceLog.aspx";
        flexMenuArray[35] = "PressRelease.aspx";
        flexMenuArray[36] = "DaycareNotification.aspx";
        flexMenuArray[37] = "Daycare.aspx";
        flexMenuArray[38] = "webhelp.aspx";
        flexMenuArray[39] = "PoliceDepartment.aspx";
        flexMenuArray[40] = "MostWanted.aspx";
        flexMenuArray[41] = "MissionStatement.aspx";
        flexMenuArray[42] = "Training.aspx";
        flexMenuArray[43] = "CivilCriminal.aspx";
        flexMenuArray[44] = "CodeEnforcement.aspx";
        flexMenuArray[45] = "CodeViolation.aspx";
        flexMenuArray[46] = "HonorGuard.aspx";
        flexMenuArray[47] = "classregistration.aspx"
        
        var govMenuArray = new Array();
        govMenuArray[0] = "citycouncil.aspx";
        govMenuArray[1] = "landusecommission.aspx";
        govMenuArray[2] = "mayorsoffice.aspx";
        govMenuArray[3] = "proclamations.aspx";
        govMenuArray[4] = "councilminutes.aspx";
        
        var infoMenuArray = new Array();
        infoMenuArray[0] = "climate.aspx";
        infoMenuArray[1] = "schools.aspx";
        infoMenuArray[2] = "cityhistory.aspx";
        infoMenuArray[3] = "newsletter.aspx";
        infoMenuArray[4] = "demographics.aspx";
        
        var onlineMenuArray = new Array();
        onlineMenuArray[0] = "formlibrary.aspx";
        
        var busMenuArray = new Array();
        busMenuArray[0] = "cityplanning.aspx";
        
        
        function pageLoad(inBool)
       {
            // Define variables
            var thanks = inBool;
            if (thanks)
            {
                 if (document.all) 
                { 
                    document.getElementById("thanks").click(); 
                } 
                else 
                { 
                    var clickEvent = window.document.createEvent("MouseEvent"); 
                    clickEvent.initEvent("click", false, true); 
                    document.getElementById("thanks").dispatchEvent(clickEvent); 
                } 
                chooseAccordion();
            } else {
                chooseAccordion();
            }
       } 
        
        function chooseAccordion()
        {
            for(var idx = 0; idx < flexMenuArray.length; idx++)
            {
                test = url.match(flexMenuArray[idx].toUpperCase());
                if(test != null)
                {
                    runAccordion(3);
                    useDefaultMenu = false;
                }
            }
            
            for(var govIdx = 0; govIdx < govMenuArray.length; govIdx++)
            {
                test = url.match(govMenuArray[govIdx].toUpperCase());
                if(test != null)
                {
                    runAccordion(4);
                    useDefaultMenu = false;
                } 
            }
            
            for(var idx = 0; idx < infoMenuArray.length; idx++)
            {
                test = url.match(infoMenuArray[idx].toUpperCase());
                if(test != null)
                {
                    runAccordion(5);
                    useDefaultMenu = false;
                } 
            }
          
            for(var idx = 0; idx < busMenuArray.length; idx++)
            {
                test = url.match(busMenuArray[idx].toUpperCase());
                if(test != null)
                {
                    runAccordion(6);
                    useDefaultMenu = false;
                } 
            }
            
            for(var idx = 0; idx < onlineMenuArray.length; idx++)
            {
                test = url.match(onlineMenuArray[idx].toUpperCase());
                if(test != null)
                {
                    runAccordion(7);
                    useDefaultMenu = false;
                } 
            }
            
            if(useDefaultMenu == true)
            { 
                    runAccordion(1);
            }
        }
        
        function runAccordion(index)
        {
            var nID = "Accordion" + index + "Content";
            if(openAccordion == nID)
            { 
            nID = "";
            }
            setTimeout("animate(" + new Date().getTime() + "," + TimeToSlide + ",'" 
              + openAccordion + "','" + nID + "')", 33);
          
            openAccordion = nID;
        }
        
        function animate(lastTick, timeLeft, closingId, openingId)
        {  
          var curTick = new Date().getTime();
          var elapsedTicks = curTick - lastTick;
          
          var opening = (openingId == '') ? null : document.getElementById(openingId);
          var closing = (closingId == '') ? null : document.getElementById(closingId);
         
          if(timeLeft <= elapsedTicks)
          {
            
            if(opening != null)
            {
              if(opening.style.display != 'block')
              opening.style.display = 'block';
              opening.style.height = (ContentHeight + 'px');
            }
            
            if(closing != null)
            {
              closing.style.display = 'none';
              closing.style.height = '0px';
            }
            return;
          }
         
          timeLeft -= elapsedTicks;
          var newClosedHeight = Math.round((timeLeft/TimeToSlide) * ContentHeight);
            
          if(opening != null)
          {
            if(opening.style.display != 'block')
              opening.style.display = 'block';
            opening.style.height = (ContentHeight - newClosedHeight) + 'px';
          }
          
          if(closing != null)
            closing.style.height = newClosedHeight + 'px';

          setTimeout("animate(" + curTick + "," + timeLeft + ",'" 
              + closingId + "','" + openingId + "')", 33);
        }  
    // End Accordian Flex Menu 
   
    
    uagent = window.navigator.userAgent.toLowerCase();
        IEB=(uagent.indexOf('msie') != -1)?true:false;
        // Define and declare arrays
        var scompat = document.compatMode;
        var mainShowintcomplate=0;
        var mainShowimgarr=new Array();
        var mainShowaltarr=new Array();
        var mainShowlinkarr=new Array();
        var mainShowtargetarr=new Array();
        var mainShowtitarr=new Array();
        var mainShowdesarr=new Array();
        
        // Define blank banner
        mainShowimgarr[0]="";
        mainShowaltarr[0]="";
        mainShowlinkarr[0]="";
        mainShowtargetarr[0]="";
        mainShowtitarr[0]="";
        mainShowdesarr[0]="";
        
        // Define first banner
        mainShowimgarr[1]="images/Banners/roadClosed.gif";
        mainShowaltarr[1]="";
        mainShowlinkarr[1]="http://www.cityofchubbuck.us/streetprojects.aspx";
        mainShowtargetarr[1]="_self";
        mainShowtitarr[1]="SIPHON ROAD BETWEEN HAWTHORNE AND PHILBIN CLOSED TO THROUGH TRAFFIC";
        mainShowdesarr[1]="The City's Groundwater Protection Project has started and will continue through the summer. &nbsp;Expect traffic delays or road closure on sections of Siphon Road. &nbsp;More information will be posted soon." ;
        
        // Define second banner
        mainShowimgarr[2]="images/Banners/council.gif";
        mainShowaltarr[2]="";
        mainShowlinkarr[2]="http://www.cityofchubbuck.us/citycouncil.aspx";
        mainShowtargetarr[2]="_self";
        mainShowtitarr[2]="YOU ARE INVITED TO PARTICIPATE IN YOUR CITY COUNCIL MEETINGS";
        mainShowdesarr[2]="The Chubbuck City Council meets on the second and fourth Tuesday of each month at Chubbuck City Hall. &nbsp;We invite everyone to participate in your City government. &nbsp;Click here for schedule and agenda.";
        
        // Define third banner
        mainShowimgarr[3]="images/Banners/clock.gif";
        mainShowaltarr[3]="";
        mainShowlinkarr[3]="";
        mainShowtargetarr[3]="";
        mainShowtitarr[3]="DO NOT FORGET THAT DAYLIGHT SAVINGS TIME STARTS ON MARCH 14TH AT 2:00 AM";
        mainShowdesarr[3]="You will need to &quot;Spring&quot; your clocks forward one hour prior to going to bed this coming Saturday. &nbsp;The change allows us to use less energy in lighting our homes by having longer daylight hours.";
        
        // Define fourth banner
        mainShowimgarr[4]="images/Banners/voteBack.jpg";
        mainShowaltarr[4]="";
        mainShowlinkarr[4]="";
        mainShowtargetarr[4]="_self";
        mainShowtitarr[4]="CITY ELECTIONS TO BE HELD ON NOVEMBER 3RD";
        mainShowdesarr[4]="Monkeys see, monkey do";
        
        var gnrated='';
        var mainShowstepcount=20;
        var mainShowcurrstep=10;
        var mainShowtimeo=null;
        var mainShowhorvert=0;
        var mainShowllllll=new Array();
        var mainShowlllllll=0;
        var mainShowllllllll=0;
        var mainShowll=new Array();
        var mainShowlll=new Array();
        var mainShowllll=new Array();
        var mainShowstartposx=new Array();
        var mainShowlllll=new Array();
        var i=0;
        var mainShowlllllllll=0;
        var mainShowDescCalcLeftBir=0;
        var mainShowDescCalcLeft=0;
        var mainShowDescCalcWidth=0;
        var mainShowDescCalcHeight=0;
        var mainShowDescCalcIcWidth=0;
        var mainShowDescCalcIcHeight=0;
        var mainShowhpiece='';
        var mainShowds="";
        var mainShowIEDescOpacity=100;
        var mainShowFFOpacity=1.0;
        var mainShowDescFadeEffectTimer=null;
        var mainShowAutoPlayTimer=null;
        var mainShowAutoPlayCurrent=1;
        var mainShowicerdemi=0;
        
        function mainShowWriteDesc()
        {	
            if(mainShowlinkarr[i].length>3)
            {
                mainShowds=mainShowds+'<a href="'+mainShowlinkarr[i]+'" target="'+mainShowtargetarr[i]+'" style="text-decoration:none;">';
            }
            	
            mainShowds=mainShowds+'<div id="mainShowadesc'+i+'" style="text-align: justify;position:absolute;top:'+135+'px;left:0px;width:'+mainShowDescCalcWidth+'px;height:'+mainShowDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;filter:alpha(opacity=100);opacity:1.00;" onMouseOut="mainShowoutall()">';	
            mainShowds=mainShowds+'<div style="position:absolute;left:0px;top:0px;width:'+mainShowDescCalcWidth+'px;height:'+mainShowDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'003F31'+';opacity: '+0.80+';filter:alpha(opacity='+80+');" onMouseOut="mainShowoutall()"></div>';	
            mainShowds=mainShowds+'<div style="position:relative;left:0px;top:0px;width:'+mainShowDescCalcIcWidth+';height:'+mainShowDescCalcIcHeight+'px;text-align:'+'justify'+';overflow:hidden;padding:'+'2px 5px 4px 5'+'px;border-style:'+'solid'+';border-width:'+2+'px;border-color:#'+'000000'+';color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+10+';font-weight:'+'bold'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="mainShowoutall()">';	
            mainShowds=mainShowds+'<span style="color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+10+';font-weight:'+'bold'+';text-decoration:'+'none'+';" onMouseOut="mainShowoutall()">'+mainShowtitarr[i]+'</span>';	
            
            if(mainShowtitarr[i].length>0)
            {
                mainShowds=mainShowds+'<br />';
            }			
            
            mainShowds=mainShowds+''+mainShowdesarr[i];	mainShowds=mainShowds+'</div>';	mainShowds=mainShowds+'</div>';	
            
            if(mainShowlinkarr[i].length>3)
            {
                mainShowds=mainShowds+'</a>';
            }
        }
        
        function mainShowinit_doc(fstr,hormuvertmi)
        {	
            mainShowDescCalcLeftBir=5;		
            if((0==0)&&(mainShowhorvert==0))	
            {		
                mainShowDescCalcLeft=5+2;	
            }	else	{		
                mainShowDescCalcLeft=5;	
            }	
            
            if(0==0)	
            {		
                mainShowDescCalcWidth=680-5-5;	
            }	else	{		
                mainShowDescCalcWidth=680-5-5;	
            }	
            
            if((mainShowhorvert==1)&&(0==1))	
            {		
                mainShowDescCalcHeight=200-140-5;	
            }	else	{		
                mainShowDescCalcHeight=200-140-5;	
            }	
            
            if((IEB==true)&&(scompat == "BackCompat" ))	
            {		
                mainShowDescCalcIcWidth=mainShowDescCalcWidth;		
                mainShowDescCalcIcHeight=mainShowDescCalcHeight;	
            }	else	{		
                mainShowDescCalcIcWidth=mainShowDescCalcWidth-2*(2)-2*(3);		
                mainShowDescCalcIcHeight=mainShowDescCalcHeight-2*(2)-2*(3);	
            }	
            mainShowfolderset=fstr;	
            var tmpleftpad=0;	
            var tmptoppad=0;	
            mainShowhpiece=mainShowhpiece+'<div style="position:relative;width:'+680+'px;height:'+200+'px;border-style:solid;border-width:'+2+'px;border-color:#'+'003F31'+';">';	
            mainShowhpiece=mainShowhpiece+'<div style="position:relative;width:'+680+'px;height:'+200+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOver="mainShowoutall()" onMouseOut="mainShowmouse_divout()">';	
            
            if(0==1)	
            {		
                for(i=1;i<=3;i++) 		
                {			
                    mainShowWriteDesc();		
                }	
            }	
            
            for(i=1;i<=3;i++)	
            {		
                if(mainShowhorvert==0)		
                {			
                    if(i==1){tmpleftpad=0;
                } else {
                    tmpleftpad=2;
                }			
                tmptoppad=0;		
            }		else		{			
                tmpleftpad=0;			
            if(i==1)
            {
                tmptoppad=0;
            } else {
            tmptoppad=2;
            }		
            }		
            
            gnrated=gnrated+'<div id="mainShowpo'+i+'" style="position:absolute;left:0px;top:0px;" onMouseOver="mainShowmouse_over('+i+')" onMouseOut="mainShowoutall()"><div style="background-color:#FFFFFF;padding-left:'+tmpleftpad+'px;padding-top:'+tmptoppad+'px;"><a href="'+mainShowlinkarr[i]+'" target="'+mainShowtargetarr[i]+'"><img width="'+680+'" height="'+200+'" src="'+mainShowfolderset+mainShowimgarr[i]+'" style="border-style:solid;border-width:0px;" TITLE="'+mainShowaltarr[i]+'"></img></a>';		if(0==0)		{			mainShowds="";			mainShowWriteDesc();			gnrated=gnrated+mainShowds;		}		gnrated=gnrated+'</div></div>';	}	mainShowhpiece=mainShowhpiece+gnrated;	if(0==1)	{		mainShowhpiece=mainShowhpiece+mainShowds;	}	mainShowhpiece=mainShowhpiece+'</div>';	mainShowhpiece=mainShowhpiece+'</div>';	document.write(''+mainShowhpiece);	setTimeout("mainShowinit_position("+parseInt(hormuvertmi)+")",50);}function mainShowinit_position(hv){	mainShowhorvert=hv;	for(i=1;i<=3;i++)	{		mainShowll[i]=document.getElementById('mainShowpo'+i);		mainShowlll[i]=document.getElementById('mainShowadesc'+i);		if((mainShowll[i]==null)||(mainShowlll[i]==null))		{		    setTimeout("mainShowinit_position("+parseInt(hv)+")",200);		    return;		}	}		if(mainShowhorvert==0)	{		mainShowllllll=parseInt(     (680-((3-1)*2))     /(3));		mainShowlllllll=mainShowllllll+2;		mainShowllllllll=parseInt(((680-680)/(3-1)));	}	else	{		mainShowllllll=parseInt(     (280-((3-1)*2))     /(3));		mainShowlllllll=mainShowllllll+2;		mainShowllllllll=parseInt(((280-200)/(3-1)));	}	for(i=1;i<=3;i++)	{		mainShowll[i]=document.getElementById('mainShowpo'+i);		sx=(mainShowlllllll*(i-1))-2;		if(mainShowhorvert==0)		{			if(i==1)			{				mainShowll[i].style.left="0px";			}			else			{				mainShowll[i].style.left=""+sx+"px";			}		}		else		{			if(i==1)			{				mainShowll[i].style.top="0px";			}			else			{				mainShowll[i].style.top=""+sx+"px";			}		}		mainShowstartposx[i]=sx;		mainShowlllll[i]=mainShowstartposx[i];		if(i==1)		{			mainShowlll[i].style.left=""+mainShowDescCalcLeftBir+"px";		}		else		{			mainShowlll[i].style.left=""+mainShowDescCalcLeft+"px";		}			}	mainShowintcomplate=1;	if(1==1)	{		mainShowDoAutoPlay();	}}function mainShowDoAutoPlay(){	mainShowmouse_over(mainShowAutoPlayCurrent);	mainShowAutoPlayCurrent=mainShowAutoPlayCurrent+1;	if(mainShowAutoPlayCurrent>3)	{		mainShowAutoPlayCurrent=1;	}	mainShowAutoPlayTimer=setTimeout("mainShowDoAutoPlay()",8000);}function mainShowdo_FadeAnim(){	if(mainShowlllllllll<1)	{		return;	}	mainShowIEDescOpacity=mainShowIEDescOpacity+5;	mainShowFFOpacity=mainShowFFOpacity+0.05;	if(IEB==true)	{		if(mainShowIEDescOpacity>100)		{			mainShowIEDescOpacity=100;			return;		}	}	else	{		if(mainShowFFOpacity>1.00)		{			mainShowFFOpacity=1.00;			return;		}	}	if(IEB==true)	{		mainShowlll[mainShowlllllllll].filters.item(0).opacity=mainShowIEDescOpacity;	}	else	{		mainShowlll[mainShowlllllllll].style.opacity = mainShowFFOpacity;	}	mainShowDescFadeEffectTimer=setTimeout("mainShowdo_FadeAnim()",20);}function mainShowdo_anim(){	if(mainShowcurrstep<=0)	{		if(mainShowlllllllll>=1)		{			if(mainShowhorvert==0)			{				if(mainShowlllllllll==1)				{					mainShowlll[mainShowlllllllll].style.left=""+mainShowDescCalcLeftBir+"px";				}				else				{					mainShowlll[mainShowlllllllll].style.left=""+mainShowDescCalcLeft+"px";				}			}			else			{				if(0==0)				{					mainShowlll[mainShowlllllllll].style.left=""+(mainShowDescCalcLeft+parseInt(mainShowll[mainShowlllllllll].style.left))+"px";					var DesvertTop=0;					if((mainShowlllllllll>1) &&(mainShowlllllllll!=3)){DesvertTop=140+2;}else{DesvertTop=140;}					mainShowlll[mainShowlllllllll].style.top=""+(DesvertTop)+"px";				}				else				{					mainShowlll[mainShowlllllllll].style.left=""+(mainShowDescCalcLeft)+"px";					mainShowlll[mainShowlllllllll].style.top=""+140+"px";				}			}			if((mainShowtitarr[mainShowlllllllll].length>0)||(mainShowdesarr[mainShowlllllllll].length>0))			{				if(2==2)				{					mainShowIEDescOpacity=0;					mainShowFFOpacity=0.00;					mainShowdo_FadeAnim();					mainShowlll[mainShowlllllllll].style.visibility="visible";				}				else				{					mainShowlll[mainShowlllllllll].style.visibility="visible";				}			}			else			{				mainShowlll[mainShowlllllllll].style.visibility="hidden";			}		}		return;	}	for(i=2;i<=3;i++)	{		mainShowlllll[i] = parseInt(mainShowlllll[i])+parseInt((mainShowllll[i]-mainShowlllll[i])/mainShowcurrstep);		if(mainShowhorvert==0)		{			mainShowll[i].style.left=""+mainShowlllll[i]+"px";		}		else		{			mainShowll[i].style.top=""+mainShowlllll[i]+"px";		}	}	if((2==1)&&(mainShowlllllllll>=1))	{		var dtop=0;		if((mainShowtitarr[mainShowlllllllll].length>0)||(mainShowdesarr[mainShowlllllllll].length>0))		{    		mainShowlll[mainShowlllllllll].style.visibility="visible";        }        else        {            mainShowlll[mainShowlllllllll].style.visibility="hidden";        }		dtop= 140+        parseInt(mainShowDescCalcHeight-      ((mainShowDescCalcHeight/mainShowstepcount)*(mainShowstepcount-(mainShowcurrstep-1)))         );		mainShowlll[mainShowlllllllll].style.top=""+dtop+"px";	}	mainShowcurrstep--;	setTimeout("mainShowdo_anim()",20);}function mainShowreposition(g){	for(i=1;i<=3;i++)	{		if(i<=g)		{			if(i==1)			{				mainShowllll[i]=0;			}			else			{				mainShowllll[i]=parseInt(((i-1)*mainShowllllllll)-2);			}		}		else		{			oncekix=0;			for(j=1;j<(i-1);j++)			{				oncekix=oncekix+mainShowllllllll;			}			if(mainShowhorvert==0)			{				mainShowllll[i]=parseInt(((680)+(oncekix)));			}			else			{				mainShowllll[i]=parseInt(((200)+(oncekix)));			}		}			}	if((mainShowhorvert==0)&&(3==g))	{		var bul1=mainShowllll[3]+2+680;		var bul2=680-bul1;		mainShowllll[3]=mainShowllll[3]+bul2;	}	if((mainShowhorvert==1)&&(3==g))	{		var bul1=mainShowllll[3]+2+200;		var bul2=200-bul1;		mainShowllll[3]=mainShowllll[3]+bul2;	}	mainShowcurrstep=mainShowstepcount;	mainShowdo_anim();}function mainShowmouse_over(g){	if(mainShowintcomplate==0){return;}	if(g==mainShowlllllllll){return;}	mainShowlllllllll=g;	clearTimeout(mainShowtimeo);	if(1==1){if(mainShowicerdemi==1){clearTimeout(mainShowAutoPlayTimer);}}	for(i=1;i<=3;i++)	{		if(i!=g)		{			mainShowlll[i].style.visibility="hidden";			if(IEB==true)			{				mainShowlll[i].filters.item(0).opacity=100;			}			else			{				mainShowlll[i].style.opacity = 1.0;			}		}	}	mainShowreposition(g);}function mainShowoutall(){	mainShowicerdemi=1;	clearTimeout(mainShowAutoPlayTimer);	clearTimeout(mainShowtimeo);}function mainShowmouse_divout2(){	mainShowicerdemi=0;	clearTimeout(mainShowtimeo);	if(1==1)	{		clearTimeout(mainShowAutoPlayTimer);		mainShowAutoPlayCurrent=1;		mainShowDoAutoPlay();	}	else	{	for(i=1;i<=3;i++)	{		mainShowlll[i].style.visibility="hidden";	}	for(i=1;i<=3;i++)	{		sx=(mainShowlllllll*(i-1))-2;		if(i==1)		{			mainShowllll[i]=0;		}		else		{			mainShowllll[i]=sx;		}			}	mainShowlllllllll=-1;	mainShowcurrstep=mainShowstepcount;	mainShowdo_anim();	}}function mainShowmouse_divout(){	clearTimeout(mainShowtimeo);	mainShowtimeo=setTimeout("mainShowmouse_divout2()",300);}
    // End Main Page Slide Show