
//Pictures to switch inbetween

var Rollpic1 = "./images/door15.jpg";
var Rollpic2 = "./images/door13.jpg";
var Rollpic3 = "./images/door14.jpg";
var Rollpic4 = "./images/numberone.jpg";





//Start at the what pic:
var PicNumber=4;
//Number of pics:
var NumberOfPictures=4;
//Time between pics switching in secs
var HowLongBetweenPic=2;




//SwitchPicFunction
function SwitchPic(counter){
	<!-- hide from other browsers	

	if(counter < HowLongBetweenPic){
	
		counter++;
		
		//DEBUG in the status bar at the bottom of the screen
		//window.status="Switch picture at 5 : "+counter+" PicNumber: "+PicNumber+" ";
		
		//Display pic in what <IMG> tag roll is what I called the image
		document.roll.src = eval("Rollpic" + PicNumber);
		
		if (PicNumber == 1)
		{
				//alert(PicNumber);
				document.roll.title = "Click here for ISO certification details"
				
		}
		else if (PicNumber == 2)
		{
			document.roll.title = "Click here for Governors Award details"
		}
		else if (PicNumber == 3)
		{
			document.roll.title = "Click here for Team Showcase details"
		}
		else if (PicNumber == 4)
		{
			document.roll.title = "Click here for  '#1 Government website in U.S.A. for the year 2007' details"
		}
		else
		{
			document.roll.title = ""
		}

		//function calls itself
		CallSwitchPic=window.setTimeout("SwitchPic("+counter+")",1500);		
		
		
		}
		
		else{
			//if its not the last picture goto the next picture
			if(PicNumber < NumberOfPictures){
				PicNumber++;
				SwitchPic(0);
			}
			//its the last picture go to the first one
			else{
				PicNumber=1;
				SwitchPic(0);
				
				}
	
		}

}
// Stop hiding from old browsers -->

//SwitchPic for index Function
function SwitchPicindex(counter){
	<!-- hide from other browsers	

	if(counter < HowLongBetweenPic){
	
		counter++;
		
		//DEBUG in the status bar at the bottom of the screen
		//window.status="Switch picture at 5 : "+counter+" PicNumber: "+PicNumber+" ";
		
		//Display pic in what <IMG> tag roll is what I called the image
		document.roll.src = eval("Rollpic" + PicNumber);
		//alert(document.roll.src);
		
		//function calls itself
		CallSwitchPic=window.setTimeout("SwitchPicindex("+counter+")",1500);
		document.form1.txtUserID.focus()
		
		
		
		}
		
		else{
			//if its not the last picture goto the next picture
			if(PicNumber < NumberOfPictures){
				PicNumber++;
				SwitchPicindex(0);
				
			}
			//its the last picture go to the first one
			else{
				PicNumber=1;
				SwitchPicindex(0);
				
				
				}
	
		}

}
// Stop hiding from old browsers -->




//SwitchPic for Registration Function
function SwitchPicReg(counter){
	<!-- hide from other browsers	

	if(counter < HowLongBetweenPic){
	
		counter++;
		
		//DEBUG in the status bar at the bottom of the screen
		//window.status="Switch picture at 5 : "+counter+" PicNumber: "+PicNumber+" ";
		
		//Display pic in what <IMG> tag roll is what I called the image
		document.roll.src = eval("Rollpic" + PicNumber);
		//alert(document.roll.src);
		
		//function calls itself
		CallSwitchPic=window.setTimeout("SwitchPicReg("+counter+")",1500);
		document.form1.first_name.focus();
		
		
		}
		
		else{
			//if its not the last picture goto the next picture
			if(PicNumber < NumberOfPictures){
				PicNumber++;
				SwitchPicReg(0);
			}
			//its the last picture go to the first one
			else{
				PicNumber=1;
				SwitchPicReg(0);
				
				}
	
		}

}
// Stop hiding from old browsers -->



//SwitchPic for Change Password Function
function SwitchPicChgPas(counter){
	<!-- hide from other browsers	

	if(counter < HowLongBetweenPic){
	
		counter++;
		
		//DEBUG in the status bar at the bottom of the screen
		//window.status="Switch picture at 5 : "+counter+" PicNumber: "+PicNumber+" ";
		
		//Display pic in what <IMG> tag roll is what I called the image
		document.roll.src = eval("Rollpic" + PicNumber);
		//alert(document.roll.src);
		
		//function calls itself
		CallSwitchPic=window.setTimeout("SwitchPicChgPas("+counter+")",1500);
		document.form1.txtUserID.focus();
		
		
		}
		
		else{
			//if its not the last picture goto the next picture
			if(PicNumber < NumberOfPictures){
				PicNumber++;
				SwitchPicChgPas(0);
			}
			//its the last picture go to the first one
			else{
				PicNumber=1;
				SwitchPicChgPas(0);
				
				}
	
		}

}
// Stop hiding from old browsers -->






//SwitchPic for Lost Password Function
function SwitchPicLotPas(counter){
	<!-- hide from other browsers	

	if(counter < HowLongBetweenPic){
	
		counter++;
		
		//DEBUG in the status bar at the bottom of the screen
		//window.status="Switch picture at 5 : "+counter+" PicNumber: "+PicNumber+" ";
		
		//Display pic in what <IMG> tag roll is what I called the image
		document.roll.src = eval("Rollpic" + PicNumber);
		//alert(document.roll.src);
		
		//function calls itself
		CallSwitchPic=window.setTimeout("SwitchPicLotPas("+counter+")",1500);
		document.form1.txtUserID.focus();
		
		
		}
		
		else{
			//if its not the last picture goto the next picture
			if(PicNumber < NumberOfPictures){
				PicNumber++;
				SwitchPicLotPas(0);
			}
			//its the last picture go to the first one
			else{
				PicNumber=1;
				SwitchPicLotPas(0);
				
				}
	
		}

}
// Stop hiding from old browsers -->




