IE = navigator.appName=="Microsoft Internet Explorer";
NS = navigator.appName=="Netscape";
bVer = parseInt(navigator.appVersion);

var newWin=null;

//this changes a picture to another picture when moused over
function change_pic(img_name,img_src) {
	document[img_name].src=img_src;
}

function popup2(loc, name, width, height) {
	var _params;
   
   //alert(screen.width);
   //alert(screen.height-10);
   width = screen.width-10;
   height = screen.height-180;
	if (IE) _params = "width=" + width + ",height=" + height + ",resizable=yes,status=yes,toolbar=yes,scrollbars=yes";
	else if (NS) _params = "width=" + width + ",height=" + height + ",resizable=yes,status=yes,toolbar=yes,scrollbars=yes";
	
	// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
	if (bVer >= 4) {
		 _left = ( (screen.width-width) >>1 );
		 _top = ( (screen.height-height) >>1 );
	} else {
		 _left = ( (800-width) >>1 );
		 _top = ( (600-height) >>1 );
	}

	if (IE) _params += ",top=" + 0 + ",left=" + 0;
	else if (NS) _params += ",screenX=" + 0 + ",screenY=" + 0;
	
	
	newWin = window.open(loc, name, _params);
	if ( newWin!=null && !(IE && bVer<5) )
		newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}

function init() {
		document.getElementById('L1').style.display = 'none';
		document.getElementById('L2').style.display = 'none';
		document.getElementById('L3').style.display = 'none';
		document.getElementById('L4').style.display = 'none';
		document.getElementById('L5').style.display = 'none';
	}
	//hides a section
	function hideQ(name){
		if(document.getElementById(name) != null){
			document.getElementById(name).style.display = 'none';
		}
	}
	//displays a section
	function showQ(name){
		if(document.getElementById(name) != null){
			document.getElementById(name).style.display = 'block';
		}
	}