	function ShowImage(photoID,urlStr,width,height)
	{
		var newWin;
		width+=45;
		height+=95;
		newWin = window.open("/PhotoAlbum.asp?id="+photoID+"&url="+urlStr,"photos","width="+width+",height="+height+",status=no,toolbar=no,menubar=no,location=no,titlebar=no,resizable=no");	
		newWin.resizeTo(width,height);
		newWin.moveTo(300,80);
		newWin.focus();		
	}
	
	function changeAction(theForm, actionVal, modeVal){
		theForm.action = actionVal;
		theForm.mode.value = modeVal;
	}
	
	function launchWin(url,sizeStr){
		var newWin
		newWin = window.open(url,null,sizeStr+",status=no,toolbar=no,menubar=no,location=no,titlebar=no,resizable=no");	
		newWin.focus();
	}
	
	var NewsTimer;
	var NewsCounter;
	var CurrentDiv;
	CurrentDiv=0;
	
	function SlideShow()
	{
		if(document.getElementById('News1'))
		{
			HideAll();
			CurrentDiv++;
			if(CurrentDiv>NewsCounter)
			{
				CurrentDiv=1;
			}
			document.getElementById('News' + CurrentDiv).style.display=""
			NewsTimer = setTimeout("SlideShow()",1200)	
		}	
	}
	
	
	function Initialize()
	{
		if(document.getElementById('News1'))
		{
			HideAll();
			CurrentDiv=1;
			document.getElementById('News' + CurrentDiv).style.display=""
			if(NewsCounter>1)
			{
				NewsTimer = setTimeout("SlideShow()",1200);
			}
		}	
	}
	
	function HideAll()
	{
		if(document.getElementById('News1'))
		{
			for(var i=1;i<=NewsCounter;i++)
			{
				document.getElementById('News'+i).style.display="none";
			}		
		}	
	
	}