// JavaScript Document
//CS1.1

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function loadImage(newsID) {
	for (var j = 0; j < 4; j++) //26
	{
		var reduce = document.getElementById("container"+j);
		reduce.style.display="none";   
	}
	var newsFrame = document.getElementById(newsID);
	newsFrame.style.display="inline";	

}

function display()
{ 
	var mylocation = window.location.href;
	var myvalue = mylocation.substring(mylocation.length-1,mylocation.length);
	if (myvalue == "#")
	{
		myvalue = mylocation.substring(mylocation.length-2,mylocation.length-1);
	}
	if (myvalue >= 0 && myvalue <= 3) //that's an L as in "...html" 25
	{
		myvalue="container" + myvalue
		loadImage(myvalue);
	}
	else
	{
		for (var j = 0; j < 4; j++) //26
		{
			var reduce = document.getElementById("container"+j);
			reduce.style.display="block";   
		}	
	}
		
}