/* =dropdowns/hover for ie */
navHover = function() {
    var lis = document.getElementById("navigationContainer").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

function DoWaterMarkOnFocus(txt, text) {
    if (txt.value == text) {
        txt.value = "";
    }
}

function DoWaterMarkOnBlur(txt, text) {
    if (txt.value == "") {
        txt.value = text;
    }
}

function mailPage() {
    mail_str = "mailto:?subject=Check out " + document.title;
    mail_str += "&body=I thought you might be interested in: " + document.title + ".%0D%0A";
    mail_str += "You can view it at, " + location.href;
    location.href = mail_str;
}


function windowSpawn(windowToOpenURL, iWidth, iHeight, ScrollBars) {
    var sScrollBars;
    timeStamp = new Date();
    WinName = "ModalWindow" + timeStamp.getHours() + timeStamp.getMinutes() + timeStamp.getMilliseconds();
    if (ScrollBars = '1') {
        sScrollBars = "scrollbars=1";
    } else {
        sScrollBars = "scrollbars=0";
    }
    window.open(windowToOpenURL, WinName, 'toolbar=no,location=no,menubar=no,status=no,' + sScrollBars + ',resizable=no,height=' + iHeight + ',width=' + iWidth);
}
