$(document).ready(function(){ 
    /*$(".menuItem").hover(function() { $("#" + this.id + " > .submenu").show(); }, function() { $("#" + this.id + " > .submenu").hide(); }); */
    $("#menu ul li").mouseover(function()  {
		 $("#s_" + this.id).show(); 
	}); 
    $("#menu ul li").mouseout(function() { 
		$("#s_" + this.id).hide(); 
	}); 
	
	$("#bookmarkPage").click(function (){
			if (document.all) 
				window.external.AddFavorite(this.href, this.title);
			else 
				if (window.sidebar) {
					window.sidebar.addPanel(this.title, this.href, "test");
				}
			return false;
	});
	$("#emailReport").click(function (){
		var config= "toolbar=no,status=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height=460,width=640,top=290,left=360";
		tellaFriend = window.open($(this).attr('href'), "TellObj", config);
	    tellaFriend.opener = top;
		return false;
	});
	$("#recommendTool").click(function (){
		var config= "toolbar=no,status=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height=460,width=640,top=290,left=360";
		tellaFriend = window.open($(this).attr('href'), "TellObj", config);
	    tellaFriend.opener = top;
		return false;
	});
	$("#recommendArticle").click(function (){
		var config= "toolbar=no,status=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height=460,width=640,top=290,left=360";
		tellaFriend = window.open($(this).attr('href'), "TellObj", config);
	    tellaFriend.opener = top;
		return false;
	});
});

hs.graphicsDir = '/styles/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.registerOverlay({
     thumbnailId: null,
     overlayId: 'controlbar',
     position: 'bottom left',
     hideOnMouseOut: true,
     opacity: 1
});

	
