var popupWin


function openBrochure(sSource){
var myRoot
	myRoot=parent.frames("contents").document._Constants[0].value
	showPopup(myRoot + "Templates/Brochure.asp?S=" +sSource,"Brochure",600,600,100,0,'no')
}

function getHMenu(p){
	var objM
	var num
	var pos1
	var pos2
	var sMain
	var sTitle
	var sLink
	var sHM
	var sText
	sText=""
	d=parent.frames("contents").document
	nums=d.all.tags("HTMLCONSTANT").length-1
	for (var i = 0; i <= nums; i++) {
		if(d._Constants[i].id==p){
			sHM=d._Constants[i].value
			pos2=sHM.indexOf("@")
			sTitle=sHM.substring(0,pos2)
			sLink=sHM.substring(pos2+1,sHM.length)
			sText=sText + "<A class='Sub' href='" + sLink + "'>" + sTitle + "</A>&nbsp&nbsp&nbsp"
		}
	}
	if (sText!=""){
		parent.frames("main").document.all.tags("Div")[0].all.tags("Div")[0].innerHTML=sText
	}

}
function showMenu(sSub){
	vElement=document.all.tags("Div")
	nums=vElement.length-1
	for (var i = 0; i <= nums; i++) {
		try{
			if(document.all.tags("Div")[i].name==sSub +"2"){
					document.all.tags("Div")[i].className='vis';
			}
			else{
				if(document.all.tags("Div")[i].name.indexOf(2)>0){
					document.all.tags("Div")[i].className='hid';
				}
			}
		}
		catch(e){}
	}
}

function setTitle(sT){
var d
d=	parent.frames("main").document
d.title=sT
}

function checkBrowser(){
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
//if NS 4+
if (browser_type=="Netscape"&&browser_version>=4){
return false
}
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4){
return true
}
//Default goto page (NOT NS 4+ and NOT IE 4+)
else{
return false
}

}

function showPopup(wUrl,wName,w,h,l,t,scr){
settings='width=' + w +',height=' + h +',top=' + t + ',left=' + l +',scrollbars=' + scr +',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
popupWin=window.open(wUrl,wName,settings);

}

function closeWin(){
window.close();

}

