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);



//-- -------------------------------------------
//-- FUNCTION TO CLEAR THE SEARCH BOX TEXT
//-- -------------------------------------------
clearField = function(formName,fieldName,fieldValue) {
	var Field = eval("document." + formName+ "." + fieldName)
	if (Field.value	== fieldValue) {
		Field.value = '';
	}
}



//-- -------------------------------------------
//-- FUNCTION TO RESET THE SEARCH BOX TEXT
//-- -------------------------------------------
resetField = function(formName,fieldName,fieldValue) {
	var Field = eval("document." + formName+ "." + fieldName)
	if (Field.value	== '') {
		Field.value = fieldValue;
	}
}

//-- -------------------------------------
//-- BV CHANNEL POP UP SCRIPT
//-- -------------------------------------
function do_nothing() {
}

function focusit() {
        //alert('focus to popup');
	if (wibble) {
	 wibble.focus();
        }
	return;
}

function setTimer() {
	var timeout2 = setTimeout('focusit()',100);
	return;
}

function popup(file) {
  window.name = "document1";

//alert("about to open");

//if (!wibble || wibble.closed ) {
  //alert("opening new popup");
  wibble = window.open(file,'document2','width=640,height=480,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
  setTimer();
// } else{
//  //alert("shifting focus to existing popup");
//  wibble.location=file;
//  setTimer();
// }
}

var wibble = null;

<!-- //

-->

