var ie  = document.all;
	
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openPop(x) {
	var popupURL = x;
	var w=(screen.width-300)/2
	var h=(screen.height-350)/2
	variabels="width=300 ,height=350,left=" +w+ ",top=" +h+ ",screenX=" +w+ ",screenY=" +h+ ", location=0, menubar=0, status=no, toolbar=0, resizable=0, fullscreen=no, scrollbars=1"
	var pnpopup = window.open(x,"news",variabels);
	if( navigator.appName.substring(0,8) == "Netscape" ) 
	pnpopup.focus();
	pnpopup.location = popupURL;
}

function openPrint(x) {
	var popupURL = x;
	var w=(screen.width-500)/2
	var h=(screen.height-400)/2
	variabels="width=500 ,height=400,left=" +w+ ",top=" +h+ ",screenX=" +w+ ",screenY=" +h+ ", location=0, menubar=0, status=no, toolbar=0, resizable=0, fullscreen=no, scrollbars=1"
	var pnpopup = window.open(x,"printVer",variabels);
	if( navigator.appName.substring(0,8) == "Netscape" ) 
	pnpopup.focus();
	pnpopup.location = popupURL;
}

function openCal(x) {
	var popupURL = x;
	var w=(screen.width-772)/2
	var h=(screen.height-400)/2
	variabels="width=772 ,height=400,left=" +w+ ",top=" +h+ ",screenX=" +w+ ",screenY=" +h+ ", location=0, menubar=0, status=no, toolbar=0, resizable=0, fullscreen=no, scrollbars=1"
	var pnpopup = window.open(x,"cal",variabels);
	if( navigator.appName.substring(0,8) == "Netscape" ) 
	pnpopup.focus();
	pnpopup.location = popupURL;
}

function openKey(x) {
	var popupURL = x;
	var w=(screen.width-250)/2
	var h=(screen.height-250)/2
	variabels="width=250 ,height=250,left=" +w+ ",top=" +h+ ",screenX=" +w+ ",screenY=" +h+ ", location=0, menubar=0, status=no, toolbar=0, resizable=0, fullscreen=no, scrollbars=1"
	var pnpopup = window.open(x,"key",variabels);
	if( navigator.appName.substring(0,8) == "Netscape" ) 
	pnpopup.focus();
	pnpopup.location = popupURL;
}

function mainNav_over(obj){
	obj.style.backgroundColor="#C44211";
	obj.style.cursor="hand";
}

function mainNav_out(obj){
	obj.style.backgroundColor="#E15112";
}

function subNav_over(obj){
	obj.className="subNav_over";
	obj.style.cursor="hand";
}

function subNav_out(obj){
	obj.className="subNav";
}

function dir_over(obj){
	obj.style.backgroundColor="#8A8CB0";
	obj.style.color="white";
	obj.style.cursor="hand";	
}

function dir_out(obj,color){
	obj.style.backgroundColor=color;
	obj.style.color="#595B8E";
}

function input_focus(obj){
	obj.style.backgroundColor="#F2E2C9";
}

function input_blur(obj){
	obj.style.backgroundColor="white";
}

function button_over(obj){
	obj.style.backgroundColor="#6B140E";
	obj.style.cursor="hand";
}

function button_out(obj){
	obj.style.backgroundColor="#E15112";
}

/* hides <select> and <applet> objects (for IE only) */
function hideElement( elmID, overDiv ) {
	if(ie) {
		for(i = 0; i < document.all.tags( elmID ).length; i++) {
			obj = document.all.tags( elmID )[i];
			if(!obj || !obj.offsetParent) continue;

			// Find the element's offsetTop and offsetLeft relative to the BODY tag.
			objLeft   = obj.offsetLeft;
			objTop    = obj.offsetTop;
			objParent = obj.offsetParent;

			while(objParent.tagName.toUpperCase() != 'BODY') {
				objLeft  += objParent.offsetLeft;
				objTop   += objParent.offsetTop;
				objParent = objParent.offsetParent;
			}

			objHeight = obj.offsetHeight;
			objWidth  = obj.offsetWidth;

			if((overDiv.offsetLeft + overDiv.offsetWidth) <= objLeft);
			else if((overDiv.offsetTop + overDiv.offsetHeight) <= objTop);
			/* CHANGE by Charlie Roche for nested TDs*/
			else if(overDiv.offsetTop >= (objTop + objHeight + obj.height));
			/* END CHANGE */
			else if(overDiv.offsetLeft >= (objLeft + objWidth));
			else {
				obj.style.visibility = 'hidden';
			}
		}
	}
}

/*
* unhides <select> and <applet> objects (for IE only)
*/
function showElement(elmID) {
	if(ie) {
		for(i = 0; i < document.all.tags( elmID ).length; i++) {
			obj = document.all.tags(elmID)[i];
			if(!obj || !obj.offsetParent) continue;
			obj.style.visibility = '';
		}
	}
}
