
// browser detect
var ie4=(document.all)? true:false;	
var ns4=(document.layers)? true:false;

//keeps tracks of pages and links
function chg(){
	top.frames['menu_home'].pass('executive','s');
}

// image magic
function rolla(imgName,imgsrc){
	document.images[imgName].src=eval(imgName+imgsrc+".src");
}

// popup engine
function popUp(target) {
	
	myWidth = "642";
	myHeight = "260";
	
	myleft = (screen.width - myWidth) / 2;
	mytop = (screen.height - myHeight) / 2;
	
	theUrl = target + ".html";
	
	//alert(theUrl);
	
	window.open(theUrl, 'win', 'width='+myWidth+',height='+myHeight+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left='+myleft+',top='+mytop);
}

// path engine
var theLang = "";
	
function pathFinder() {
	
	myForm = document.forms[0];
	theLang = myForm.selLang.options[myForm.selLang.selectedIndex].value
	theYear = myForm.selYear.options[myForm.selYear.selectedIndex].value
	theDoc = myForm.selNum.options[myForm.selNum.selectedIndex].value
	
	theFullUrl = "../../" + theLang + "/documents/" + theYear + "/" + theDoc + ".html";
	//alert(theFullUrl);
	
	if(theLang == "") {
		return false;
	} else {
		document.location.href = theFullUrl;
		return true;
	}
}