jQuery(function(){
	var width = 0;
	if ($.browser.msie && $.browser.version < 7) {
		var scrollWidth = Math.max(
			document.documentElement.scrollWidth,
			document.body.scrollWidth
		);
		var offsetWidth = Math.max(
			document.documentElement.offsetWidth,
			document.body.offsetWidth
		);
		
		if (scrollWidth < offsetWidth) {
			width = $(window).width();
		} else {
			width = scrollWidth;
		}
	} else {
		width = $(document).width();
	}
	var height = 0;
	if ($.browser.msie && $.browser.version < 7) {
		var scrollHeight = Math.max(
			document.documentElement.scrollHeight,
			document.body.scrollHeight
		);
		var offsetHeight = Math.max(
			document.documentElement.offsetHeight,
			document.body.offsetHeight
		);
		
		if (scrollHeight < offsetHeight) {
			height = $(window).height();
		} else {
			height = scrollHeight;
		}
	} else {
		height = $(document).height();
	}
	//$('.adult_global').css('width',width);
	$('.adult_global').css('height',height);
	$('#adult_box').css('left',(width-$('#adult_box').outerWidth())/2);
	$('#adult_box').css('top',($(window).height()-$('#adult_box').outerHeight())/2);
	$('#adult_box').css('display','block');
	//$('#adult_box').css('right',(width-$('#adult_box').outerWidth())/2);
	
	$(".menuShow").mouseenter(function(){
		$(".smenu").css('display','none');
		$(this).find(".smenu").css('display','block');
		$("#topMenu").mouseleave( function() {
			$(".smenu").css('display','none');
		});
	});
});
$(document).ready(function(){ 
    $('.pngFix').pngFix(); 
}); 
