
function thisMovie(movieName) {
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  } else {
    return document[movieName]
  }
}

function CheckSection()
{
	//alert( 'oh ya' );
}

function SetMenu()
{
	//alert( 'setting the menu' );
}

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function GlossaryPopUp(img){
	var x = new String("../images/glossaryimages/"+img);
	pictureWindow = window.open( x,'glossaryImageBig','width=450,height=450,toolbar=no,scroll=no,scrollbars=no,resizable=yes');
	pictureWindow.focus();
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu")
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function SwitchHead (url) {
	parent.parent.topFrame.location.href='../header.php?t=' + url;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  myWindow = window.open(theURL,winName,features);
}


function openWin2 (htmName, winName,features) {
	myWindow = window.open (htmName, winName,features);
}

function showObj(obj) {
	if(document.getElementById){
		var el = document.getElementById(obj);
		el.style.display = "block";
	}
}

function hideObj(obj) {
	if(document.getElementById){
		var el = document.getElementById(obj);
		el.style.display = "none";
	}
}

function doLogin (myPage) {
	
	myWindow.close();
	location.href = myPage;
}