var openDivs= "none";
var browser = navigator.appName;
var newwin = null;
function getDivRefs(id) {
	var divhandle = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (divhandle) divhandle.css = (divhandle.style)? divhandle.style: divhandle;
	return divhandle;
}
function toggleDiv(divid){
var theDiv = getDivRefs(divid);
var thestate = theDiv.style.display;
//alert(theDiv.style.display);
	if(thestate == "block"){
		theDiv.style.display = "none";
	}else{
		
		theDiv.style.display = "block";
	}
		activeDiv = divid;
}

function toggleSubs(divid){
var theDiv = getDivRefs(divid);
var subdivs = theDiv.getElementsByTagName("div");
if(openDivs == divid){
	for(var i = 0, len = subdivs.length; i < len; i++){
		subdivs[i].style.display = "none";
	}
	openDivs = "none";
}else{
	for(var i = 0, len = subdivs.length; i < len; i++){
		if(subdivs[i].className == "subhead"){
			subdivs[i].style.display = "block";
		}else{
			subdivs[i].style.display = "none";
		}
	}
	openDivs = divid;
}
}

function genPopup(theURL)
{
var browser = navigator.appName;
if (browser == "Microsoft Internet Explorer")
{
sl = parent.window.screenLeft+20;
st = parent.window.screenTop-90;
var winWidth=parent.document.body.offsetWidth-450;
var winHeight=parent.document.body.offsetHeight;
var newwin
newwin=window.open(theURL,'new_window','scrollbars=yes, resizable=no, Left='+sl+',Top='+st+',height='+winHeight+',width='+winWidth);
newwin.focus();
}
if (browser == "Netscape")
{
sl = parent.window.screenX+30;
st = parent.window.screenY+30;
var winWidth=parent.innerWidth-450;
var winHeight=parent.innerHeight-15;
var newwin
newwin =window.open(theURL,'new_window','scrollbars=yes,resizable=no,height='+winHeight+',width='+winWidth);newwin.focus();
newwin.moveTo(sl,st);
   }
   
if (browser == "Opera")
{
sl = parent.window.screenX+30;
st = parent.window.screenY+30;
var winWidth=parent.innerWidth-450;
var winHeight=parent.innerHeight-15;
var newwin
newwin =window.open(theURL,'new_window','scrollbars=yes,resizable=no,height='+winHeight+',width='+winWidth);newwin.focus();
newwin.moveTo(sl,st);
   }   
   
}

var lw = 0;
var lh = 0;
var sw = 0;
var sh = 0;

if (screen.width==800 && screen.height==600)
{
     lw = 200;
     lh = 60;
     sw = 288;
     sh = 57;
}
else
{
     lw = 250;
     lh = 66;
     sw = 468;
     sh = 60;
}


