function Index_Initialization(){}function Index_CheckBrowserAndAlert(){if($.browser.msie&&$.browser.version<8){var n="<b>"+Resources.ResLan_WeRecommendThat+"<\/b><br />"+Resources.ResLan_RemindYouThat+'<a href="http://www.google.com/chrome/"><img src="/Content/images/chrome-32.png">Chrome<\/a>、<a href="http://moztw.org/"><img src="/Content/images/firefox.ico">Firefox<\/a>、<a href="http://www.microsoft.com/taiwan/windows/internet-explorer/worldwide-sites.aspx"><img src="/Content/images/ie_symbol_clr_56x56.png">IE10<\/a>';$('<div class="warningBrowser"><\/div>').html(n).activebar({icon:"/Content/images/activebar-information.png",button:"/Content/images/activebar-closebtn.png",highlight:"#FFB0AF"});$(".warningBrowser img").css({width:"16px",height:"16px","margin-right":"4px"});$(".warningBrowser a").attr("target","_blank")}}function Index_MaintenanceNotice(){window.myAction=this;var n=window.open("/Content/html/announce-20140831.html","","width=580px,Height=702px,scrollbars=no,center=yes,help=no,status=no,resizable=no,edge=raised,modal=yes,location=no")}function Index_Tabclick(n){var t=$("#indexCarousel li[key="+$(n).attr("key")+"]"),i=$(n).attr("key");return currentIdx=t.index(),t.addClass("on").siblings(".on").removeClass("on"),$(i).stop(!1,!0).fadeIn().siblings().hide(),!1}function Index_Tabmouseover(){clearTimeout(timer)}function Index_Tabmouseout(){timer=setTimeout(Index_AutoShow,speed)}function Index_AutoShow(){clearTimeout(timer);imgIdx=currentIdx<$("ul#indexCarousel li").length-1?currentIdx+1:0;$("ul#indexCarousel li").eq(imgIdx).find("a").click();timer=setTimeout(Index_AutoShow,speed)}function Index_第三方帳密登入或註冊(n,t,i){_Layout_BlockUICustomSetting(function(){$("#第三方Div").empty();$.ajax({type:"GET",cache:!1,async:!1,url:"/Member/第三方帳密登入或註冊",data:{"動作":n,"第三方帳號":t,"第三方哪種登入":i},contentType:"application/x-www-form-urlencoded; charset=UTF-8",success:function(n){$("#第三方Div").html(n);$.unblockUI()},error:function(){alert(jqXHR.responseText);$.unblockUI()}})})}function BannerGraph_Initialization(){}function BannerGraph_Tabclick(n){var t=$("#bg_ul li[key="+$(n).attr("key")+"]"),i=$(n).attr("key");return bg_CurrentIdx=t.index(),t.addClass("activehere").siblings(".activehere").removeClass("activehere"),$(i).stop(!1,!0).fadeIn().siblings().hide(),!1}function BannerGraph_Tabmouseover(){clearTimeout(bg_Timer)}function BannerGraph_Tabmouseout(){bg_Timer=setTimeout(BannerGraph_AutoShow,bg_Speed)}function BannerGraph_AutoShow(){clearTimeout(bg_Timer);bg_ImgIdx=bg_CurrentIdx<$("ul#bg_ul li").length-1?bg_CurrentIdx+1:0;$("ul#bg_ul li").eq(bg_ImgIdx).find("a").click();bg_Timer=setTimeout(BannerGraph_AutoShow,bg_Speed)}(function(n){function t(){var t=n("<div><\/div>").attr("id","activebar-container");return t.css({display:"none",position:"fixed",zIndex:"9999",top:"0px",left:"0px",cursor:"pointer"}),n(window).bind("resize",function(){t.width(n(this).width())}),n(window).trigger("resize"),n.browser.msie&&(n.browser.version.substring(0,1)=="5"||n.browser.version.substring(0,1)=="6")&&(t.css("position","absolute"),n(window).scroll(function(){t.stop(!0,!0);n.fn.activebar.state==3?t.css("top",n(window).scrollTop()+"px"):t.css("top",n(window).scrollTop()-t.height()+"px")})),t.append(n("<div><\/div>").attr("class","icon").css({float:"left",width:"16px",height:"16px",margin:"6px 4px 4px 4px"})),t.append(n("<div><\/div>").attr("class","close").css({float:"right",margin:"6px 4px 4px 4px",width:"16px",height:"16px"}).click(function(t){n.fn.activebar.hide();t.stopPropagation()})),t.append(n("<div><\/div>").attr("class","content").css({margin:"8px 28px 4px 28px"})),n("body").prepend(t),t}function i(t,i){t.css({background:i.background,borderBottom:"1px solid "+i.border});t.unbind("mouseenter mouseleave");t.hover(function(){n(this).css("backgroundColor",i.highlight)},function(){n(this).css("backgroundColor",i.background)});n(".icon",t).css("background","transparent url( '"+i.icon+"' ) top left no-repeat");n(".close",t).css("background","transparent url( '"+i.button+"' ) top left no-repeat");n(".content",t).css({color:i.fontColor,fontFamily:i.font,fontSize:i.fontSize})}n.fn.activebar=function(r){var r=n.fn.extend({},n.fn.activebar.defaults,r);n.fn.activebar.container==null&&(n.fn.activebar.container=t(r));i(n.fn.activebar.container,r);n.fn.activebar.hide();n(".content",n.fn.activebar.container).empty();n(this).each(function(){n(".content",n.fn.activebar.container).append(this)});n.fn.activebar.container.unbind("click");r.url!=null&&n.fn.activebar.container.click(function(){window.location.href=r.url});n.fn.activebar.container.css("top","-"+n.fn.activebar.container.height()+"px");n.fn.activebar.show()};n.fn.activebar.defaults={background:"InfoBackground",border:"#c8c8c8",highlight:"Highlight",font:"Bitstream Vera Sans,verdana,sans-serif",fontColor:"InfoText",fontSize:"12px",icon:"images/activebar-information.png",button:"images/activebar-closebtn.png",url:null};n.fn.activebar.state=0;n.fn.activebar.container=null;n.fn.activebar.show=function(){if(!(n.fn.activebar.state>1)){n.fn.activebar.state=2;n.fn.activebar.container.css("display","block");var t=n.fn.activebar.container.height();n.fn.activebar.container.animate({top:"+="+t+"px"},t*20,"linear",function(){n.fn.activebar.state=3})}};n.fn.activebar.hide=function(){if(!(n.fn.activebar.state<2)){n.fn.activebar.state=1;var t=n.fn.activebar.container.height();n.fn.activebar.container.animate({top:"-="+t+"px"},t*20,"linear",function(){n.fn.activebar.container.css("display","none");n.fn.activebar.visible=!1})}}})(jQuery)