$(document).ready(function() {
		if (jQuery.browser.msie){
			$('#topmenu ul li').hover(function() {
			$("ul:first",this).show(268);
			}, function () {
			$("ul:first",this).hide(268);
			});
			
			
		}
	
		$('#topmenu ul:first > li > a').each(function () {
	$(this).append('<span class="hover">'+$(this).html()+'</span>');
   	var $span = $('> span.hover', this).css('opacity', 0);
		$(this).hover(function () {
		$span.stop().fadeTo(500, 1);
		}, function () {
		$span.stop().fadeTo(500, 0);
		});
	 });
});
var panelstate=1;
var htmlpromotext = "";
function closepanel(){
	$("#panel").hide("slow");
	$("#hideshowlink").html(htmlpromotext);
	panelstate=0;
}
$(document).ready(function(){
htmlpromotext = $("#toppanelbannertext").html();
//var t=setTimeout("closepanel()",7000);
$("#hideshowlink").click(function () {
	if (panelstate==0){
	$("#panel").show("slow");
	$("#hideshowlink").html("[X] Close");
	panelstate=1;
	}
	else {
	closepanel();
	}
});
/*$("#container").click(function() {
	if (panelstate==1){
	$("#panel").hide("slow");
	$("#hideshowlink").html(htmlpromotext);
	panelstate=0;
	}
});*/
});