/*
son of suckerfish menu script from:
http://www.htmldog.com/articles/suckerfish/dropdowns/
 */
 
 sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			this.style.zIndex=200; //this line added to force flyout to be above relatively positioned stuff in IE
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



var winpopup= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  winpopup=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){winpopup.window.focus();}
}

function openWindow_center(theURL,winName,features, w, h) 
{
 
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	features = features + 'height='+h+',width='+w+',top='+wint+',left='+winl 
	var newWindow = window.open(theURL, winName, features)
 
}
