var basepath="";
function common_ready() {
	staticNav();
	$("ul.sf-menu").superfish({
		animation: {height:'show'},   // slide-down effect without fade-in
		delay:     1200               // 1.2 second delay on mouseout
	});
  

	$(window).resize(function () { //Each time the viewport is adjusted/resized, execute the function
		staticNav();
	});

	$('.hide').each(function(){
		$(this).show();
	})
	$('.tip').tooltip({showURL: false});
  var navpage=get_cookie('navpage');
	$("#"+navpage).css('color','#feff00');




}

function staticNav() {
		var sidenavHeight = $("#sidenav").height();
		var winHeight = $(window).height();
		var browserIE6 = (navigator.userAgent.indexOf("MSIE 6")>=0) ? true : false;

		if (browserIE6) {
			$("#sidenav").css({'position' : 'absolute'});
		} else {
			$("#sidenav").css({'position' : 'fixed'});
		}

		if (sidenavHeight > winHeight) {
			$("#sidenav").css({'position' : 'static'});
		}
	}



