<!--
//function checkBrowser(){
	//alert("hello");
	//detectitng browser
	//DOM = (document.getElementById) ? true : false;
	//NS4 = (document.layers) ? true : false;
	//IE = (document.all) ? true : false;
	//IE4 = IE && !DOM;
	//NS = (navigator.appName=="Netscape") ? true : false;
	//NS6 = NS && DOM;
	//MAC = (navigator.appVersion.indexOf("Mac") != -1);
	// redirect users with older browsers
	//if(!DOM){
		//location.href="/upgrade.html";
	//}
//}

function rollOver(imageName,newImageName){
	document[imageName].src = "/images/"+newImageName;
}

function oWin(w,h,nam) {
	    specs="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistor=no,width=" + w + ",height=" + h;
        var imgWin = window.open(nam,"imgWindow",specs)
}
//this function creates a mailto: link to help prevent address mining
function MailTo(ename,edomain,esubject,clickable,classname,imgdetail,linktext) {
	thislink = "mailto:" + ename + "@" + edomain;
	esubject.length != 0 ? thislink += "?subject=" + esubject : thislink = thislink;
	if (linktext == ''){
		thistext = ename + "@" + edomain;
	} else {
		thistext = linktext;
	}
	if (clickable == 1) {
		if (imgdetail == ''){
			if (classname ==''){
				return thistext.link(thislink);
			} else {
				thisclasslink =  "<a href='" + thislink + "' class='" + classname + "'>" + thistext + "</a>"
				return thisclasslink;
			}
		} else {
			thisimglink = "<a href='" + thislink + "'><img " + imgdetail + "></a>";
			return thisimglink;
		}
	} else {
		return thistext;
	}
}
//this function jumps to another page
function jumpPage(newPageName){
	location.href=newPageName;
}
// -->
