// roll over function
function rollOver(imageName,newImageName){
	document[imageName].src = newImageName;
}

// 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 opens new window
function oWin(w,h,nam) {
	    specs="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + w + ",height=" + h;
        var imgWin = window.open(nam,"newWindow",specs);
		imgWin.onBlur = imgWin.focus();
}

// date object
var d = new Date();