close
$("#ygmanav li:eq(2)").removeClass("ygmabg").addClass("last-child");
};
var trigger = "";
$("body").click(
function(){
/* alert('body'); */
if(trigger != 'header'){
$("li.last-child").children("#ygmasubnav").removeClass("menuover").addClass("menuout");
$("#ygmausernameblk").children("#ygmauseroptions").removeClass("menuover").addClass("menuout");
}
trigger = '';
});
$("li.last-child").each(function(){
$(this).click(
function(){
trigger = 'header';
var s1 = (document.body.scrollWidth-950)/2+192;
$(this).children("#ygmasubnav").removeClass("menuout").addClass("menuover").css("left",s1);
$("#ygmausernameblk").children("#ygmauseroptions").removeClass("menuover").addClass("menuout");
});
});
$(".yhomelink").click(
function(){
if(!this.isIE&&navigator.userAgent.match(/firefox/gi)){
var s3 = (document.body.scrollWidth-950)/2+330;
$("div.ygmashpd").toggle().css("left",s3);
}
if(!this.isOpera&&document.all&&navigator.userAgent.match(/msie/gi)){
this.style.behavior='url(#default#homepage)';this.sethomePage('http://tw.yahoo.com/');
}
});
});