/* the drop down menus */

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
            if (navigator.appName == 'Microsoft Internet Explorer'){
                 changeVisibility('select','iframe');
            }     
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
            if (navigator.appName == 'Microsoft Internet Explorer'){
                changeVisibility();
            }      
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function PopupWinSmall(theURL) { 
  popupWin = window.open(theURL,'info','top=20,left=20,scrollbars=yes,width=455,height=450,resizable=yes');
  popupWin.focus();
}

var cvItems = new Array;
function changeVisibility() {
	var action = (arguments.length > 0) ? false : true;
	if (cvItems.length==0) {
		var tmp;
		for (var i=0;i<arguments.length;i++) {
			tmp = document.getElementsByTagName(arguments[i]);
			for (var j=0;j<tmp.length;j++) 
				cvItems[cvItems.length] = tmp[j];
		}
	} 
	for (var i=0;i<cvItems.length;i++) 
		cvItems[i].style.visibility=(action)?'visible':'hidden';
}