//<script>
var browser = document.all?"IE":(document.layers?"NS":(document.getElementById?"NS6":"IE"));//detect browser else try IE

// Open a new page function, called from Javascript menus
function Go(idx)
{
	location.href = "main.asp?page=" + mA[idx][0];
}

// For backward compatibility with older sites
function GetPage(page, parent, window, target)
{
	location.href = "main.asp?page=" + page;
}

// Standard function to open pages in a new window
function OpenWindow(URL, name, width, height) {
	window.open(URL,name,"scrollbars=yes,width=" + width + ",height=" + height);
}

function doLoad() {
	if (template == 3) mnuBarTop = 85;
	if (browser == "NS") {
		mnuBarLeft = 176;
		if (document.sidemenu.clip.bottom > 350) {document.SElogo.top = document.sidemenu.clip.bottom + 175; document.height = document.sidemenu.clip.bottom + 300;} else {document.SElogo.top = 500; if (document.height < 630) document.height = 630;}  
		if (template == 1) doFootbg();
		else if(template == 3) doFootbg3();

	} else if (browser == "NS6"){

	} else {
		if (sidemenu.scrollHeight > 350) SElogo.style.top = sidemenu.scrollHeight + 175; else SElogo.style.top = 500;
		if (template == 1) doFootbg();
		else if (template == 3) doFootbg3();
		else if (template == 4){
			search1.style.top = 110; 
			searchform.terms.style.width=115;
			mnuBarLeft = 172;
		} else if (template == 5) mnuBarLeft = 172;
		
	}
 }

function doResize() {
	if (browser == "NS") {
		location.reload();
	} else if (browser == "NS6"){

	} else {
		if (template == 1) doFootbg();
		else if (template == 3) doFootbg3();
	}
}

function doFootbg() {
	if (browser == "NS") {
		if (window.innerHeight > document.height)
			document.footbg.clip.bottom = window.innerHeight;
		else
			document.footbg.clip.bottom = document.height;
	} else if (browser == "NS6"){

	} else {
		var h = (maincontent.scrollHeight > sidemenu.scrollHeight? maincontent.scrollHeight + 130: sidemenu.scrollHeight + 300);
		var dh = document.body.clientHeight
		if (dh > h)
			footbg.style.height = dh;
		else
			footbg.style.height = h;
	}
}

function doFootbg3(){
	if (browser == "NS") {
		
	} else if (browser == "NS6"){

	} else {
		searchform.terms.style.backgroundColor = "#FDD6CE";
		searchform.srchbutton.style.backgroundColor = "#BC9493";    
	}
}