function displaySubMenu(n,t){var r,f,i,o,e,u;n!=""&&n!=null&&lastMenu!=n&&(lastMenu!=""&&lastMenu!=null&&hideMenu(lastMenu),t!=""&&acticeMenu!=null&&acticeMenu!=n&&hideMenu(t),o=$("#mainmenu"+n).offset().left,u=$("#submenucontainer").offset().left+25,i=u,e=i+$("#submenucontainer").width(),f=$("#mainmenu"+n).width(),r=$("#submenu"+n).width(),o+(f-r)/2>i&&(i=o+(f-r)/2),i+r>e&&(i=e-r),i12?" PM":" AM",n=n%12,n<=9&&(n="0"+n),o+=i+"/"+r+"/"+s+" "+n+":"+u+":"+f+e,dtObj.innerHTML=o),tick=setTimeout("usnotime()",1e3),delay>0&&(delay-=1,delay==0&&acticeMenu!=""&&acticeMenu!=null&&displaySubMenu(acticeMenu,acticeMenu))}function WaterMarkAll(n,t,i){n.value.length==0&&t.type=="blur"&&(n.value=i),n.value==i&&t.type=="focus"&&(n.value="")}function chkDelProductFromCart(){return confirm("Bạn cĂ³ chắc chắn muốn xĂ³a sản phẩm nĂ y ")}function chkDelAddressOrder(){return confirm("Bạn cĂ³ chắc chắn muốn xĂ³a địa chỉ nĂ y ")}function showHide(n){document.getElementById(n)&&(document.getElementById(n+"-show").style.display!="none"?(document.getElementById(n+"-show").style.display="none",document.getElementById(n+"-hide").style.display="inline",document.getElementById(n).style.display="block"):(document.getElementById(n+"-show").style.display="inline",document.getElementById(n).style.display="none",document.getElementById(n+"-hide").style.display="none"))}function ShowNumFav(n){var r=$("span[id$=lnkFavourite]"),i=$("a[id$=lnkFavourite2]"),t=0;n!=""&&n!=null&&(t=n.split(",").length),r.html(t),t==0?i.attr("disabled","disabled"):i.removeAttr("disabled")}function AddtoFav(n,t){return t==""||t==null?$.cookie("ListFav",n,{expires:90,path:"/"}):t.indexOf(n)>-1||$.cookie("ListFav",t+","+n,{expires:90,path:"/"}),ShowNumFav($.cookie("ListFav")),!1}function RemoveFromFav(n){var t=$.cookie("ListFav");t==null?alert("ChÆ°a cĂ³ sản phẩm nĂ o trong mục Æ°a thĂch."):t.indexOf(n)>-1?(t=t.replace(","+n,""),t=t.replace(n,""),t=t.replace(",,",","),t.indexOf(",")==0&&(t=t.substring(1)),t!=""?$.cookie("ListFav",t,{expires:90,path:"/"}):$.cookie("ListFav",null,{expires:-1,path:"/"})):alert("ChÆ°a cĂ³ sản phẩm nĂ y trong mục Æ°a thĂch."),ShowNumFav($.cookie("ListFav"))}function LoadLeftCategory(n,t){$.get(n,function(n){n!=""?($("#imgLoading").show(),$("#"+t).html(n),$("#imgLoading").hide()):$("#"+t).html("Data is empty !")})}function GetBoxTinhThanh(n,t){var i=$(t);$.get(n,function(n){n!="1"&&n!=undefined?(i.show(),i.html(n)):(i.hide(),i.html(""))})}function SetTinhThanhCookie(n,t){var i=n;$.ajax({type:"GET",url:i,cache:!1,contentType:"text/plain",success:function(n){n=="1"?(window.location=t,$(".PlaceTinhThanh").hide()):alert(n)}})}function AddToProHistory(n,t){t==""||t==null?$.cookie("cookieProductHistory",n,{expires:10,path:"/"}):t.indexOf(n)<=-1&&$.cookie("cookieProductHistory",t+","+n,{expires:10,path:"/"})}function RemoveFromProHistory(n){var t=$.cookie("cookieProductHistory");t!=null&&(t.indexOf(n)>-1?(t=t.replace(","+n,""),t=t.replace(n,""),t=t.replace(",,",","),t.indexOf(",")==0&&(t=t.substring(1)),t!=""?$.cookie("cookieProductHistory",t,{expires:90,path:"/"}):$.cookie("cookieProductHistory",null,{expires:-1,path:"/"})):alert("ChÆ°a cĂ³ sản phẩm nĂ y trong lịch sá» của bạn."))}function ShowBox(n,t){$("#"+t).show(),$(".overlay").show(),fixCenterBox(),$(".box-login .box-login-content h1 i").click(function(){HideBox()}),$(".btnBackToProductDetail").click(function(){HideBox()}),$(".btnPaymentNow").click(function(){location.href="/lvn-product-cart.aspx"}),fixCenterBoxLoginComment(),$(".box-customer .bor-boxlogin i").click(function(){HideBox()}),fixCenterBoxLoginCommentV2(),$(".box-customer1 .bor-boxlogin i").click(function(){HideBox()}),fixCenterPopupTransport(),$(".popup-transport i").click(function(){HideBox()}),fixCenterPopupConvertSize(),$(".popup-convertsize i").click(function(){HideBox()}),fixCenterPopupConvertSize(),$(".boxOrderContact .bor-boxlogin i").click(function(){HideBox()}),n?$(".overlay").unbind("click"):$(".overlay").click(function(){HideBox()})}function HideBox(){$(".box-login").hide(),$(".overlay").hide(),$(".box-customer").hide(),$(".box-customer1").hide(),$(".popup-transport").hide(),$(".popup-convertsize").hide(),$(".boxOrderContact").hide()}function fixCenterBox(){var i=$(window).width(),r=$(".box-login").outerWidth(),n=(i-r)/2,t=parseInt($(window).scrollTop())+150;$(".box-login").css({left:n}),$(".box-login").css({top:t})}function fixCenterBoxLoginComment(){var i=$(window).width(),r=$(".box-customer").outerWidth(),n=(i-r)/2,t=parseInt($(window).scrollTop())+150;$(".box-customer").css({left:n}),$(".box-customer").css({top:t})}function fixCenterBoxLoginCommentV2(){var i=$(window).width(),r=$(".box-customer1").outerWidth(),n=(i-r)/2,t=parseInt($(window).scrollTop())+150;$(".box-customer1").css({left:n}),$(".box-customer1").css({top:t})}function fixCenterPopupTransport(){var i=$(window).width(),r=$(".popup-transport").outerWidth(),n=(i-r)/2,t=parseInt($(window).scrollTop())+150;$(".popup-transport").css({left:n}),$(".popup-transport").css({top:t})}function fixCenterPopupConvertSize(){var i=$(window).width(),r=$(".popup-convertsize").outerWidth(),n=(i-r)/2,t=parseInt($(window).scrollTop())+150;$(".popup-convertsize").css({left:n}),$(".popup-convertsize").css({top:t})}function fixCenterPopupConvertSize(){var i=$(window).width(),r=$(".boxOrderContact").outerWidth(),n=(i-r)/2,t=parseInt($(window).scrollTop())+150;$(".boxOrderContact").css({left:n}),$(".boxOrderContact").css({top:t})}function ShowTabBox(n,t){$("#"+n+" .tab-header a").removeClass("activeCm"),$(t).addClass("activeCm");var i=$(t).index()+1;$("#"+n+" .bg-conten").hide(),$("#"+n+" .tab-"+i).fadeIn(100)}function getCountProductCol(n,t){var r=$("."+t).outerWidth(),i=6;return i=r<665?3:r>=665&&r<929?4:r>=700&&r<1e3?5:6}function getCountProductC2Col(n,t){var r=$("."+t).outerWidth(),i=5;return i=r<474?2:r<721?3:r<823?4:5}function getCountProductColSPMN(n,t){var r=$("."+t).outerWidth(),i=4;return i=r<500?2:r<700?3:4}function getCountColRelateProduct(n,t){var r=$("."+t).outerWidth(),i=6;return i=r<=965?4:r<=1216?5:6}function getCountProductColQTKM(n,t){var r=$("."+t).outerWidth(),i=4;return i=r<578?2:r<700?3:4}function GetDataProductHome(n,t){$.get(n,function(n){n!=""&&(t.html(n),FixResize.resizeLayout())})}function GetSlideWidthByWindownSize(n){var i=$("."+n).outerWidth(),t=624;return t=i<=667?615:i<=929?820:925}function GetListHistorys(n){var i=$(".box-history .content-item"),t=$(".box-history .content-left");$.get(n,function(n){n===""||typeof n!="string"?t.hide():i.html(n)})}function GetListFavorite(n){alert(n);var i=$(".fav-item"),t=$(".box-fav");$.get(n,function(n){n===""||typeof n!="string"?t.hide():i.html(n)})}function AddToFavorite(n,t){t==""||t==null?$.cookie("cookieProductListFavorite",n,{expires:90,path:"/"}):t.indexOf(n)<=-1?($.cookie("cookieProductListFavorite",t+","+n,{expires:90,path:"/"}),FlashMsgBox(null,"Bạn Ä‘Ă£ thĂªm sản phẩm Æ°a thĂch thĂ nh cĂ´ng","inf")):FlashMsgBox(null,"Sản phẩm nĂ y Ä‘Ă£ cĂ³ trong danh sĂ¡ch Æ°a thĂch của bạn","inf")}function RemoveFromFavorite(n){var t=$.cookie("cookieProductListFavorite");t!=null&&(t.indexOf(n)>-1?(t=t.replace(","+n,""),t=t.replace(n,""),t=t.replace(",,",","),t.indexOf(",")==0&&(t=t.substring(1)),t!=""?($.cookie("cookieProductListFavorite",t,{expires:90,path:"/"}),location.reload()):$.cookie("cookieProductListFavorite",null,{expires:-1,path:"/"})):alert("ChÆ°a cĂ³ sản phẩm nĂ y trong danh sĂ¡ch yĂªu thĂch."))}function AddCookieInToClientFavorite(n,t){var i="";$.ajax({url:n,success:function(n){n==""||typeof n!="string"?AddToFavorite(t,""):(i=n,AddToFavorite(t,i))}})}function AddCookieInToClient(n,t){var i="";$.ajax({url:n,success:function(n){n===""||typeof n!="string"?AddToProHistory(t,""):(i=n,AddToProHistory(t,i))}})}function ActiveProductSize(n,t){$(".ChoiceSize").text($(".item_size li a:eq(0)").addClass("SizeActive").text());var i=$("div#BoxProductSize a");i.click(function(){var u=$(this),r,o;i.removeClass("ps-active"),u.addClass("ps-active"),r=u.attr("dataCode"),o=u.attr("dataPrice"),$(".txtInfoSmall .pd-masp").html(r),$("#hidSize").val(u.text()),$(".placeProductcode").html(r);var s=t+"?sprice="+o+"&scode="+r+"&id="+n,f=$(".ListAttributePice"),e=$(".txtInfoSmall .pd-masp");$.get(s,function(n){n!=null&&n!=""&&(f.text(""),f.html(n),e.text(""),e.html(r))})})}function ActiveProductColor(n,t){var r=$(".wrap-slide-img-detail"),i;$("#BoxProductColor a").removeClass("pc-active"),$(t).addClass("pc-active"),$.get(n,function(n){n!=null&&n!=""&&(r.text(""),r.html(n),LoadProductImage())}),$("#hidColor").val($(t).children("span").text()),i=$("#zoom1").attr("href"),$("#hidImage").val(i)}function LoadProductImage(){$(".cloud-zoom, .cloud-zoom-gallery").CloudZoom(),$(".cloud-zoom-gallery").colorbox({rel:"cloud-zoom-gallery",width:"500px",height:"500px"}),$("#Carousel-wrap .imgThumbZoom").hover(function(){var n=$(this).attr("alt");$(this).css("border","1px solid #F36125"),$("#Carousel-wrap .imgThumbZoom").each(function(){var t=$(this).attr("alt");n!=t&&$(this).css("border","1px solid #e9e9e9")})}),$("ul#Carousel-wrap").carouFredSel({auto:!1,prev:"#prev-carousel",next:"#next-carousel"})}function DisplayHeaderBox(n,t){$("div[id$=nav-rt],div[id$=nav-rt2]").hover(function(){$("div[id$=nav-rt],div[id$=nav-rt2]").children(".rt-box-cart").slideUp(100),$("div[id$=nav-rt],div[id$=nav-rt2]").removeClass("rt-ac"),$(this).addClass("rt-ac"),$(this).children(".rt-box-cart").stop(!0,!0).slideDown(200),$(".overlayNone").show(),GetListShoppingCart(n,t)},function(){$("div[id$=nav-rt],div[id$=nav-rt2]").removeClass("rt-ac"),$("div[id$=nav-rt],div[id$=nav-rt2]").children(".rt-box-cart").slideUp(100)}),$(".overlayNone").hover(function(){$("div[id$=nav-rt],div[id$=nav-rt2]").children(".rt-box-cart").slideUp(100),$(this).hide()})}function GetListShoppingCart(n,t){var i=$(t);i.length<=0||$.get(n+"?timespan="+Number(new Date),function(n){n!=""?(i.html(n),$(".btn-o-delCart-tab").click(function(){var n=$(this),t="/Pages/Ajax/Order_delCart.ashx?timespan="+Number(new Date)+"&id="+n.attr("iData");$.get(t,function(t){var i,r;t!="1"&&t!=undefined&&(n.parent().parent().fadeOut(800),i=$("#plcTotal1"),i.fadeOut(700).fadeIn(700),i.text(t+"Ä‘"),r=jQuery(location).attr("href"),location.href=r)})})):i.html("Giá» hĂ ng lá»—i")})}function LoadCartDefault(){var n="/Pages/Ajax/CartInfo.ashx?timespan="+Number(new Date);$.get(n,function(n){var t=$("a[id$=lnkCart]");t.find(".n-cart-quan").text(n),n.indexOf(">0<")>-1?t.click(function(){return!1}):t.click(function(){return!0})})}function ShowBoxSubMenuC2(n){$.get(n,function(n){n!=""&&$("body").append(n)})}function textBlurInput(n,t){var i=$(n);i.val()==t||i.val()==""?i.removeClass("inputFocus44"):i.addClass("inputFocus44")}function textFocusInput(n,t){var i=$(n);i.val()==t?i.removeClass("inputFocus44"):i.addClass("inputFocus44")}function IsEmail(n){var t=/^[a-zA-Z0-9]+[a-zA-Z0-9_.-]+[a-zA-Z0-9_-]+@[a-zA-Z0-9]+[a-zA-Z0-9.-]+[a-zA-Z0-9]+.[a-z]{2,4}$/;return t.test(n)}function showBoxAlert(n,t,i){var r=$(".boxAlertCart2,.order-3-error");r.hide(),r.html(""+n+""),r.fadeIn(800),i&&t.focus()}function showBoxAlertComplete(n,t,i){var r=$(".ErrorComplete");r.html(n),r.fadeIn(800),i&&t.focus()}function chkCheckCompleteInfor(n,t){var i=!1;return $(".chkEmptyCp").each(function(r){var u=$(this);if(!i)switch(r){case 0:u.val()==""&&(showBoxAlertComplete("Nháºp số Ä‘iện thoại !",u,t),n=!1,i=!0);break;case 1:u.val().length()<8&&(showBoxAlertComplete("Số Ä‘iện thoại khĂ´ng chĂnh xĂ¡c!",u,t),n=!1,i=!0);break;case 2:u.val()=="0"&&(showBoxAlertComplete("Nháºp tỉnh thĂ nh !",u,t),n=!1,i=!0);break;case 3:u.val()==""&&(showBoxAlertComplete("Nháºp địa chỉ của bạn !",u,t),n=!1,i=!0)}}),n}function chkValidateOrder3(n,t){var i=!1;return $(".chkEmpty").each(function(r){var u=$(this);if(!i)switch(r){case 0:u.val()==""?(showBoxAlert("Nháºp email của bạn !",u,t),n=!1,i=!0):u.val()=="Email của bạn"?(showBoxAlert("Nháºp email của bạn !",u,t),n=!1,i=!0):IsEmail(u.val())||(showBoxAlert("Email khĂ´ng hợp lệ !",u,t),n=!1,i=!0);break;case 1:u.val()==""&&(showBoxAlert("Nháºp há» tĂªn !",u,t),n=!1,i=!0);break;case 2:u.val()==""&&(showBoxAlert("Nháºp Ä‘iện thoại !",u,t),n=!1,i=!0);break;case 3:u.val().length()<8&&(showBoxAlert("Số Ä‘iện thoại khĂ´ng chĂnh xĂ¡c!",u,t),n=!1,i=!0);break;case 4:(u.val()==""||u.val()==""||u.val()=="0"||u.val()==undefined||u.val()=="All"||u==undefined)&&(showBoxAlert("Nháºp tỉnh/thĂ nh phố !",u,t),n=!1,i=!0);break;case 5:u.val()==""&&(showBoxAlert("Nháºp địa chỉ !",u,t),n=!1,i=!0)}}),n}function chkNgayThanNam(n,t,i,r,u){if(!isDate(t)){n=!1;var f=$(".boxAlertCart2,.order-3-error");f.hide(),f.html("KhĂ´ng cĂ³ ngĂ y ("+t+") nĂ y"),f.fadeIn(800),i.addClass("cssBorderLoginAlert"),r.addClass("cssBorderLoginAlert"),u.addClass("cssBorderLoginAlert")}return n}function blurEmail(n,t,i){var r=!1,u;switch(i){case 0:t.val()==""?(showBoxAlert("Nháºp email của bạn !",t,r),n=!1):t.val()=="Email của bạn"?(showBoxAlert("Nháºp email của bạn !",t,r),n=!1):IsEmail(t.val())||(showBoxAlert("Email khĂ´ng hợp lệ !",t,r),n=!1);break;case 1:t.val()==""&&(showBoxAlert("Nháºp há» tĂªn !",t,r),n=!1);break;case 2:t.val()==""?(showBoxAlert("Nháºp Ä‘iện thoại !",t,r),n=!1):(u=$.isNumeric(t.val()),u||(showBoxAlert("Số Ä‘iện thoại khĂ´ng chĂnh xĂ¡c !",t,r),n=!1));break;case 3:(t.val()==""||t.val()==""||t.val()=="0"||t.val()==undefined||t.val()=="All"||t==undefined)&&(showBoxAlert("Nháºp tỉnh/thĂ nh phố !",t,r),n=!1);break;case 4:t.val()==""&&(showBoxAlert("Nháºp địa chỉ !",t,r),n=!1);break;case 5:t.val()==""&&(showBoxAlert("Nháºp phÆ°á»ng xĂ£ !",t,r),n=!1);break;case 6:(t.val()==""||t.val()==""||t.val()=="0"||t.val()==undefined||t.val()=="All"||t==undefined)&&(showBoxAlert("Nháºp quáºn/huyện!",t,r),n=!1)}return n}function showBoxAlertNew(n,t,i){var r=$(".order-3-error2");r.hide(),r.html(""+t+""),r.fadeIn(800),i&&n.focus()}function chkValidateOrder3New(n,t){var i=!1;return $(".chkEmptyNew").each(function(r){var u=$(this),f;if(!i)switch(r){case 0:u.val()==""&&(showBoxAlertNew(u,"Nháºp há» của bạn !",t),n=!1,i=!0);break;case 1:u.val()==""&&(showBoxAlertNew(u,"Nháºp tĂªn của bạn !",t),n=!1,i=!0);break;case 2:u.val()==""?(showBoxAlertNew(u,"Nháºp Ä‘iện thoại của bạn !",t),n=!1,i=!0):(f=$.isNumeric(u.val()),f||(showBoxAlertNew(u,"Số Ä‘iện thoại khĂ´ng chĂnh xĂ¡c !",t),n=!1,i=!0));break;case 3:(u.val()==""||u.val()==""||u.val()=="0"||u.val()==undefined||u.val()=="All"||u==undefined)&&(showBoxAlertNew(u,"Chá»n tỉnh/thĂ nh phố của bạn !",t),n=!1,i=!0);break;case 4:u.val()==""&&(showBoxAlertNew(u,"Nháºp số nhĂ của bạn !",t),n=!1,i=!0);break;case 5:u.val()==""&&(showBoxAlertNew(u,"Nháºp phÆ°á»ng/xĂ£ của bạn !",t),n=!1,i=!0);break;case 6:(u.val()==""||u.val()==""||u.val()=="0"||u.val()==undefined||u.val()=="All"||u==undefined)&&(showBoxAlertNew(u,"Chá»n quáºn/huyện của bạn !",t),n=!1,i=!0)}}),n}function blurEmailNew(n,t,i){var r=!1,u;switch(i){case 0:t.val()==""&&(showBoxAlertNew(t,"Nháºp há» của bạn !",r),n=!1);break;case 1:t.val()==""&&(showBoxAlertNew(t,"Nháºp tĂªn của bạn !",r),n=!1);break;case 2:t.val()==""?(showBoxAlertNew(t,"Nháºp Ä‘iện thoại của bạn !",r),n=!1):(u=$.isNumeric(t.val()),u||(showBoxAlertNew(t,"Số Ä‘iện thoại khĂ´ng chĂnh xĂ¡c !",r),n=!1));break;case 3:(t.val()==""||t.val()==""||t.val()=="0"||t.val()==undefined||t.val()=="All"||t==undefined)&&(showBoxAlertNew(t,"Chá»n tỉnh/thĂ nh phố của bạn !",r),n=!1);break;case 4:t.val()==""&&(showBoxAlertNew(t,"Nháºp số nhĂ của bạn !",r),n=!1);break;case 5:t.val()==""&&(showBoxAlertNew(t,"Nháºp phÆ°á»ng/xĂ£ của bạn !",r),n=!1);break;case 6:(t.val()==""||t.val()==""||t.val()=="0"||t.val()==undefined||t.val()=="All"||t==undefined)&&(showBoxAlertNew(t,"Chá»n quáºn/huyện của bạn !",r),n=!1)}return n}function isDate(n){var o=n,e,r,f;if(o==""||(e=/^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/,r=o.match(e),r==null))return!1;var t=r[1],i=r[3],u=r[5];return t<1||t>12?!1:i<1||i>31||(t==4||t==6||t==9||t==11)&&i==31||t==2&&(f=u%4==0&&(u%100!=0||u%400==0),i>29||i==29&&!f)?!1:!0}function resizeKMtet(){$(window).width()<=1280?($(".tet-left").hide(),$(".tet-right").hide()):($(".tet-left").show(),$(".tet-right").show())}function showMenuCity(n,t){t?($(".headerCity").addClass("headerCityOver"),$(".headerCity .tt-content").show()):($(".headerCity").removeClass("headerCityOver"),$(".headerCity .tt-content").hide())}function OpenCity(){$(".headerCity a.subCity").last().addClass("noBoder");var t=$(".headerCity ").width(),n=180-t;$(".second-tip").css("left",170-n),$(".third-tip").css("left",173-n),$(".four-mobile").css("left",162-n),$("span.hotline").show()}function LoadMeuSupport(){$(".nav-header li.nav-sub-item:first").hover(function(){$(this).toggleClass("nav-ac");var t=$(this).find(".box-sub-support"),n=$(this).find(".bg-tem-b");t.toggle(),n.toggle()}),$(".nav-header li.nav-sub-item:last").hover(function(){var n=$(this).find(".box-sub-support-last");n.toggle()})}function LoadHint(){$(".service-hov").hover(function(){var n=$(this).parent(".b-n-item");n==undefined})}function GetSizeDrop(){var n=$(".dropdown-search").outerWidth();$(".b-searchFiled-width").css("margin-left",n)}function setPositionMatch(n){var t=0,r=n.position().left+n.width()/2,i=147;t=r-i,$(".icon-line-match").animate({left:t+"px"})}function showMenuHome(n,t){var u,f,i,r;t.css({overflow:"visible"}),$("ul#nav_cats li.nav_cat").removeClass("nav_hover nav_active"),$("div#nav_browse_flyout div.nav_browse_subcat").hide(),n.addClass("nav_hover nav_active"),u=parseInt(n.css("padding-top")),f=n.position().top+u+10,$("#nav_cat_indicator").css({top:f+"px"}),i=n.attr("id").split("_")[2],$(".nav_flyout_table").removeClass("nav_exposed_skin"),$("div#nav_browse_flyout #nav_subcats_wrap").css({display:"block"}),$("div#nav_browse_flyout div#nav_subcats_"+i).show(),r=$("div#nav_browse_flyout").width(),r==173&&(t.stop(),t.animate({width:"810"},250))}function mouseIn(){var t=$(this),n;$("ul#nav_cats > li.nav_cat").removeClass("nav_cat_active"),t.addClass("nav_cat_active"),n=$("div#nav_browse_flyout"),$("div#nav_browse_flyout div#nav_subcats_wrap div.nav_subcats_div").length==0?(n.prepend($("#submenu").html()),n.css({overflow:"visible"}),showMenuHome(t,n)):(n.css({overflow:"visible"}),showMenuHome(t,n))}function mouseOut(){}function parentIn(){}function parentOut(){}function RunProductSame(){var n=0,t=$("input[id$=hidTotalPrice]"),i="";$(".chkSpmk").each(function(){var r=$(this).attr("idata"),t=$(this).attr("ichoice");n=n+parseFloat(r),i=i+t+";",$("input[id$=hidListProductID]").val(i)}),n!=0&&(t.val(n),$("#plcPriceSame").text(n).format({format:"#,###",locale:"vn"})),HideBtnOrder(n),$(".chkSpmk").click(function(){var i=parseFloat($(this).attr("idata")),r=$(this).attr("pId"),n=0;$(this).attr("checked")=="checked"?(n=parseFloat(t.val())+i,$(this).parent().parent().children("span.spkmPlus").fadeIn("slow"),$(this).attr("ichoice",r)):(n=parseFloat(t.val())-i,$(this).parent().parent().children("span.spkmPlus").fadeOut("slow"),$(this).attr("ichoice","0")),GetListId(),HideBtnOrder(n),$(".img"+r).toggleClass("OpacitySpkm"),t.val(n),$("#plcPriceSame").text(n).format({format:"#,###",locale:"vn"})})}function GetListId(){var n="";$(".chkSpmk").each(function(){var t=$(this).attr("ichoice");n=n+t+";",$("input[id$=hidListProductID]").val(n)})}function HideBtnOrder(n){n<=0?$("#boxBtnSpkm").fadeOut("slow"):$("#boxBtnSpkm").fadeIn("slow")}function scrollTopWindow(){$("#wraper").append('
'),$(window).scroll(function(){$(window).scrollTop()!=0?$("#top").fadeIn():$("#top").fadeOut()}),$("#top").click(function(){$("html, body").animate({scrollTop:0},500)})}function OpenSupportOnline(n,t){return t.slideToggle("slow",function(){var i=$(this).children("iframe");i.length==0&&t.append('')}),!1}function CloseSupportOnline(n){n.slideToggle("slow",function(){$(this).children("iframe").remove()})}function GetDataProductHot(n,t,i){$.get(n,function(n){n!=""&&n!=null&&n.length>0?t.html(n):i.hide()})}function GetResizeProductCatePagging(){var n=$(".Category-main").outerWidth();return n<=759?3:n>759&&n<=1015?4:5}function GetResizeProductbyBox(n){var t=$("."+n).outerWidth();return t<=655?3:t>655&&t<=907?4:5}function GetResizeOtherCusPagging(){var n=$(".detail-body").outerWidth();return n<=739?3:n>739&&n<=995?4:5}function btnOrderClick(n){var r=$(n),i=r.attr("idata"),t="Pages/Ajax/AddToCartBase.ashx?timespan="+Number(new Date)+"&id="+i;$.get(t,function(n){if(n=="1"){LoadCartDefault();var t="/Pages/Ajax/GetListCartHome.ashx?timespan="+Number(new Date);GetListShoppingCart(t,"#boxListCartHome"),location.href="/lvn-product-cart.aspx"}else alert(n)})}function LoadMenuLv2(){var t=0,i=0,n;$(".menu-lt-one > mnl-item").mousemove(function(n){configChild.interval=0,n.pageX>t&&n.pageY>=i&&(configChild.interval=100,configChild.sensitivity=2),n.pageX>t&&n.pageY<=i&&(configChild.interval=100,configChild.sensitivity=2),t=n.pageX,i=n.pageY}),$("menu-lt-one > mnl-item > div").mouseover(function(){$("menu-lt-one > mnl-item").unbind("hover"),$("menu-lt-one > mnl-item").hoverIntent(configChild)}),$("menu-lt-one > mnl-item").hoverIntent(configChild),n=$("div.menu-lt-one"),$(".menulv2").hover(function(){$(".box-menulv2").css({display:"block"})},function(){n.stop(),$("ul#nav_cats > li.nav_cat").removeClass("nav_cat_active"),$("#nav_cat_indicator").removeAttr("style"),$("ul#nav_cats li.nav_cat").removeClass("nav_hover nav_active"),$(this).addClass("nav_exposed_skin"),n.children("div.nav_browse_subcat").hide(),n.width("173"),n.css({overflow:"hidden"})})}function showMenu(){var t,i,n;$("ul#nav_cats > li.cat-83465708").addClass("nav_cat_gift").html('Gợi Ă½ quĂ cho bĂ©'),t=0,i=0,$("ul#nav_cats > li.nav_cat").mousemove(function(n){configChild.interval=0,n.pageX>t&&n.pageY>=i&&(configChild.interval=100,configChild.sensitivity=2),n.pageX>t&&n.pageY<=i&&(configChild.interval=100,configChild.sensitivity=2),t=n.pageX,i=n.pageY}),$("ul#nav_cats > li.nav_cat > div").mouseover(function(){$("ul#nav_cats > li.nav_cat").unbind("hover"),$("ul#nav_cats > li.nav_cat").hoverIntent(configChild)}),$("ul#nav_cats > li.nav_cat").hoverIntent(configChild),n=$("div#nav_browse_flyout"),$(".nav_flyout_table").hover(function(){$("#submenu #nav_subcats_wrap").css({display:"block"})},function(){n.stop(),$("ul#nav_cats > li.nav_cat").removeClass("nav_cat_active"),$("#nav_cat_indicator").removeAttr("style"),$("ul#nav_cats li.nav_cat").removeClass("nav_hover nav_active"),$(this).addClass("nav_exposed_skin"),n.children("div.nav_browse_subcat").hide(),n.width("173"),n.css({overflow:"hidden"})})}function HideMenuShowHover(){var n=$("#BoxNavMenuLeft");$("table.nav_flyout_table").hide(),n.find(".bg-nav-left").css({display:"none"}),n.find(".txtHeaderLeft").removeClass("txtHeaderLeftColoF"),n.hover(function(){$("table.nav_flyout_table").show(),n.find(".bg-nav-left").css({display:"block"}),n.find(".txtHeaderLeftCate").addClass("txtHeaderLeftColoF")},function(){$("table.nav_flyout_table").hide(),n.find(".bg-nav-left").css({display:"none"}),n.find(".txtHeaderLeftCate").removeClass("txtHeaderLeftColoF")})}function ClearCombo(n){var t,i;n!=undefined&&(t=$(":selected",n).text(),t!=""&&t.indexOf("â‹…â‹…â‹…")>=0&&(i=$(".sbSelector"),i!=undefined&&i.text(t.replace("â‹…â‹…â‹…","").replace("â‹…â‹…â‹…",""))))}function HideFlashMsgBox(n){clearTimeout(theTimeoutFlashMsgBox),$(n).hide("blind"),$(n).html("")}function FlashMsgBox(n,t,i){var f,u,r;(n==null||n=="")&&(n=".flashmsgbox"),$(n).length<=0&&$("body").prepend(''),$(n).is(".flashmsgbox")||$(n).addClass("flashmsgbox"),(i==""||i==null)&&(i="inf"),f=''+t+"
",$(n).html(f),u=($(window).height()-$(n).height())/2,r=($(window).width()-$(n).width())/2,$(n).css({display:"none",top:u+"px",left:r+"px"}),$(n).fadeIn("slow"),theTimeoutFlashMsgBox=setInterval(function(){HideFlashMsgBox(n),HideFlashMsgBox(".overlay-white")},1e3),$(n).click(function(){HideFlashMsgBox(n),HideFlashMsgBox(".overlay-white")})}function loadCustInfor(){$(".n-info-login").length<=0||$.ajax({type:"POST",url:"/Pages/Ajax/BindCustomerInfor.ashx",data:"timespan="+Number(new Date),success:function(n){n!=""&&$(".n-info-login").empty().append(n)}})}function loadCustInforFromFb(){alert("login fb"),$.ajax({type:"POST",url:"/Pages/Ajax/FacebookLogin.ashx",data:"timespan="+Number(new Date),success:function(n){n!=""&&$(".n-info-login").empty().append(n)}})}var configChild,configParent,theTimeoutFlashMsgBox,FixResize;(function(n,t){function et(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}function bt(n){if(!ut[n]){var e=r.body,t=i("<"+n+">").appendTo(e),u=t.css("display");t.remove(),(u==="none"||u==="")&&(f||(f=r.createElement("iframe"),f.frameBorder=f.width=f.height=0),e.appendChild(f),h&&f.createElement||(h=(f.contentWindow||f.contentDocument).document,h.write((r.compatMode==="CSS1Compat"?"":"")+""),h.close()),t=h.createElement(n),h.body.appendChild(t),u=i.css(t,"display"),e.removeChild(f)),ut[n]=u}return ut[n]}function v(n,t){var r={};return i.each(tr.concat.apply([],tr.slice(0,t)),function(){r[this]=n}),r}function nf(){p=t}function bi(){return setTimeout(nf,0),p=i.now()}function tf(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ur(){try{return new n.XMLHttpRequest}catch(t){}}function du(n,r){n.dataFilter&&(r=n.dataFilter(r,n.dataType));for(var v=n.dataTypes,s={},l,p=v.length,a,f=v[0],h,y,u,o,e,c=1;c0){if(r!=="border")for(;f=0===r})}function dt(n){return!n||!n.parentNode||n.parentNode.nodeType===11}function w(){return!0}function c(){return!1}function fr(n,t,r){var e=t+"defer",o=t+"queue",u=t+"mark",f=i._data(n,e);f&&(r==="queue"||!i._data(n,o))&&(r==="mark"||!i._data(n,u))&&setTimeout(function(){!i._data(n,o)&&!i._data(n,u)&&(i.removeData(n,e,!0),f.fire())},0)}function ct(n){for(var t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function ir(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(wi,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:i.isNumeric(u)?parseFloat(u):gi.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function uf(n){var r=rr[n]={},t,i;for(n=n.split(/\s+/),t=0,i=n.length;t)[^>]*$|#([\w\-]*)$)/,p=/\S/,v=/^\s+/,w=/\s+$/,st=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,et=/^[\],:{}\s]*$/,ot=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,ft=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rt=/(?:^|:|,)(?:\s*\[)+/g,ut=/(webkit)[ \/]([\w.]+)/,nt=/(opera)(?:.*version)?[ \/]([\w.]+)/,at=/(msie) ([\w.]+)/,vt=/(mozilla)(?:.*? rv:([\w.]+))?/,lt=/-([a-z]|[0-9])/ig,ht=/^-ms-/,ct=function(n,t){return(t+"").toUpperCase()},k=ff.userAgent,e,o,u,d=Object.prototype.toString,h=Object.prototype.hasOwnProperty,s=Array.prototype.push,f=Array.prototype.slice,l=String.prototype.trim,a=Array.prototype.indexOf,c={};return i.fn=i.prototype={constructor:i,init:function(n,u,f){var o,s,e,h;if(!n)return this;if(n.nodeType)return this.context=this[0]=n,this.length=1,this;if(n==="body"&&!u&&r.body)return this.context=r,this[0]=r.body,this.selector=n,this.length=1,this;if(typeof n=="string"){if(o=n.charAt(0)!=="<"||n.charAt(n.length-1)!==">"||n.length<3?tt.exec(n):[null,n,null],o&&(o[1]||!u)){if(o[1])return u=u instanceof i?u[0]:u,h=u?u.ownerDocument||u:r,e=st.exec(n),e?i.isPlainObject(u)?(n=[r.createElement(e[1])],i.fn.attr.call(n,u,!0)):n=[h.createElement(e[1])]:(e=i.buildFragment([o[1]],[h]),n=(e.cacheable?i.clone(e.fragment):e.fragment).childNodes),i.merge(this,n);if(s=r.getElementById(o[2]),s&&s.parentNode){if(s.id!==o[2])return f.find(n);this.length=1,this[0]=s}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n,t,r){var u=this.constructor();return i.isArray(n)?s.apply(u,n):i.merge(u,n),u.prevObject=this,u.context=this.context,t==="find"?u.selector=this.selector+(this.selector?" ":"")+r:t&&(u.selector=this.selector+"."+t+"("+r+")"),u},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.bindReady(),o.add(n),this},eq:function(n){return n=+n,n===-1?this.slice(n):this.slice(n,n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var s,e,u,r,h,c,n=arguments[0]||{},f=1,l=arguments.length,o=!1;for(typeof n=="boolean"&&(o=n,n=arguments[1]||{},f=2),typeof n!="object"&&!i.isFunction(n)&&(n={}),l===f&&(n=this,--f);f0)return;o.fireWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=i.Callbacks("once memory"),r.readyState==="complete")return setTimeout(i.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",i.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",u),n.attachEvent("onload",i.ready);var t=!1;try{t=n.frameElement==null}catch(f){}r.documentElement.doScroll&&t&&b()}}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n&&typeof n=="object"&&"setInterval"in n},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):c[d.call(n)]||"object"},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!h.call(n,"constructor")&&!h.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}var r;for(r in n);return r===t||h.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseJSON:function(t){if(typeof t!="string"||!t)return null;if(t=i.trim(t),n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(et.test(t.replace(ot,"@").replace(ft,"]").replace(rt,"")))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return(!u||!u.documentElement||u.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&p.test(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(ht,"ms-").replace(lt,ct)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()===t.toUpperCase()},each:function(n,r,u){var e,f=0,o=n.length,s=o===t||i.isFunction(n);if(u){if(s){for(e in n)if(r.apply(n[e],u)===!1)break}else for(;f0&&n[0]&&n[e-1]||e===0||i.isArray(n));if(c)for(;s1?b.call(arguments,0):i,t.notifyWith(o,s)}}function c(n){return function(i){r[n]=arguments.length>1?b.call(arguments,0):i,--e||t.resolveWith(t,r)}}var r=b.call(arguments,0),u=0,f=r.length,s=Array(f),e=f,l=f,t=f<=1&&n&&i.isFunction(n.promise)?n:i.Deferred(),o=t.promise();if(f>1){for(;ua",y=t.getElementsByTagName("*"),o=t.getElementsByTagName("a")[0],!y||!y.length||!o)return{};v=r.createElement("select"),a=v.appendChild(r.createElement("option")),f=t.getElementsByTagName("input")[0],u={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")==="/a",opacity:/^0.55/.test(o.style.opacity),cssFloat:!!o.style.cssFloat,checkOn:f.value==="on",optSelected:a.selected,getSetAttribute:t.className!=="t",enctype:!!r.createElement("form").enctype,html5Clone:r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},f.checked=!0,u.noCloneChecked=f.cloneNode(!0).checked,v.disabled=!0,u.optDisabled=!a.disabled;try{delete t.test}catch(w){u.deleteExpando=!1}if(!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){u.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),f=r.createElement("input"),f.value="t",f.setAttribute("type","radio"),u.radioValue=f.value==="t",f.setAttribute("checked","checked"),t.appendChild(f),e=r.createDocumentFragment(),e.appendChild(t.lastChild),u.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,u.appendChecked=f.checked,e.removeChild(f),e.appendChild(t),t.innerHTML="",n.getComputedStyle&&(h=r.createElement("div"),h.style.width="0",h.style.marginRight="0",t.style.width="2px",t.appendChild(h),u.reliableMarginRight=(parseInt((n.getComputedStyle(h,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(p in{submit:1,change:1,focusin:1})l="on"+p,s=l in t,s||(t.setAttribute(l,"return;"),s=typeof t[l]=="function"),u[p+"Bubbles"]=s;return e.removeChild(t),e=v=a=h=t=f=null,i(function(){var f,h,n,b,w,e,y,v,l,a,p,o=r.getElementsByTagName("body")[0];!o||(y=1,v="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",l="visibility:hidden;border:0;",a="style='"+v+"border:5px solid #000;padding:0;'",p="",f=r.createElement("div"),f.style.cssText=l+"width:0;height:0;position:static;top:0;margin-top:"+y+"px",o.insertBefore(f,o.firstChild),t=r.createElement("div"),f.appendChild(t),t.innerHTML="",c=t.getElementsByTagName("td"),s=c[0].offsetHeight===0,c[0].style.display="",c[1].style.display="none",u.reliableHiddenOffsets=s&&c[0].offsetHeight===0,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",i.boxModel=u.boxModel=t.offsetWidth===2,typeof t.style.zoom!="undefined"&&(t.style.display="inline",t.style.zoom=1,u.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="",u.shrinkWrapBlocks=t.offsetWidth!==2),t.style.cssText=v+l,t.innerHTML=p,h=t.firstChild,n=h.firstChild,w=h.nextSibling.firstChild.firstChild,e={doesNotAddBorder:n.offsetTop!==5,doesAddBorderForTableAndCells:w.offsetTop===5},n.style.position="fixed",n.style.top="20px",e.fixedPosition=n.offsetTop===20||n.offsetTop===15,n.style.position=n.style.top="",h.style.overflow="hidden",h.style.position="relative",e.subtractsBorderForOverflowNotVisible=n.offsetTop===-5,e.doesNotIncludeMarginInBodyOffset=o.offsetTop!==y,o.removeChild(f),t=f=null,i.extend(u,e))}),u}(),gi=/^(?:\{.*\}|\[.*\])$/,wi=/([A-Z])/g,i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ct(n)},data:function(n,r,u,f){if(!!i.acceptData(n)){var v,s,c,h=i.expando,y=typeof r=="string",l=n.nodeType,o=l?i.cache:n,e=l?n[h]:n[h]&&h,a=r==="events";return(!e||!o[e]||!a&&!f&&!o[e].data)&&y&&u===t?void 0:(e||(l?n[h]=e=++i.uuid:e=h),o[e]||(o[e]={},l||(o[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?o[e]=i.extend(o[e],r):o[e].data=i.extend(o[e].data,r)),v=s=o[e],f||(s.data||(s.data={}),s=s.data),u!==t&&(s[i.camelCase(r)]=u),a&&!s[r])?v.events:(y?(c=s[r],c==null&&(c=s[i.camelCase(r)])):c=s,c)}},removeData:function(n,t,r){if(!!i.acceptData(n)){var e,s,c,o=i.expando,h=n.nodeType,u=h?i.cache:n,f=h?n[o]:o;if(!u[f])return;if(t&&(e=r?u[f]:u[f].data,e)){for(i.isArray(t)||(t in e?t=[t]:(t=i.camelCase(t),t=t in e?[t]:t.split(" "))),s=0,c=t.length;s-1)return!0;return!1},val:function(n){var r,u,e,f=this[0];return!arguments.length?f?(r=i.valHooks[f.nodeName.toLowerCase()]||i.valHooks[f.type],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(lu,""):u==null?"":u):void 0:(e=i.isFunction(n),this.each(function(u){var o=i(this),f;this.nodeType===1&&(f=e?n.call(this,u,o.val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.nodeName.toLowerCase()]||i.valHooks[this.type],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))}))}}),i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){var o,e,h,t,r=n.selectedIndex,s=[],u=n.options,f=n.type==="select-one";if(r<0)return null;for(e=f?r:0,h=f?r+1:u.length;e=0}),r.length||(n.selectedIndex=-1),r}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(n,r,u,f){var s,o,c,h=n.nodeType;if(!!n&&h!==3&&h!==8&&h!==2){if(f&&r in i.attrFn)return i(n)[r](u);if(typeof n.getAttribute=="undefined")return i.prop(n,r,u);if(c=h!==1||!i.isXMLDoc(n),c&&(r=r.toLowerCase(),o=i.attrHooks[r]||(pr.test(r)?or:e)),u!==t){if(u===null){i.removeAttr(n,r);return}return o&&"set"in o&&c&&(s=o.set(n,u,r))!==t?s:(n.setAttribute(r,""+u),u)}return o&&"get"in o&&c&&(s=o.get(n,r))!==null?s:(s=n.getAttribute(r),s===null?t:s)}},removeAttr:function(n,t){var u,e,r,o,f=0;if(t&&n.nodeType===1)for(e=t.toLowerCase().split(d),o=e.length;f=0}})});var ft=/^(?:textarea|input|select)$/i,lr=/^([^\.]*)?(?:\.(.+))?$/,vu=/\bhover(\.\S+)?\b/,wu=/^key/,bu=/^(?:mouse|contextmenu)|click/,kt=/^(?:focusinfocus|focusoutblur)$/,yu=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,pu=function(n){var t=yu.exec(n);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},sf=function(n,t){var i=n.attributes||{};return(!t[1]||n.nodeName.toLowerCase()===t[1])&&(!t[2]||(i.id||{}).value===t[2])&&(!t[3]||t[3].test((i["class"]||{}).value))},gt=function(n){return i.event.special.hover?n:n.replace(vu,"mouseenter$1 mouseleave$1")};i.event={add:function(n,r,u,f,e){var v,h,a,p,y,o,w,l,b,k,c,s;if(!(n.nodeType===3||n.nodeType===8||!r||!u||!(v=i._data(n)))){for(u.handler&&(b=u,u=b.handler),u.guid||(u.guid=i.guid++),a=v.events,a||(v.events=a={}),h=v.handle,h||(v.handle=h=function(n){return typeof i!="undefined"&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(h.elem,arguments):t},h.elem=n),r=i.trim(gt(r)).split(" "),p=0;p=0&&(o=o.slice(0,-1),k=!0),o.indexOf(".")>=0&&(w=o.split("."),o=w.shift(),w.sort()),(!f||i.event.customEvent[o])&&!i.event.global[o])return;if(r=typeof r=="object"?r[i.expando]?r:new i.Event(o,r):new i.Event(o),r.type=o,r.isTrigger=!0,r.exclusive=k,r.namespace=w.join("."),r.namespace_re=r.namespace?new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,a=o.indexOf(":")<0?"on"+o:"",!f){p=i.cache;for(c in p)p[c].events&&p[c].events[o]&&i.event.trigger(r,u,p[c].handle.elem,!0);return}if(r.result=t,r.target||(r.target=f),u=u!=null?i.makeArray(u):[],u.unshift(r),l=i.event.special[o]||{},l.trigger&&l.trigger.apply(f,u)===!1)return;if(y=[[f,l.bindType||o]],!e&&!l.noBubble&&!i.isWindow(f)){for(b=l.delegateType||o,s=kt.test(b+o)?f:f.parentNode,h=null;s;s=s.parentNode)y.push([s,b]),h=s;h&&h===f.ownerDocument&&y.push([h.defaultView||h.parentWindow||n,b])}for(c=0;cp&&y.push({elem:this,matches:h.slice(p)}),f=0;f0?this.on(t,null,n,i):this.trigger(t)},i.attrFn&&(i.attrFn[t]=!0),wu.test(t)&&(i.event.fixHooks[t]=i.event.keyHooks),bu.test(t)&&(i.event.fixHooks[t]=i.event.mouseHooks)}),function(){function b(t,i,r,u,f,e){for(var s,c,h=0,l=u.length;h0){c=s;break}s=s[t]}u[h]=c}}function d(n,t,i,r,u,f){for(var e,h,s=0,c=r.length;s+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,o="sizcache"+(Math.random()+"").replace(".",""),p=0,g=Object.prototype.toString,l=!1,k=!0,e=/\\/g,it=/\r\n/g,c=/\W/,n,h,f,a,s,y;[0,0].sort(function(){return k=!1,0}),n=function(t,i,e,o){var it;if(e=e||[],i=i||r,it=i,i.nodeType!==1&&i.nodeType!==9)return[];if(!t||typeof t!="string")return e;var v,a,h,d,l,p,b,c,rt=!0,k=n.isXML(i),s=[],tt=t;do if(w.exec(""),v=w.exec(tt),v&&(tt=v[3],s.push(v[1]),v[2])){d=v[3];break}while(v);if(s.length>1&&nt.exec(t))if(s.length===2&&u.relative[s[0]])a=y(s[0]+s[1],i,o);else for(a=u.relative[s[0]]?[i]:n(s.shift(),i);s.length;)t=s.shift(),u.relative[t]&&(t+=s.shift()),a=y(t,a,o);else if(!o&&s.length>1&&i.nodeType===9&&!k&&u.match.ID.test(s[0])&&!u.match.ID.test(s[s.length-1])&&(l=n.find(s.shift(),i,k),i=l.expr?n.filter(l.expr,l.set)[0]:l.set[0]),i)for(l=o?{expr:s.pop(),set:f(o)}:n.find(s.pop(),s.length===1&&(s[0]==="~"||s[0]==="+")&&i.parentNode?i.parentNode:i,k),a=l.expr?n.filter(l.expr,l.set):l.set,s.length>0?h=f(a):rt=!1;s.length;)p=s.pop(),b=p,u.relative[p]?b=s.pop():p="",b==null&&(b=i),u.relative[p](h,b,k);else h=s=[];if(h||(h=a),h||n.error(p||t),g.call(h)==="[object Array]")if(rt)if(i&&i.nodeType===1)for(c=0;h[c]!=null;c++)h[c]&&(h[c]===!0||h[c].nodeType===1&&n.contains(i,h[c]))&&e.push(a[c]);else for(c=0;h[c]!=null;c++)h[c]&&h[c].nodeType===1&&e.push(a[c]);else e.push.apply(e,h);else f(h,e);return d&&(n(d,it,e,o),n.uniqueSort(e)),e},n.uniqueSort=function(n){if(a&&(l=k,n.sort(a),l))for(var t=1;t0},n.find=function(n,t,i){var f,s,c,r,o,h;if(!n)return[];for(s=0,c=u.order.length;s":function(t,i){var u,e=typeof i=="string",r=0,o=t.length,f;if(e&&!c.test(i))for(i=i.toLowerCase();r=0)?i||r.push(o):i&&(t[s]=!1));return!1},ID:function(n){return n[1].replace(e,"")},TAG:function(n){return n[1].replace(e,"").toLowerCase()},CHILD:function(t){if(t[1]==="nth"){t[2]||n.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var i=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=i[1]+(i[2]||1)-0,t[3]=i[3]-0}else t[2]&&n.error(t[0]);return t[0]=p++,t},ATTR:function(n,t,i,r,f,o){var s=n[1]=n[1].replace(e,"");return!o&&u.attrMap[s]&&(n[1]=u.attrMap[s]),n[4]=(n[4]||n[5]||"").replace(e,""),n[2]==="~="&&(n[4]=" "+n[4]+" "),n},PSEUDO:function(t,i,r,f,e){if(t[1]==="not")if((w.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=n(t[3],null,null,i);else{var o=n.filter(t[3],i,r,!0^e);return r||f.push.apply(f,o),!1}else if(u.match.POS.test(t[0])||u.match.CHILD.test(t[0]))return!0;return t},POS:function(n){return n.unshift(!0),n}},filters:{enabled:function(n){return n.disabled===!1&&n.type!=="hidden"},disabled:function(n){return n.disabled===!0},checked:function(n){return n.checked===!0},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},parent:function(n){return!!n.firstChild},empty:function(n){return!n.firstChild},has:function(t,i,r){return!!n(r[3],t).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){var i=n.getAttribute("type"),t=n.type;return n.nodeName.toLowerCase()==="input"&&"text"===t&&(i===t||i===null)},radio:function(n){return n.nodeName.toLowerCase()==="input"&&"radio"===n.type},checkbox:function(n){return n.nodeName.toLowerCase()==="input"&&"checkbox"===n.type},file:function(n){return n.nodeName.toLowerCase()==="input"&&"file"===n.type},password:function(n){return n.nodeName.toLowerCase()==="input"&&"password"===n.type},submit:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===n.type},image:function(n){return n.nodeName.toLowerCase()==="input"&&"image"===n.type},reset:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===n.type},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&"button"===n.type||t==="button"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)},focus:function(n){return n===n.ownerDocument.activeElement}},setFilters:{first:function(n,t){return t===0},last:function(n,t,i,r){return t===r.length-1},even:function(n,t){return t%2==0},odd:function(n,t){return t%2==1},lt:function(n,t,i){return ti[3]-0},nth:function(n,t,i){return i[3]-0===t},eq:function(n,t,i){return i[3]-0===t}},filter:{PSEUDO:function(t,i,r,f){var o=i[1],c=u.filters[o],s,e,h;if(c)return c(t,r,i,f);if(o==="contains")return(t.textContent||t.innerText||v([t])||"").indexOf(i[3])>=0;if(o==="not"){for(s=i[3],e=0,h=s.length;e=0}},ID:function(n,t){return n.nodeType===1&&n.getAttribute("id")===t},TAG:function(n,t){return t==="*"&&n.nodeType===1||!!n.nodeName&&n.nodeName.toLowerCase()===t},CLASS:function(n,t){return(" "+(n.className||n.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(t,i){var o=i[1],s=n.attr?n.attr(t,o):u.attrHandle[o]?u.attrHandle[o](t):t[o]!=null?t[o]:t.getAttribute(o),f=s+"",e=i[2],r=i[4];return s==null?e==="!=":!e&&n.attr?s!=null:e==="="?f===r:e==="*="?f.indexOf(r)>=0:e==="~="?(" "+f+" ").indexOf(r)>=0:r?e==="!="?f!==r:e==="^="?f.indexOf(r)===0:e==="$="?f.substr(f.length-r.length)===r:e==="|="?f===r||f.substr(0,r.length+1)===r+"-":!1:f&&s!==!1},POS:function(n,t,i,r){var e=t[2],f=u.setFilters[e];if(f)return f(n,i,t,r)}}},nt=u.match.POS,tt=function(n,t){return"\\"+(+t+1)};for(h in u.match)u.match[h]=new RegExp(u.match[h].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[h]=new RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[h].source.replace(/\\(\d+)/g,tt));f=function(n,t){return(n=Array.prototype.slice.call(n,0),t)?(t.push.apply(t,n),t):n};try{Array.prototype.slice.call(r.documentElement.childNodes,0)[0].nodeType}catch(rt){f=function(n,t){var i=0,r=t||[],u;if(g.call(n)==="[object Array]")Array.prototype.push.apply(r,n);else if(typeof n.length=="number")for(u=n.length;i",n.insertBefore(i,n.firstChild),r.getElementById(f)&&(u.find.ID=function(n,i,r){if(typeof i.getElementById!="undefined"&&!r){var u=i.getElementById(n[1]);return u?u.id===n[1]||typeof u.getAttributeNode!="undefined"&&u.getAttributeNode("id").nodeValue===n[1]?[u]:t:[]}},u.filter.ID=function(n,t){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&i&&i.nodeValue===t}),n.removeChild(i),n=i=null}(),function(){var n=r.createElement("div");n.appendChild(r.createComment("")),n.getElementsByTagName("*").length>0&&(u.find.TAG=function(n,t){var r=t.getElementsByTagName(n[1]),u,i;if(n[1]==="*"){for(u=[],i=0;r[i];i++)r[i].nodeType===1&&u.push(r[i]);r=u}return r}),n.innerHTML="",n.firstChild&&typeof n.firstChild.getAttribute!="undefined"&&n.firstChild.getAttribute("href")!=="#"&&(u.attrHandle.href=function(n){return n.getAttribute("href",2)}),n=null}(),r.querySelectorAll&&function(){var e=n,t=r.createElement("div"),o="__sizzle__",i;if(t.innerHTML="",!t.querySelectorAll||t.querySelectorAll(".TEST").length!==0){n=function(t,i,s,h){var c,l;if(i=i||r,!h&&!n.isXML(i)){if(c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t),c&&(i.nodeType===1||i.nodeType===9)){if(c[1])return f(i.getElementsByTagName(t),s);if(c[2]&&u.find.CLASS&&i.getElementsByClassName)return f(i.getElementsByClassName(c[2]),s)}if(i.nodeType===9){if(t==="body"&&i.body)return f([i.body],s);if(c&&c[3]){if(l=i.getElementById(c[3]),!l||!l.parentNode)return f([],s);if(l.id===c[3])return f([l],s)}try{return f(i.querySelectorAll(t),s)}catch(k){}}else if(i.nodeType===1&&i.nodeName.toLowerCase()!=="object"){var w=i,v=i.getAttribute("id"),a=v||o,y=i.parentNode,p=/^\s*[+~]/.test(t);v?a=a.replace(/'/g,"\\$&"):i.setAttribute("id",a),p&&y&&(i=i.parentNode);try{if(!p||y)return f(i.querySelectorAll("[id='"+a+"'] "+t),s)}catch(b){}finally{v||w.removeAttribute("id")}}}return e(t,i,s,h)};for(i in e)n[i]=e[i];t=null}}(),function(){var i=r.documentElement,t=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.msMatchesSelector,e,f;if(t){e=!t.call(r.createElement("div"),"div"),f=!1;try{t.call(r.documentElement,"[test!='']:sizzle")}catch(o){f=!0}n.matchesSelector=function(i,r){if(r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!n.isXML(i))try{if(f||!u.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=t.call(i,r);if(o||!e||i.document&&i.document.nodeType!==11)return o}}catch(s){}return n(r,null,null,[i]).length>0}}}(),function(){var n=r.createElement("div");if(n.innerHTML="",!!n.getElementsByClassName&&n.getElementsByClassName("e").length!==0){if(n.lastChild.className="e",n.getElementsByClassName("e").length===1)return;u.order.splice(1,0,"CLASS"),u.find.CLASS=function(n,t,i){if(typeof t.getElementsByClassName!="undefined"&&!i)return t.getElementsByClassName(n[1])},n=null}}(),n.contains=r.documentElement.contains?function(n,t){return n!==t&&(n.contains?n.contains(t):!0)}:r.documentElement.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:function(){return!1},n.isXML=function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1},y=function(t,i,r){for(var s,h=[],c="",e=i.nodeType?[i]:i,f,o;s=u.match.PSEUDO.exec(t);)c+=s[0],t=t.replace(u.match.PSEUDO,"");for(t=u.relative[t]?t+"*":t,f=0,o=e.length;f0)for(u=o;u=0:i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){var f=[],u,s,r=this[0],e,o;if(i.isArray(n)){for(e=1;r&&r.ownerDocument&&r!==t;){for(u=0;u-1:i.find.matchesSelector(r,n)){f.push(r);break}if(r=r.parentNode,!r||!r.ownerDocument||r===t||r.nodeType===11)break}return f=f.length>1?i.unique(f):f,this.pushStack(f,"closest",n)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(n,t){var u=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),r=i.merge(this.get(),u);return this.pushStack(dt(u[0])||dt(r[0])?r:i.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return i.nth(n,2,"nextSibling")},prev:function(n){return i.nth(n,2,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling(n.parentNode.firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.makeArray(n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return ne.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!fe[n]?i.unique(f):f,(this.length>1||df.test(u))&&te.test(n)&&(f=f.reverse()),this.pushStack(f,n,ie.call(arguments).join(","))}}),i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},nth:function(n,t,i){t=t||1;for(var u=0;n;n=n[i])if(n.nodeType===1&&++u===t)break;return n},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var pt="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ee=/ jQuery\d+="(?:\d+|null)"/g,ht=/^\s+/,hi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,si=/<([\w:]+)/,re=/",""],legend:[1,""],thead:[1,""],tr:[2,""],td:[3,""],col:[2,""],area:[1,""],_default:[0,"",""]},li=ci(r);u.optgroup=u.option,u.tbody=u.tfoot=u.colgroup=u.caption=u.thead,u.th=u.td,i.support.htmlSerialize||(u._default=[1,"div","
"]),i.fn.extend({text:function(n){return i.isFunction(n)?this.each(function(t){var r=i(this);r.text(n.call(this,t,r.text()))}):typeof n!="object"&&n!==t?this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n)):i.text(this)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var r=i(this),t=r.contents();t.length?t.wrapAll(n):r.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var n=i.clean(arguments);return n.push.apply(n,this.toArray()),this.pushStack(n,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var n=this.pushStack(this,"after",arguments);return n.push.apply(n,i.clean(arguments)),n}},remove:function(n,t){for(var u=0,r;(r=this[u])!=null;u++)(!n||i.filter(n,[r]).length)&&(!t&&r.nodeType===1&&(i.cleanData(r.getElementsByTagName("*")),i.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r));return this},empty:function(){for(var t=0,n;(n=this[t])!=null;t++)for(n.nodeType===1&&i.cleanData(n.getElementsByTagName("*"));n.firstChild;)n.removeChild(n.firstChild);return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){if(n===t)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ee,""):null;if(typeof n!="string"||kf.test(n)||!i.support.leadingWhitespace&&ht.test(n)||u[(si.exec(n)||["",""])[1].toLowerCase()])i.isFunction(n)?this.each(function(t){var r=i(this);r.html(n.call(this,t,r.html()))}):this.empty().append(n);else{n=n.replace(hi,"<$1>$2>");try{for(var r=0,f=this.length;r1&&s0?this.clone(!0):this).get(),i(u[f])[t](e),o=o.concat(e);return this.pushStack(o,n,u.selector)}}),i.extend({clone:function(n,t,r){var f,e,u,o=i.support.html5Clone||!vi.test("<"+n.nodeName)?n.cloneNode(!0):ef(n);if((!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(fi(n,o),f=g(n),e=g(o),u=0;f[u];++u)e[u]&&fi(f[u],e[u]);if(t&&(ui(n,o),r))for(f=g(n),e=g(o),u=0;f[u];++u)ui(f[u],e[u]);return f=e=null,o},clean:function(n,t,f,e){var p,s,l,h,o,y,a,w,k;for(t=t||r,typeof t.createElement=="undefined"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||r),s=[],h=0;(o=n[h])!=null;h++)if(typeof o=="number"&&(o+=""),o){if(typeof o=="string")if(ue.test(o)){o=o.replace(hi,"<$1>$2>");var b=(si.exec(o)||["",""])[1].toLowerCase(),v=u[b]||u._default,d=v[0],c=t.createElement("div");for(t===r?li.appendChild(c):ci(t).appendChild(c),c.innerHTML=v[1]+o+v[2];d--;)c=c.lastChild;if(!i.support.tbody)for(y=re.test(o),a=b==="table"&&!y?c.firstChild&&c.firstChild.childNodes:v[1]===""&&!y?c.childNodes:[],l=a.length-1;l>=0;--l)i.nodeName(a[l],"tbody")&&!a[l].childNodes.length&&a[l].parentNode.removeChild(a[l]);!i.support.leadingWhitespace&&ht.test(o)&&c.insertBefore(t.createTextNode(ht.exec(o)[0]),c.firstChild),o=c.childNodes}else o=t.createTextNode(o);if(!i.support.appendChecked)if(o[0]&&typeof(w=o.length)=="number")for(l=0;l=0?t+"px":void 0):t}}}),i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return cf.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(n,t){var f=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",r=u&&u.filter||f.filter||"";(f.zoom=1,t>=1&&i.trim(r.replace(ot,""))===""&&(f.removeAttribute("filter"),u&&!u.filter))||(f.filter=ot.test(r)?r.replace(ot,e):r+" "+e)}}),i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){var r;return i.swap(n,{display:"inline-block"},function(){r=t?l(n,"margin-right","marginRight"):n.style.marginRight}),r}})}),r.defaultView&&r.defaultView.getComputedStyle&&(ei=function(n,t){var r,f,u;return t=t.replace(vf,"-$1").toLowerCase(),(f=n.ownerDocument.defaultView)&&(u=f.getComputedStyle(n,null))&&(r=u.getPropertyValue(t),r===""&&!i.contains(n.ownerDocument.documentElement,n)&&(r=i.style(n,t))),r}),r.documentElement.currentStyle&&(oi=function(n,t){var e,u,f,i=n.currentStyle&&n.currentStyle[t],r=n.style;return i===null&&r&&(f=r[t])&&(i=f),!ii.test(i)&&wf.test(i)&&(e=r.left,u=n.runtimeStyle&&n.runtimeStyle.left,u&&(n.runtimeStyle.left=n.currentStyle.left),r.left=t==="fontSize"?"1em":i||0,i=r.pixelLeft+"px",r.left=e,u&&(n.runtimeStyle.left=u)),i===""?"auto":i}),l=ei||oi,i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){var r=n.offsetWidth,t=n.offsetHeight;return r===0&&t===0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});var kr=/%20/g,dr=/\[\]$/,ri=/\r?\n/g,uu=/#.*$/,ou=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,eu=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ru=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,nu=/^(?:GET|HEAD)$/,gr=/^\/\//,yt=/\?/,br=/