$(document).ready(function () {

	$('#navigation ul > li > a').hover(function () {
		//$(this).next().css({'display':'block'});
		$(this).next().show('normal',function () {
			$('#navigation ul > li > ul').hover(function () {
				//$(this).css({'display':'block'});
				$(this).stop();
			},function () {
				//$(this).css({'display':'none'});
				$(this).hide('normal');
			})
		});
	},function () {
		//$(this).next().css({'display':'none'});
		$(this).next().hide('normal');
	})



	if (window.location.href.toString().indexOf('default')<0 == window.location.href.toString().indexOf('Default')<0 == window.location.href.toString().indexOf('')<0)	{
		var objHeight=83;
		var initObjHeight=($(window).height()-objHeight);
		var topHtml='';
		topHtml='<div id="topBtn" style="position:absolute; right:-25px; top:'+initObjHeight+'px;"><a href="#"><img src="/images/top_button.gif" /></a></div>';
		
		$('#wrap').append(topHtml);

		$(window).scroll(function () {
			 if (document.documentElement && document.documentElement.scrollTop) {   
				 var step=document.documentElement.scrollTop;
			 } else if (document.body) {   
				 var step=document.body.scrollTop;
			 }   
			
			$('#topBtn').css({'top':(initObjHeight+step).toString()+'px'});
		})
	}
})