$(function(){
	$(".alpha").width($(window).width());
	$(".alpha").height($("body").height());
	/*$(window).resize(function(){
		$(".alpha").width($(window).width());
		$(".alpha").height($("body").height());
	});*/
	/*** Application Dropdown Menu ***/
	$("#welcomeArea ul li.application").hover(
		function(){
			$(this).css("background","url(i/bg_application_hover.png) right 18px no-repeat");
			$(this).children("a").css("color","#a7ce38");
			$(this).children("ul").css("display","block");
		}
		,
		function(){
			$(this).css("background","url(i/bg_application.png) right 18px no-repeat");
			$(this).children("a").css("color","#fff");
			$(this).children("ul").css("display","none");
		}
	)
	$("#welcomeArea ul li ul").css("opacity","0.9");
	/*** Browser Compatibility ***/
	// IE 6
	if($.browser.msie && $.browser.version == 6){
		if($(".content .section .sectionInner .updateContent").height()<29){
			$(".content .section .sectionInner .updateContent").height(29);
		}
		if($(".content .section .sectionInner .friends li").height()<62){
			$(".content .section .sectionInner .friends li").height(62);
		}
		$(".updateBlock .photo").after("<div></div>");
		$(".save,.replyBtn").hover(
			function(){ $(this).css("text-decoration","underline"); }
			,
			function(){ $(this).css("text-decoration","none"); }
		)
	}
	// IE 7
	if($.browser.msie && $.browser.version == 7){
		$(".updateBlock .photo").after("<div></div>");
	}
	// FF 2
	var Sys = {};
	var ua = navigator.userAgent.toLowerCase();
	if(ua.match(/firefox\/([\d.]+)/)!=null && ua.match(/firefox\/([\d.]+)/)[1].split('.')[0]<3){
		$("#mainNav li a").css("display","-moz-inline-box");
        $("#mainNav li a span").css("display","-moz-inline-box");
		$(".content .middleColumn .personInfoIntroduce .personChooseFrame .text").css({display:"-moz-inline-box",paddingTop:"7px"});
		$(".content .middleColumn .personInfoIntroduce .personChooseFrame a").css("display","-moz-inline-box");
		$(".content .middleColumn .personInfoIntroduce .personChooseFrame a span").css("display","-moz-inline-box");
		$(".button2,.writeButton").css("display","-moz-inline-stack");
		$(".button2 span,.writeButton span").css("display","-moz-inline-stack");
		$(".content .section .sectionInner .emailList li a").css("display","-moz-inline-stack");
		$(".content .section .sectionInner .emailList li .blueButton2").css({position:"relative",top:"-5px"});
	}
	if(ua.match(/firefox\/([\d.]+)/)!=null && ua.match(/firefox\/([\d.]+)/)[1].split('.')[0]>2){
		$(".content .section .sectionInner .viewMessage .perMessage .save,.content .section .sectionInner .viewMessage .perMessage .replyBtn").css("padding-top","2px");
	}
	if(ua.match(/chrome\/([\d.]+)/)!=null){
		$(".content .section .sectionInner .viewMessage .perMessage .save,.content .section .sectionInner .viewMessage .perMessage .replyBtn").css("padding-top","1px");
	}
})
