//This function is needed to creates a pop-up window. 
//	When placing a pop-up window, write:
//		<a href="link" onClick="javascript:WinPopup('link'); return false;">
//	in it's place.
function WinPopup(URL) 
{
	    window.open(URL, "myWin", "status=no, menubar=no, directories=no, location=no, scrollbars=yes, width=600, height=600, left=20, top=20");
        window.event.cancelBubble = true;
        window.event.returnValue = false;
}

//This function is needed to have rotating images on the banner
//	PrintImage responds to the big image
//	PrintImage2 responds to the smaller image
//When placing the image somewhere write:
//	<script type="text/javascript" language="JavaScript">
//		function_name;
//	</script>

//*IMPORTANT* 
//	When adding more pictures, remember to put them in the correct file, and name them:
//	if big image="logo_" followed by a number, 
//	if smaller image="logo" followed by a number
//	Then change the NumberOfImagesToRotate to correspond to the new number you added. 
	
//NumberOfImagesToRotate = 5; //NumberOfImagesToRotate for Bigger Images
//FirstPart = '<img src="../image/index/logo_';
//LastPart = '.png" height="160" width="140">';
function printImage()
{
		NumberOfImagesToRotate = 9;  //NumberOfImagesToRotate for Larger Images
		FirstPart = '<img src="image/index/logo_';
		LastPart = '.png" height="160" width="140">';
		var r=Math.ceil(Math.random() * NumberOfImagesToRotate);
		return(document.write(FirstPart + r + LastPart));
}

function printImage2()
{
		NumberOfImagesToRotate2 = 9; //NumberOfImagesToRotate for Smaller Images
		FirstPart2 = '<img src="image/index2/logo';
		LastPart2 = '.png" height="110" width="95">';
		var r=Math.ceil(Math.random() * NumberOfImagesToRotate2);
		document.write(FirstPart2 + r + LastPart2);
}
