initHoverSubMenuPopup= function() {
  $(document).ready(function(){
		$("#nav-one li").hover(
			function(){ $("ul", this).fadeIn("slow"); }, 
			function() { } 
		);
  	if (document.all) {
			$("#nav-one li").hoverClass ("sfHover");
		}
  });  
	$.fn.hoverClass = function(c) {
		return this.each(function(){
			$(this).hover( 
				function() { $(this).addClass(c);  },
				function() { $(this).removeClass(c); }
			);
		});
	};	
}
//if (window.attachEvent) window.attachEvent("onload", sfHover);

runLogoEffect = function(){ 
		objLogo = document.getElementById("logo");
		$(objLogo).slideDown("slow");
}

initHoverImagePopup = function() {
	var sfEls = document.getElementById("gallery").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+="imgPopup";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("imgPopup\\b"), "");
			//alert("onmouseout: " + this.className);
		}
	}
};
//if (window.attachEvent) window.attachEvent("onload", sfHover2);

function showImage(name){
	document.getElementById("imageBox").src = "images/" + name;
}
