/* header rollovers */

var imageBaseURL = "images/";
//var lastclicked;
if (document.images) {

	
	//navigation
	
	nav0_on = new Image();
	nav0_on.src = imageBaseURL + "nav0_on.gif";
	nav0_off = new Image();
	nav0_off.src = imageBaseURL + "nav0_off.gif";
	
	nav01_on = new Image();
	nav01_on.src = imageBaseURL + "nav01_on.gif";
	nav01_off = new Image();
	nav01_off.src = imageBaseURL + "nav01_off.gif";
	
	nav02_on = new Image();
	nav02_on.src = imageBaseURL + "nav02_on.gif";
	nav02_off = new Image();
	nav02_off.src = imageBaseURL + "nav02_off.gif";
	
	nav03_on = new Image();
	nav03_on.src = imageBaseURL + "nav03_on.gif";
	nav03_off = new Image();
	nav03_off.src = imageBaseURL + "nav03_off.gif";	
	
}

function rollOver(imgName) {
	document[imgName].src = eval(imgName + "_on.src");
}

function rollOff(imgName) {
	document[imgName].src = eval(imgName + "_off.src");
}

/* common functions */

function hideDiv(divid) {
 	getObj(divid).style.display = "none";
}

function showDiv(divid) {
 	getObj(divid).style.display = "block";
}

function rtSource(framepage){
getObj("iwindow_rt").src = "inc/" + framepage;
}

function hideMain() {
//getObj("iwindow_rt").src = "inc/inc_sh_start_rt.html";
getObj("iwindow").src = "inc/inc_sh_start.html";
showDiv('subnav01');
}

function hideMain2() {
getObj("iwindow_rt").src = "inc/inc_sh_start_rt.html";
getObj("iwindow").src = "inc/inc_sh_start.html";
showDiv('subnav01');
}

function hdrName(header) {
getObj("hdrdiv").innerHTML = header;	
}

function getObj(theId) {
	if (document.getElementById) {
		theObj = document.getElementById(theId); 
	} else if (document.all) { 
		theObj = document.all[theId];
	}
	return theObj;
}

//open window

function popup(url,w,h) {
	newWin = window.open(url, "News" ,"width=" + w + ",height=" + h + ",menubar=no,scrollbars=yes,resizable=yes,toolbar=no")
}
function popup2(url,winName,w,h) {
	newWin = window.open(url,winName,"width=" + w + ",height=" + h + ",menubar=no,scrollbars=no,resizable=no,toolbar=no")
}
// w=width, h=height, m=menubar, s=scrollable, r=resizeable, t=toolbar
function popup3(url,winName,w,h,m,s,r,t) {
	newWin = window.open(url,winName,"width=" + w + ",height=" + h + ",menubar=" + m + ",scrollbars=" + s + ",resizable=" + r + ",toolbar=" + t + "")
}

var newWinVert;
function popUpNews(url,w,h) {
    if(newWinVert == null || newWinVert.closed) {
        newWinVert = window.open (url, "News" ,"width=" + w + ",height=" + h + ",menubar=no,scrollbars=yes,resizable=yes,toolbar=no")
        window.newWinVert.focus();
    } else {
        newWinVert.close()
        newWinVert = window.open (url, "News" ,"width=" + w + ",height=" + h + ",menubar=no,scrollbars=yes,resizable=yes,toolbar=no")
        window.newWinVert.focus();
    }
}

//var newWinVert;
function popUpNewsVert(url) {
    if(newWinVert == null || newWinVert.closed) {
        newWinVert = window.open (url, "newWinVert", "toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=yes,resizable=yes,width=640,height=720")
        window.newWinVert.focus();
    } else {
        newWinVert.close()
        newWinVert = window.open (url, "newWinVert", "toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=yes,resizable=yes,width=640,height=720")
        window.newWinVert.focus();
    }
}

