// JScript source code

var redFlagWin;
var ie = document.all;
var nn6 = document.getElementById &&! document.all;

function $(x){return document.getElementById(x);};


function trim(str) {
	a = str.replace(/^\s+/, '');
	return a.replace(/\s+$/, '');
}


function isNumeric(str) {
	return /^\d+$/.test(str) ? true : false;	
}

function isPhone(str) {
	return /\(?\d{2,3}\)?[-\s.]?\d{3}[-.]?\d*$/.test(str) ? true : false;
}


function toggle(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}

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

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}

if (document.all&&document.getElementById) {
cssdropdownRoot = document.getElementById("cssdropdown");
for (x=0; x<cssdropdownRoot.childNodes.length; x++) {
node = cssdropdownRoot.childNodes[x];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}

}
if (window.attachEvent) {
window.attachEvent("onload", startList) 
}
else {
window.onload=startList;
}







