$j.easing['jswing']=$j.easing['swing'];$j.extend($j.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return $j.easing[$j.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-$j.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return $j.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return $j.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});(function($){if(!document.defaultView||!document.defaultView.getComputedStyle){var oldCurCSS=jQuery.curCSS;jQuery.curCSS=function(elem,name,force){if(name!=='backgroundPosition'||!elem.currentStyle||elem.currentStyle[name]){return oldCurCSS.apply(this,arguments)}var style=elem.style;if(!force&&style&&style[name]){return style[name]}return oldCurCSS(elem,'backgroundPositionX',force)+' '+oldCurCSS(elem,'backgroundPositionY',force)}}})(jQuery);(function($){function toArray(strg){strg=strg.replace(/left|top/g,'0px');strg=strg.replace(/right|bottom/g,'100%');strg=strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var res=strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]]}$.fx.step.backgroundPosition=function(fx){if(!fx.bgPosReady){var start=$.curCSS(fx.elem,'backgroundPosition');if(!start){start='0px 0px'}start=toArray(start);fx.start=[start[0],start[2]];var end=toArray(fx.options.curAnim.backgroundPosition);fx.end=[end[0],end[2]];fx.unit=[end[1],end[3]];fx.bgPosReady=true}var nowPosX=[];nowPosX[0]=((fx.end[0]-fx.start[0])*fx.pos)+fx.start[0]+fx.unit[0];nowPosX[1]=((fx.end[1]-fx.start[1])*fx.pos)+fx.start[1]+fx.unit[1];fx.elem.style.backgroundPosition=nowPosX[0]+' '+nowPosX[1]}})(jQuery);$j.fn.delay=function(time,func){this.each(function(){setTimeout(func,time)});return this};$j(function(){$j("a").click(function(){$j(this).blur()});var clearOthers=function(){$j(".dropdownbox","#topContainer").css({display:'none'});$j(".tn_topbg","#topContainer").css({display:'none'});$j(".tn_dropdown","#topContainer").removeClass('tn_onact');$j(".tn_loginbox","#topContainer").removeClass('tn_onact');$j(".tx-newloginbox-pi1","#topContainer").css({display:'none'});$j(".tn_dropdown","#topContainer").children("a").removeClass('tn_onact');return false};$j(".tier1","#navContainer").hover(function(){clearOthers();$j("#mask").css({display:'block'}).stop().animate({opacity:'0.8'},{queue:false,duration:200});$j(this).next("div").stop().animate({opacity:'1',height:'268px'},{queue:false,duration:400,easing:"easeInOutCirc"});return false},function(){$j(this).next("div").stop().animate({opacity:'hide',height:'0'},{queue:false,duration:200,easing:"easeInOutCubic"});$j("#mask").stop().animate({opacity:'hide'},{queue:false,duration:200});return false});$j(".divmenu","#navContainer").hover(function(){$j(this).prev("a").addClass('selected');$j(this).stop().css({opacity:'1',height:'268px'});$j("#mask").stop().css({opacity:'0.8'});return false},function(){$j(this).prev("a").removeClass('selected');$j("#mask").stop().animate({opacity:'hide'},{queue:false,duration:200});$j(this).stop().animate({opacity:'hide'},{queue:false,duration:200});return false});var hn=$j(".tn_dropdown","#topContainer");hn.each(function(){var ddbox_width=$j(this).parent().width();$j(this).next("ul").addClass("dropdownbox").css({'width':ddbox_width-4});$j(this).next("div").addClass("dropdownbox").css({'width':ddbox_width-4})}).click(function(){if($j(this).next(".dropdownbox").is(":hidden")){clearOthers();$j(this).prev(".tn_topbg").css({display:'block'});$j(this).addClass('tn_onact');$j(this).next(".dropdownbox").slideDown('fast');return false}else{$j(this).prev(".tn_topbg").css({display:'none'});$j(this).removeClass('tn_onact');$j(this).next(".dropdownbox").slideUp('fast');return false}});$j("#logout_submit").click(function(){$j("#logout").submit();return false});var convert2ISOcountry=function(a){switch(a){case'en':{a='global';break};case'au':{a='at';break};case'ge':{a='ch';break};case'io':{a='in';break};case'sp':{a='sg';break};case'vi':{a='vn';break};case'ar':{a='ae';break};case'zh-cn':{a='cn';break}};return a};var l_item=$j(".tx-srlanguagemenu-pi1","#topContainer").children("div");l_item.each(function(){var l_flag=$j(this).children("a").children("img");var langtitle=l_flag.attr("alt");l_flag.remove();langtitle=convert2ISOcountry(langtitle);l_flag.attr("title",langtitle);$j(this).children("a").addClass(langtitle)});var df_searchtext=$j(".bg_search",".tx-macinasearchbox-pi1").attr("value");$j(".bg_search",".tx-macinasearchbox-pi1").focus(function(){if($j(this).attr("value")==df_searchtext){$j(this).attr("value","")};return false});$j(".bg_search",".tx-macinasearchbox-pi1").blur(function(){if($j(this).attr("value")==''){$j(this).attr("value",df_searchtext)};return false});$j(".btn_search",".tx-macinasearchbox-pi1").hover(function(){$j(this).css({cursor:'pointer'})},function(){$j(this).css({cursor:'default'})});var promobox=$j(".content","#promotion");var promomask=$j(".blackmask","#promotion");var icoball=$j(".ico_ball","#promotion");var close=$j(".closebtn","#promotion");var open=$j(".ico_sforum","#promotion");close.click(function(){if(close.is(":visible")){close.hide();promomask.hide();icoball.hide();promobox.stop().animate({width:'0',opacity:'0.8'},{queue:false,duration:100,easing:"easeInOutCirc"});open.css({'background-position':'-128px 0'})}return false});open.click(function(){if(close.is(":hidden")){promobox.stop().animate({width:'417px',opacity:'1'},{queue:false,duration:10,easing:"easeInOutCirc"});icoball.show();promomask.show();close.show();open.css({'background-position':'0 0'})}return false})});$j(window).bind("load",function(){var mheight=$j(document).height();$j("#mask").css({'height':mheight});$j("#notify").css({'height':mheight});return false});