sfHover = function() {
	var sfEls = document.getElementById("head").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

 var appearNow =function(theName,theHeight) {
	if (typeof theHeight == "undefined") {
	    theHeight = $(document).height;
	  }
		new Effect.Appear(theName,{duration:.5});
		document.getElementById('hideit').style.display='block';
		document.getElementById('hideit').style.height=theHeight+'px';
		new Effect.Opacity('hideit',{duration:.5, from:0.0, to:0.9});
	}
	function disappearNow(theName) {
		new Effect.Fade(theName,{duration:.5});
		new Effect.Opacity('hideit', {duration:.6, from:0.9, to:0.0});
		document.getElementById('hideit').style.display='none';
	}
	
	
	function showVideo(video,commonname,building_code){
		new Effect.Appear('video-wt',{duration:.5});
		new Ajax.Updater('video-wt', 'video.php?video='+video+'&commonname='+commonname+'&building_code='+building_code, {aynchronous:true,evalScripts:true});
		document.getElementById('hideit').style.display='block';
		document.getElementById('hideit').style.height='2000px';
		new Effect.Opacity('hideit',{duration:.5, from:0.0, to:0.9});
		//	new Effect.Appear('video-wt',{duration:.5});
			//document.getElementById('hideit').style.display='block';
			//new Effect.Opacity('hideit',{duration:.5, from:0.0, to:0.9});
		}
		
		
		
