function detectOS()
{
	var sUserAgent = navigator.userAgent;
	var isWin = (navigator.platform == "Win32") || (navigator.platform == "Windows");
	var isMac = (navigator.platform == "Mac68K") || (navigator.platform == "MacPPC") || (navigator.platform == "Macintosh");
	if(isMac) return "Mac";
	var isUnix = (navigator.platform == "X11") && !isWin && !isMac;
	if(isUnix) return "Unix";
	var isLinux = (String(navigator.platform).indexOf("Linux") > -1);
	if(isLinux) return "Linux";
	if(isWin) return "Win";
}
function AutoScroll(obj){
        $(obj).find("ul:first").animate({
                marginTop:"-24px"
        },500,function(){
                $(this).css({marginTop:"0"}).find("li:lt(1)").appendTo(this);
        });
}
function AutoHeight(obj){
	return $(window).height();
}

$(document).ready(function(){
	//detectOS
	if(detectOS() == "Win") $("#menu li a").addClass("win");

	//logo_effect
	$(".logo").hover(function(){$(this).animate({opacity: '0.7'},'50');},function(){$(this).animate({opacity: '1'}, '50');});

	//Autoscroll
	setInterval('AutoScroll(".news")',3000);
	
	
	$("#Wrapper .inner").css("height",AutoHeight()-126);
	$(".page #Wrapper #WrapperRight .content").css("height",AutoHeight()-316);
	//alert($(window).height()); //浏览器时下窗口可视区域高度
	//alert($(document).height()); //浏览器时下窗口文档的高度
	//alert($(document.body).height());//浏览器时下窗口文档body的高度
});
