
// begin - commenthead javascript

commentpopUpWindow = '';
function popUpcomment(URL) {
	
    //If it is already open
    if (!commentpopUpWindow.closed && commentpopUpWindow.location)
    {
		// set popup to current url
        commentpopUpWindow.location.href = URL;
    }
    else 
	{
// alert ("before URL=" + URL);
		commentpopUpWindow=window.open(URL,'gop_comment','toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,directories=no,resizable=yes,width=500,height=780,left=312,top=180');
		
		if (!commentpopUpWindow.opener) commentpopUpWindow.opener = self;
    }
	
	//If my main window has focus - set it to the popup
    if (window.focus) {commentpopUpWindow.focus();}
	
}

// end - comment head javascript

// begin - emailhead javascript

function popUp(URL) {

day = new Date();
id = day.getTime();
// alert ("before URL=" + URL);
eval("page" + id + " = window.open(URL,  '" + id + "', 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,directories=no,resizable=yes,width=500,height=780,left=312,top=180');");

}

// end - emailhead javascript

// begin - referto javascript (also emailer in community)

function popUpCommunity(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes,width=560,height=500,left=312,top=180');");
}

// end - referto javascript (also emailer in community)

// begin IE Hack / hover function for flyout menus
/*
function suckerfish(type, tag, parentId) {
	if (window.attachEvent) {
		window.attachEvent("onload", function() {
			var sfEls = (parentId==null)?document.getElementsByTagName(tag):document.getElementById(parentId).getElementsByTagName(tag);
			type(sfEls);
		});
	}
}

sfHover = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
suckerfish(sfHover, "LI", "nav");


sfFocus = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onfocus=function() {
//			this.className+=" sffocus";
		}
		sfEls[i].onblur=function() {
//			this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
		}
	}
}
suckerfish(sfFocus, "INPUT");
suckerfish(sfFocus, "TEXTAREA");
suckerfish(sfFocus, "SELECT");
*/

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// end IE Hack / hover function for flyout menus


