function revslider_showDoubleJqueryError(n){var t="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";t+="<br> This includes make eliminates the revolution slider libraries, and make it not work.";t+="<br><br> To fix it you can:<br>    1. In the Slider Settings -> Troubleshooting set option:  <strong><b>Put JS Includes To Body<\/b><\/strong> option to true.";t+="<br>    2. Find the double jquery.js include and remove it.";t="<span style='font-size:16px;color:#BC0C06;'>"+t+"<\/span>";jQuery(n).show().html(t)}function GetCartList(){return ret=WordWebService.GetCartList(OnCartComplete,OnCartTimeout,OnCartError),!0}function OnCartComplete(n){$("#CartItems").html(n)}function OnCartTimeout(){$("#CartItems").html("<p>&nbsp;&nbsp;A timeout error occurred - please check your Internet connection.<\/p>")}function OnCartError(){$("#CartItems").html("<p>&nbsp;&nbsp;An error occurred. Please try a different search.<\/p>")}function GetCartListMobilePhysical(){return ret=WordWebService.GetCartListMobile("false",OnCartListMobilePhysicalComplete,OnCartListMobilePhysicalTimeout,OnCartListMobilePhysicalError),GetCartTotalNoText("P"),GetFreightAjax(),!0}function OnCartListMobilePhysicalComplete(n){$("#CartItems").html(n)}function OnCartListMobilePhysicalTimeout(){$("#CartItems").html("<p>&nbsp;&nbsp;A timeout error occurred - please check your Internet connection.<\/p>")}function OnCartListMobilePhysicalError(){$("#CartItems").html("<p>&nbsp;&nbsp;An error occurred retrieving your total.<\/p>")}function GetCartListMobileDigital(){return ret=WordWebService.GetCartListMobile("true",OnCartListMobileDigitalComplete,OnCartListMobileDigitalTimeout,OnCartListMobileDigitalError),GetCartTotalSpecific("D"),GetCartTotal(),!0}function OnCartListMobileDigitalComplete(n){$("#CartItemsDigital").html(n)}function OnCartListMobileDigitalTimeout(){$("#CartItemsDigital").html("<p>&nbsp;&nbsp;A timeout error occurred - please check your Internet connection.<\/p>")}function OnCartListMobileDigitalError(){$("#CartItemsDigital").html("<p>&nbsp;&nbsp;An error occurred. Please try a different search.<\/p>")}function AddCartItem(n,t){ret=WordWebService.AddItem(n,t)}function RemoveCartItem(n){ret=WordWebService.RemoveItem(n,RemoveCartItemComplete,RemoveCartItemTimeout,RemoveCartItemError)}function RemoveCartItemComplete(){GetCartListMobilePhysical();GetCartListMobileDigital()}function RemoveCartItemTimeout(){}function RemoveCartItemError(){}function AddGiftVoucher(n,t,i){$("#DropDownGiftVoucherErrorText").html("");$("#DropDownGiftVoucherSuccessText").html("");WordWebService.AddGiftVoucher(n,t,i,OnAddGiftVoucherComplete,OnAddGiftVoucherCartError,OnAddGiftVoucherCartTimeout)}function OnAddGiftVoucherComplete(n){n.Success?$("#DropDownGiftVoucherSuccessText").html("Success - Gift Voucher has been added to your cart"):$("#DropDownGiftVoucherErrorText").html(n.ErrorMessage+"<br />")}function OnAddGiftVoucherCartTimeout(n){$("#DropDownGiftVoucherErrorText").html(n.get_message()+"<br />")}function OnAddGiftVoucherCartError(n){$("#DropDownGiftVoucherErrorText").html(n.get_message()+"<br />")}function setAddToCartTimer(n){n.html('<p>&nbsp;&nbsp;Adding item, please wait... &nbsp;<img src="/images/animations/rotating_arrow.gif" alt="Loading" /><\/p>');currentElement=n;clearTimeout(currentTimer);currentTimer=setTimeout("GetCurrentCartItem()",200)}function setCartListTimer(n){n.html('<p>&nbsp;&nbsp;Retrieving your cart... &nbsp;<img src="/images/animations/rotating_arrow.gif" alt="Loading" /><\/p>');currentElement=n;clearTimeout(currentTimer);currentTimer=setTimeout("GetCartList()",200)}function GetCurrentCartItem(){return ret=WordWebService.GetCurrentCartItem(OnComplete,OnTimeout,OnError),!0}function OnComplete(n){$(currentElement).html(n);UpdateCart()}function OnTimeout(){$(currentElement).html("<p>&nbsp;&nbsp;A timeout error occurred - please check your Internet connection.<\/p>")}function OnError(){$(currentElement).html("<p>&nbsp;&nbsp;An error occurred.<\/p>")}function GetCartQuantity(){return ret=WordWebService.GetCartQuantity(OnCartQtyComplete,OnCartQtyTimeout,OnCartQtyError),!0}function OnCartQtyComplete(n){var r,u,i,t=n;i=t==1?" item":" items";u="<b>Digital Cart<\/b><br>";$("div.DigitalCartText").html(u+t+i);r=t>=5?"Displaying 5 of "+t+i:"Displaying "+t+" of "+t+i;cartQty=t;$("#CartSummary").html(r);GetCartTotal()}function OnCartQtyTimeout(){$("div.CartText").html("Timeout");$("div.CartSummary").html("Timeout")}function OnCartQtyError(){$("div.CartText").html("Error");$("div.CartSummary").html("Error")}function GetCartTotal(){return ret=WordWebService.GetCartTotal(OnCartTotalComplete,OnCartTotalTimeout,OnCartTotalError),!0}function OnCartTotalComplete(n){var t="Total for "+cartQty+" items:  <b>$"+n+"<\/b>";$("#CartTotal").html(t);$("#HeaderTopACTotal").html("$"+n)}function OnCartTotalTimeout(){$("div.CartTotal").html("Timeout")}function OnCartTotalError(){$("div.CartTotal").html("Error")}function GetCartTotalSpecific(n){return ret=WordWebService.GetCartTotalSpecific(n,OnCartTotalSpecificComplete,OnCartTotalSpecificTimeout,OnCartTotalSpecificError),!0}function OnCartTotalSpecificComplete(n){var t="Total: "+n[0];n[1]=="D"?$("#MainContent_CartTotalDigital").html(t):$("#MainContent_CartTotal").html(t)}function OnCartTotalSpecificTimeout(){}function OnCartTotalSpecificError(){}function GetCartTotalNoText(n){return ret=WordWebService.GetCartTotalSpecific(n,OnCartTotalNoTextComplete,OnCartTotalNoTextTimeout,OnCartTotalNoTextError),!0}function OnCartTotalNoTextComplete(n){var t=n[0];n[1]=="D"?$("#MainContent_CartTotalDigital").html(t):$("#MainContent_CartTotal").html(t)}function OnCartTotalNoTextTimeout(){}function OnCartTotalNoTextError(){}function UpdateCart(){GetCartQuantity("false");GetCartQuantity("true")}function ShowSearchPopup(){$("#SearchPopup").slideDown("300")}function ShowCartPopup(){$("#CartPopup").slideDown("150")}function HideCartPopup(){$("#CartPopup").slideUp("150")}function ToggleCartPopup(n){$("#CartPopup").css("display")=="none"?($("#CartPopup").slideDown("150"),n=="true"?($("#CartOptions").css("display","none"),$("#DigitalCartOptions").css("display","block")):($("#CartOptions").css("display","block"),$("#DigitalCartOptions").css("display","none")),GetCartQuantity(n),setCartListTimer($("#CartItems"),n)):$("#CartPopup").slideUp("150")}function ShowAddToCartPopup(n,t,i){window.innerWidth<800&&n=="#AddToCartPopup"&&(t=t-215,i=10);$(n).css("top",t);$(n).css("left",i);$(n).slideDown("150")}function OnGetFreightComplete(){location.reload()}function OnGetFreightTimeout(){}function OnGetFreightError(){}function GetFreightAjax(){freighttype=$("#MainContent_cboFreightTypeAjax").val();$("#ShoppingCartAjaxFreight").html("...");ret=WordWebService.GetFreightRate(freighttype,OnGetFreightAjaxComplete,OnGetFreightAjaxTimeout,OnGetFreightAjaxError)}function OnGetFreightAjaxComplete(n){$("#ShoppingCartAjaxFreight").html(n)}function OnGetFreightAjaxTimeout(){$("#ShoppingCartAjaxFreight").html("Timeout")}function OnGetFreightAjaxError(){$("#ShoppingCartAjaxFreight").html("Error")}function AddWishListItem(n,t){return currentElement=t,ret=WordWebService.AddWishListItem(n,OnAddWishListComplete,OnAddWishListTimeout,OnAddWishListError),!0}function OnAddWishListComplete(){$(currentElement).html("<a href='/cart.aspx#wishlist'>This is in your Wishlist<\/a>")}function OnAddWishListTimeout(){$(currentElement).html("Timeout")}function OnAddWishListError(){$(currentElement).html("Error")}function SubmitPayPalPayment(){$("#SubmitPayPalButton").prop("disabled",!0);ret=WordWebService.CreatePayPalPayment(OnSubmitPayPalComplete,OnSubmitPayPalTimeout,OnSubmitPayPalError)}function OnSubmitPayPalComplete(n){window.location.href=n}function OnSubmitPayPalTimeout(){$("#SubmitPayPalButton").prop("disabled",!1);alert("Timeout error occurred - please try again.")}function OnSubmitPayPalError(){$("#SubmitPayPalButton").prop("disabled",!1);alert("A server error occurred - please try again.")}function disableEnterKey(n){var t;return t=window.event?window.event.keyCode:n.which,t!==13}function AutoCompleteClientPopulated(n){var e,o,r,t,u,i,f,s;if(n._currentPrefix!=null)for(e=n.get_completionList(),o=n._currentPrefix.toLowerCase(),r=0;r<e.childNodes.length;r++)t=e.childNodes[r].innerHTML,u=t.toLowerCase().indexOf(o,t.toLowerCase().indexOf("ac_result_left")+15),u!=-1&&(i=t.substring(0,u),i+='<span class="autocomplete_listItemHiliteText">',i+=t.substr(u,o.length),i+="<\/span>",i+=t.substring(u+o.length),e.childNodes[r].innerHTML=i);f=$find("autoComplete").get_completionList();f!=null&&(s=$("#HeaderTopSearchDropDownDisplay").width(),s!=undefined?$(f).css("margin-left",s+42):$(f).css("margin-left",0),$(f).css("width",$("#HeaderTopSearchTextBox").width()))}function AutoCompleteClientItemSelected(n,t){if(disableNextEnterKeyPress=!0,n._hideCompletionList(),typeof t.get_value().First=="undefined")switch(t.get_value().slice(0,1)){case"P":window.location="/details.aspx?ProductID="+t.get_value().slice(1);break;case"S":window.location="/Search/SearchResults.aspx?SeriesID="+t.get_value().slice(1)+(productGroupID>0?"&ProductGroupID="+productGroupID:"");break;case"A":currentSearchText=escape(t.get_text()).toLowerCase();window.location="/Search/SearchResults.aspx?AuthorKeywords="+escape(t.get_text())+(productGroupID>0?"&ProductGroupID="+productGroupID:"");break;case"J":window.location="/Search/SearchResults.aspx?SubjectID="+t.get_value().slice(1)+(productGroupID>0?"&ProductGroupID="+productGroupID:"");break;default:DoSearch(t.get_Text())}else DoSearch(t.get_text())}function CheckClickOutside(n,t,i,r){t.is(n.target)||i.is(n.target)||t.has(n.target).length!=0||i.has(n.target).length!=0||(r.hide(),r.attr("id")!=undefined&&r.attr("id").startsWith("DropDown")&&DropDownRemoveHighlights())}function SearchDropdownToggle(){$("#HeaderTopSearchDropDown").toggle()}function SearchDropdownSelect(n){$("#HeaderTopSearchDropDown").hide();$("#HeaderTopSearchDropDownDisplay").html($(n).text());SearchDropdownAdjustPadding();$("#HeaderTopSearchTextBoxInput").focus();var t=$find("autoComplete");t!=null&&t.set_contextKey($(n).attr("value"))}function SearchDropdownAdjustPadding(){$(".HeaderTopSearchTextBoxInput").css("padding-left",$("#HeaderTopSearchDropDownDisplay").width()+45);$("#HeaderTopSearchTextBox").css("padding-right",$("#HeaderTopSearchDropDownDisplay").width()+45)}function SearchDropdownHighlight(n){$(n).attr("id")=="HeaderTopSearchDropDownDisplay"?$(n).toggleClass("HeaderTopSearchDropDownDisplayHighlight"):$(n).attr("id")=="HeaderTopSearchGo"?$(n).toggleClass("HeaderTopSearchGoHighlight"):$(n).toggleClass("HeaderTopSearchDropDownHighlight")}function CheckSearch(n){var t;t=window.event?window.event.keyCode:n.which;t!=13||disableNextEnterKeyPress||($("input.HeaderTopSearchTextBoxInput").val()!=undefined?DoSearch($("input.HeaderTopSearchTextBoxInput").val()):DoSearch($("input.HeaderTopSearchTextBox").val()));disableNextEnterKeyPress=!1}function DoSearch(n){currentSearchText=escape(n).toLowerCase();currentSearchText!=""&&UpdateSearch("?Keywords="+currentSearchText+(productGroupID>0?"&ProductGroupID="+productGroupID:""))}function UpdateSearch(n,t,i){t||(t=1);i&&window.scrollTo(0,0);SaveSearchToBrowserHistory(n);currentSearchQueryURL=n;var r="/Search/SearchResultsAjax.aspx"+n;$("#AjaxSearchResults").html('<div style="height: 500px; text-align: center; padding-top: 125px;"><img src="/images/icons/loadinganimation.gif"><br /><br />Loading Search Results ...<\/div>');$.ajax({contentType:"text/html; charset=utf-8",url:r,dataType:"html",success:function(n){n.match(/^[0-9]{6}$/)?window.location="/details.aspx?ProductID="+n:$("#AjaxSearchResults").html(n)},error:function(){$(".AjaxSearchPane").html(errorText)}});PreloadSearchResults(n,t+1);t>1&&PreloadSearchResults(n,t-1)}function UpdateSearchPane(n,t,i){!t|t==0&&(t=1);i&&window.scrollTo(0,0);n!=currentSearchQueryURL&&(searchPageNavigator=[],searchPageResults=[],searchPageSortBy=[]);currentSearchQueryURL=n;SaveSearchToBrowserHistory(n+"&Page="+t);$(".AjaxSearchPane").html('<div style="height: '+$(".AjaxSearchPane").height()+'px; text-align: center; padding-top: 125px;"><img src="/images/icons/loadinganimation.gif"><br /><br />Loading Search Results ...<\/div>');searchPageNavigator[t]?$(".AjaxSearchNavigator").html(searchPageNavigator[t]):$.ajax({contentType:"text/html; charset=utf-8",url:"/Search/AjaxSearchResultsNavigator.aspx"+n+"&Page="+t,dataType:"html",success:function(n){$(".AjaxSearchNavigator").html(n);searchPageNavigator[t]=n}});searchPageSortBy[t]?$(".SRSortByContainer").html(searchPageSortBy[t]):$.ajax({contentType:"text/html; charset=utf-8",url:"/Search/AjaxSearchResultSortBy.aspx"+n+"&Page="+t,dataType:"html",success:function(n){$(".SRSortByContainer").html(n);searchPageSortBy[t]=n}});searchPageResults[t]?($(".AjaxSearchPane").hide(),$(".AjaxSearchPane").html(searchPageResults[t]),$(".AjaxSearchPane").fadeIn(300)):$.ajax({contentType:"text/html; charset=utf-8",url:"/Search/AjaxSearchResultsPane.aspx"+n+"&Page="+t,dataType:"html",success:function(n){$(".AjaxSearchPane").html(n);searchPageResults[t]=n},error:function(){$(".AjaxSearchPane").html(errorText)}});PreloadSearchResults(n,t+1);t>1&&PreloadSearchResults(n,t-1)}function PreloadSearchResults(n,t){searchPageNavigator||(searchPageNavigator=[],searchPageResults=[],searchPageSortBy=[],currentSearchQueryURL=n);searchPageNavigator[t]||$.ajax({contentType:"text/html; charset=utf-8",url:"/Search/AjaxSearchResultsNavigator.aspx"+n+"&Page="+t,dataType:"html",success:function(n){searchPageNavigator[t]=n}});searchPageSortBy[t]||$.ajax({contentType:"text/html; charset=utf-8",url:"/Search/AjaxSearchResultSortBy.aspx"+n+"&Page="+t,dataType:"html",success:function(n){searchPageSortBy[t]=n}});searchPageResults[t]||$.ajax({contentType:"text/html; charset=utf-8",url:"/Search/AjaxSearchResultsPane.aspx"+n+"&Page="+t,dataType:"html",success:function(n){searchPageResults[t]=n}})}function SaveSearchToBrowserHistory(n){try{window.history.pushState(null,"Search Results | WORD Bookstore Australia","/Search/SearchResults.aspx"+n)}catch(t){}}function DropDownShow(n){$("#DropDownLatestCatalogue").hide();$("#HeaderBottomLatestCatalogue").removeClass("DropDownHighlight");$("#DropDownContactUs").hide();$("#HeaderBottomContactUs").removeClass("DropDownHighlight");$("#DropDownStoreLocations").hide();$("#HeaderBottomStoreLocations").removeClass("DropDownHighlight");$("#DropDownGiftVoucher").hide();$("#HeaderBottomGiftVoucher").removeClass("DropDownHighlight");$("#DropDownInformation").hide();$("#HeaderBottomInformation").removeClass("DropDownHighlight");$("#DropDownAccount").hide();$("#HeaderTopACAccount").removeClass("DropDownHighlightBlack");$("#DropDownCart").hide();$("#HeaderTopACCart").removeClass("DropDownHighlightBlack");$("#HeaderTopACCartLogo").removeClass("HeaderTopACCartLogoWhite");$("#HeaderTopACCartLogo").addClass("HeaderTopACCartLogoBlack");$("#HeaderTopSearchDropDown").hide();$("#"+n).show();n=="DropDownCart"&&($("#HeaderTopACCart").addClass("DropDownHighlightBlack"),$("#HeaderTopACCartLogo").removeClass("HeaderTopACCartLogoBlack"),$("#HeaderTopACCartLogo").addClass("HeaderTopACCartLogoWhite"),(dateLastCartRefresh==null||(new Date-dateLastCartRefresh)/1e3>5)&&(GetCartQuantity(),GetCartList(),dateLastCartRefresh=new Date));switch(n){case"DropDownAccount":$("#DropDownAccount").offset({left:$("#HeaderTopACAccount").offset().left-10});$("#HeaderTopACAccount").addClass("DropDownHighlightBlack");break;case"DropDownCart":$("#DropDownCart").offset({left:$("#HeaderTopACCart").offset().left+$("#HeaderTopACCart").width()-$("#DropDownCart").width()+16});break;case"DropDownCategory":$("#DropDownCategory").offset({left:$("#HeaderBottomShopByCategory").offset().left})}}function DropDownHide(n){$("#"+n).hide();switch(n){case"DropDownAccount":$("#HeaderTopACAccount").removeClass("DropDownHighlightBlack");break;case"DropDownCart":$("#HeaderTopACCart").removeClass("DropDownHighlightBlack");$("#HeaderTopACCartLogo").removeClass("HeaderTopACCartLogoWhite");$("#HeaderTopACCartLogo").addClass("HeaderTopACCartLogoBlack");break;case"DropDownInformation":$("#HeaderBottomInformation").removeClass("DropDownHighlight")}}function DropDownHighlight(n){switch($("#"+n).attr("id")){case"DropDownLatestCatalogue":$("#DropDownLatestCatalogue").is(":visible")||$("#HeaderBottomLatestCatalogue").toggleClass("DropDownHighlight");break;case"DropDownContactUs":$("#DropDownContactUs").is(":visible")||$("#HeaderBottomContactUs").toggleClass("DropDownHighlight");break;case"DropDownStoreLocations":$("#DropDownStoreLocations").is(":visible")||$("#HeaderBottomStoreLocations").toggleClass("DropDownHighlight");break;case"DropDownGiftVoucher":$("#DropDownGiftVoucher").is(":visible")||$("#HeaderBottomGiftVoucher").toggleClass("DropDownHighlight");break;case"DropDownInformation":$("#DropDownInformation").is(":visible")||$("#HeaderBottomInformation").toggleClass("DropDownHighlight")}}function DropDownRemoveHighlights(){$("#DropDownLatestCatalogue").is(":visible")||$("#HeaderBottomLatestCatalogue").removeClass("DropDownHighlight");$("#DropDownContactUs").is(":visible")||$("#HeaderBottomContactUs").removeClass("DropDownHighlight");$("#DropDownStoreLocations").is(":visible")||$("#HeaderBottomStoreLocations").removeClass("DropDownHighlight");$("#DropDownGiftVoucher").is(":visible")||$("#HeaderBottomGiftVoucher").removeClass("DropDownHighlight");$("#DropDownInformation").is(":visible")||$("#HeaderBottomInformation").removeClass("DropDownHighlight")}function DropDownShowHide(n){$(".DropDownMenu").removeClass("DropDownHighlight");switch($("#"+n).attr("id")){case"DropDownLatestCatalogue":$("#DropDownLatestCatalogue").toggle();$("#DropDownContactUs").hide();$("#DropDownStoreLocations").hide();$("#DropDownGiftVoucher").hide();$("#DropDownInformation").hide();$("#DropDownLatestCatalogue").is(":visible")&&$("#HeaderBottomLatestCatalogue").addClass("DropDownHighlight");$("#DropDownLatestCatalogue").offset({left:$("#HeaderBottomLatestCatalogue").offset().left-10});break;case"DropDownContactUs":$("#DropDownLatestCatalogue").hide();$("#DropDownContactUs").toggle();$("#DropDownStoreLocations").hide();$("#DropDownGiftVoucher").hide();$("#DropDownInformation").hide();$("#DropDownContactUs").is(":visible")&&$("#HeaderBottomContactUs").addClass("DropDownHighlight");$("#DropDownContactUs").offset({left:$("#HeaderBottomContactUs").offset().left-10});break;case"DropDownStoreLocations":$("#DropDownLatestCatalogue").hide();$("#DropDownContactUs").hide();$("#DropDownStoreLocations").toggle();$("#DropDownGiftVoucher").hide();$("#DropDownInformation").hide();$("#DropDownStoreLocations").is(":visible")&&$("#HeaderBottomStoreLocations").addClass("DropDownHighlight");$("#DropDownStoreLocations").offset({left:$("#HeaderBottomStoreLocations").offset().left-10});break;case"DropDownGiftVoucher":$("#DropDownLatestCatalogue").hide();$("#DropDownContactUs").hide();$("#DropDownStoreLocations").hide();$("#DropDownGiftVoucher").toggle();$("#DropDownInformation").hide();$("#DropDownGiftVoucher").is(":visible")&&$("#HeaderBottomGiftVoucher").addClass("DropDownHighlight");$("#DropDownGiftVoucher").offset({left:$("#HeaderBottomGiftVoucher").offset().left-10});break;case"DropDownInformation":$("#DropDownLatestCatalogue").hide();$("#DropDownContactUs").hide();$("#DropDownStoreLocations").hide();$("#DropDownGiftVoucher").hide();$("#DropDownInformation").toggle();$("#DropDownInformation").is(":visible")&&$("#HeaderBottomInformation").addClass("DropDownHighlight");$("#DropDownInformation").offset({left:$("#HeaderBottomInformation").offset().left-10})}}function DropDownTextHighlight(n){var i=jQuery.Color($(n).css("border-bottom-color")),u=jQuery.Color($(n).css("background-color")),r=jQuery.Color("#6793bb"),t=jQuery.Color(0,0,0,0),f=jQuery.Color("#f4f3f0");i.toRgbaString()==t.toRgbaString()?$(n).css("border-bottom-color",r.toRgbaString()):$(n).css("border-bottom-color",t.toRgbaString())}function DropDownCategoryDisplay(){$(".DropDownCategoryPanel").hide();$("#DropDownCategory").css("height","230px");switch($(this).attr("id")){case"DropDownCategoryTextEbooks":$(".DropDownCategoryEbooks").show();$("#DropDownCategory").css("height","310px");$("#DropDownCategoryLinkEbooks").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkEbooks)").animate({color:"#808080"},100);break;case"DropDownCategoryTextEaudio":$(".DropDownCategoryEaudio").show();$("#DropDownCategoryLinkEaudio").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkEaudio)").animate({color:"#808080"},100);break;case"DropDownCategoryTextBooks":$(".DropDownCategoryBooks").show();$("#DropDownCategoryLinkBooks").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkBooks)").animate({color:"#808080"},100);break;case"DropDownCategoryTextBibles":$(".DropDownCategoryBibles").show();$("#DropDownCategoryLinkBibles").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkBibles)").animate({color:"#808080"},100);break;case"DropDownCategoryTextMinistry":$(".DropDownCategoryMinistry").show();$("#DropDownCategoryLinkMinistry").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkMinistry)").animate({color:"#808080"},100);break;case"DropDownCategoryTextReference":$(".DropDownCategoryReference").show();$("#DropDownCategoryLinkReference").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkReference)").animate({color:"#808080"},100);break;case"DropDownCategoryTextKidsTeens":$(".DropDownCategoryKidsTeens").show();$("#DropDownCategoryLinkKidsTeens").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkKidsTeens)").animate({color:"#808080"},100);break;case"DropDownCategoryTextDVDs":$(".DropDownCategoryDVDs").show();$("#DropDownCategoryLinkDVDs").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkDVDs)").animate({color:"#808080"},100);break;case"DropDownCategoryTextMusic":$(".DropDownCategoryMusic").show();$("#DropDownCategoryLinkMusic").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkMusic)").animate({color:"#808080"},100);break;case"DropDownCategoryTextGifts":$(".DropDownCategoryGifts").show();$("#DropDownCategoryLinkGifts").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkGifts)").animate({color:"#808080"},100);break;case"DropDownCategoryTextAudioBooks":$(".DropDownCategoryAudioBooks").show();$("#DropDownCategoryLinkAudioBooks").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkAudioBooks)").animate({color:"#808080"},100);break;case"DropDownCategoryTextMarkdowns":$(".DropDownCategoryMarkdowns").show();$("#DropDownCategoryLinkMarkdowns").animate({color:"#000000"},100);$(".DropDownCategoryText a:not(#DropDownCategoryLinkMarkdowns)").animate({color:"#808080"},100)}}function ContactUsDisplay(){window.scrollTo(0,0);DropDownShow("DropDownContactUs")}function StoreLocationsDisplay(){window.scrollTo(0,0);DropDownShow("DropDownStoreLocations")}function ToggleContactUs(){var n=$("input[name=ContactUsEnquiryType]:checked").val();typeof n=="undefined"&&(n="0");n=="1"?($("#DropDownContactUsInner").animate({height:"470px"},150),$("#DropDownContactUs").animate({height:"480px"},150),$(".ContactUsEnquiryTypeEbook").show()):$("#DropDownContactUsInner").height()>350&&($("#DropDownContactUsInner").animate({height:"400px"},150),$("#DropDownContactUs").animate({height:"410px"},150),$(".ContactUsEnquiryTypeEbook").hide())}function ContactUsSubmit(){var t=$("#DropDownContactUsYourName").val(),i=$("#DropDownContactUsEmail").val(),r=$("#DropDownContactCustomerID").val(),n=$("input[name=ContactUsEnquiryType]:checked").val(),u=$("#ContactUsEbookDevice option:selected").text(),f=$("#ContactUsEbookApplication option:selected").text(),e=$("#ContactUsEbookProblem option:selected").text(),o=$("#DropDownContactComment").val();$("#DropDownContactUsErrorText").html("");$("#DropDownContactUsSuccessText").html("");$("#DropDownContactUsStatusText").html("");typeof n=="undefined"&&(n="0");WordWebService.ContactUsSubmit(t,i,r,n,u,f,e,o,OnContactUsComplete,OnContactUsError,OnContactUsCartTimeout)}function OnContactUsComplete(n){n.Success?($(".ContactUsTextBox").val(""),$("#ContactUsEbookDevice :nth-child(0)").prop("selected",!0),$("#ContactUsEbookApplication :nth-child(0)").prop("selected",!0),$("#ContactUsEbookProblem :nth-child(0)").prop("selected",!0),$("input:radio[name=ContactUsEnquiryType]").attr("checked",!1),ToggleContactUs(),$("#DropDownContactUsSuccessText").html("Success - Enquiry has been sent.")):$("#DropDownContactUsErrorText").html(n.ErrorMessage+"<br />")}function OnContactUsError(){$("#DropDownContactUsStatusText").html("");$("#DropDownContactUsErrorText").html("An unknown error has occurred. Please try again later.<br />")}function OnContactUsCartTimeout(){$("#DropDownContactUsErrorText").html("Timeout error occureed. Please check your internet connection.<br />")}function LoadPage(n){var t,i,r,u;switch(n){case"accountdetails":t="/account/customerdetails.aspx";i="Account Details";r="/information/aboutword";break;case"aboutword":t="/information/aboutword.aspx";i="About Word";r="/information/aboutword";break;case"jobvacancies":t="/information/jobvacancies.aspx";i="Job Vacancies";r="/information/jobvacancies";break;case"faqs":t="/information/faqs.aspx";i="FAQ's";r="/information/faqs";break;case"shoppingguide":t="/information/shoppingguide.aspx";i="Shopping Guide";r="/information/shoppingguide";break;case"rssfeeds":t="/information/rssfeedsabout.aspx";i="RSS Feeds";r="/information/rssfeeds";break;case"privacypolicy":t="/information/privacypolicy.aspx";i="Privacy Policy";r="/information/privacypolicy";break;case"purchasingpolicy":t="/information/purchasingpolicy.aspx";i="Purchasing Policy";r="/information/purchasingpolicy";break;case"refundspolicy":t="/information/refundspolicy.aspx";i="Refunds and Returns Policy";r="/information/refundspolicy";break;case"asseenontv":t="/estores/asseenontv.aspx";i="As Seen On TV";r="/estores/asseenontv";break;case"termsconds":t="/information/termsconds.aspx";i="Discount Terms and Conditions";r="/information/termsconds"}u=$("#AjaxSearchResults").html();$("#AjaxSearchResults").html('<div style="height: 500px; text-align: center; padding-top: 125px;"><img src="/images/icons/loadinganimation.gif"><br /><br />Loading ...<\/div>');$.ajax({contentType:"text/html; charset=utf-8",url:t,dataType:"html",success:function(n){$("#AjaxSearchResults").html(n);$("#DropDownStoreLocations").hide();$("#HeaderBottomStoreLocations").removeClass("DropDownHighlight");try{window.history.replaceState(u,"",document.URL);window.history.pushState(n,i+"| WORD Bookstore Australia",r)}catch(t){}}})}function StoreDetailsLoad(n){var t=$("#AjaxSearchResults").html();$("#AjaxSearchResults").html('<div style="height: 500px; text-align: center; padding-top: 125px;"><img src="/images/icons/loadinganimation.gif"><br /><br />Loading ...<\/div>');$.ajax({contentType:"text/html; charset=utf-8",url:"/stores/"+n+".html",dataType:"html",success:function(i){$("#AjaxSearchResults").html(i);$("#DropDownStoreLocations").hide();$("#HeaderBottomStoreLocations").removeClass("DropDownHighlight");try{window.history.replaceState(t,"",document.URL);window.history.pushState(i,"Store Details | WORD Bookstore Australia","/Stores/StoreDetails.aspx?Store="+n)}catch(r){}}})}function HideAddToCartPopup(){$("div.AddToCartPopup").slideUp("150");$("div.AddToDigitalCartPopup").slideUp("150")}function HidePopups(){$("#SearchPopup").slideUp("300")}function ShowBookshelfPopup(n,t,i){$(n).css("top",t);$(n).css("left",i);$(n).fadeIn("medium")}function HideBookshelfPopup(n){$(n).fadeOut("medium");$(".BookshelfPopup").fadeOut("medium");$(".BookshelfPopupEAudio").fadeOut("medium")}function OnBulletClick(n){document.getElementById("cat"+n).innerHTML=="-"?(document.getElementById("list"+n).style.display="none",document.getElementById("cat"+n).innerHTML="+"):(document.getElementById("list"+n).style.display="block",document.getElementById("cat"+n).innerHTML="-")}function ShowVideoPlayer(){$(".PGeBookIntroVideo").fadeIn("slow")}function HideVideoPlayer(){$(".PGeBookIntroVideo").fadeOut("slow")}function SliderAnimate(n){var t=n.width(),i=n.parent().width();n.css("margin-left")=="0px"?n.animate({"margin-left":i-t},"slow"):parseInt(n.css("margin-left"))>1e3?n.css("margin-left",0):n.animate({"margin-left":0},"slow")}function changeImages(){if(document.images)for(var n=0;n<changeImages.arguments.length;n+=2)document[changeImages.arguments[n]].src=changeImages.arguments[n+1]}function getParameterByName(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function QuickEmailSignupSubmit(){if($("#QuickSignupError").hide(),QuickSignupForm.checkValidity()){var n=$("#QuickSignupFirstName").val(),t=$("#QuickSignupLastName").val(),i=$("#QuickSignupEmailAddress").val();return WordWebService.QuickEmailSignup(n,t,i,QuickEmailSignupComplete,QuickEmailSignupError,QuickEmailSignupTimeout),!1}QuickSignupForm.querySelector('input[type="submit"]').click()}function QuickEmailSignupComplete(n){n.Success?($("#QuickSignupSuccess").show(),$("#QuickSignupForm").hide(),$(".modal-footer").html("<p>Close<\/p>")):($("#QuickSignupError").html(n.ErrorMessage+"<br />"),$("#QuickSignupError").show())}function QuickEmailSignupError(){$("#QuickSignupError").html("An unknown error has occurred. Please try again later.<br />");$("#QuickSignupError").show()}function QuickEmailSignupTimeout(){$("#QuickSignupError").html("Timeout error occurred. Please check your internet connection.<br />");$("#QuickSignupError").show()}var currentTimer,currentElement,cartQty,gaJsHost,pageTracker,isNewsTickerAutoEnabled,currentSearchText,productGroupID,disableNextEnterKeyPress,errorText,currentSearchQueryURL,searchPageResults,searchPageNavigator,searchPageSortBy,dateLastCartRefresh,WordWebService,_ouibounce;jQuery.fn.extend({everyTime:function(n,t,i,r){return this.each(function(){jQuery.timer.add(this,n,t,i,r)})},oneTime:function(n,t,i){return this.each(function(){jQuery.timer.add(this,n,t,i,1)})},stopTime:function(n,t){return this.each(function(){jQuery.timer.remove(this,n,t)})}});jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1e3,das:1e4,hs:1e5,ks:1e6},timeParse:function(n){var t,i,r;return n==undefined||n==null?null:(t=this.regex.exec(jQuery.trim(n.toString())),t[2]?(i=parseFloat(t[1]),r=this.powers[t[2]]||1,i*r):n)},add:function(n,t,i,r,u){var o=0,f,e;(jQuery.isFunction(i)&&(u||(u=r),r=i,i=t),t=jQuery.timer.timeParse(t),typeof t!="number"||isNaN(t)||t<0)||((typeof u!="number"||isNaN(u)||u<0)&&(u=0),u=u||0,f=jQuery.data(n,this.dataKey)||jQuery.data(n,this.dataKey,{}),f[i]||(f[i]={}),r.timerID=r.timerID||this.guid++,e=function(){(++o>u&&u!==0||r.call(n,o)===!1)&&jQuery.timer.remove(n,i,r)},e.timerID=r.timerID,f[i][r.timerID]||(f[i][r.timerID]=window.setInterval(e,t)),this.global.push(n))},remove:function(n,t,i){var r=jQuery.data(n,this.dataKey),u,i;if(r){if(t){if(r[t]){if(i)i.timerID&&(window.clearInterval(r[t][i.timerID]),delete r[t][i.timerID]);else for(i in r[t])window.clearInterval(r[t][i]),delete r[t][i];for(u in r[t])break;u||(u=null,delete r[t])}}else for(t in r)this.remove(n,t,i);for(u in r)break;u||jQuery.removeData(n,this.dataKey)}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(n,t){jQuery.timer.remove(t)})}),function(n){function o(n){var i,f,t,r;if(n in u.style||(i=["Moz","Webkit","O","ms"],f=n.charAt(0).toUpperCase()+n.substr(1),n in u.style))return n;for(t=0;t<i.length;++t)if(r=i[t]+f,r in u.style)return r}function v(){return u.style[t.transform]="",u.style[t.transform]="rotateY(90deg)",u.style[t.transform]!==""}function f(n){return typeof n=="string"&&this.parse(n),this}function c(n,t,i){t===!0?n.queue(i):t?n.queue(t,i):i()}function y(t){var i=[];return n.each(t,function(t){t=n.camelCase(t);t=n.transit.propertyMap[t]||n.cssProps[t]||t;t=p(t);n.inArray(t,i)===-1&&i.push(t)}),i}function l(t,i,r,u){var o=y(t),f,e;return n.cssEase[r]&&(r=n.cssEase[r]),f=""+h(i)+" "+r,parseInt(u,10)>0&&(f+=" "+h(u)),e=[],n.each(o,function(n,t){e.push(t+" "+f)}),e.join(", ")}function i(i,r){r||(n.cssNumber[i]=!0);n.transit.propertyMap[i]=t.transform;n.cssHooks[i]={get:function(t){var r=n(t).css("transit:transform");return r.get(i)},set:function(t,r){var u=n(t).css("transit:transform");u.setFromString(i,r);n(t).css({"transit:transform":u})}}}function p(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function r(n,t){return typeof n!="string"||n.match(/^[\-0-9\.]+$/)?""+n+t:n}function h(t){var i=t;return typeof i!="string"||i.match(/^[\-0-9\.]+/)||(i=n.fx.speeds[i]||n.fx.speeds._default),r(i,"ms")}var a,s,e;n.transit={version:"0.9.9",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var u=document.createElement("div"),t={},w=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;t.transition=o("transition");t.transitionDelay=o("transitionDelay");t.transform=o("transform");t.transformOrigin=o("transformOrigin");t.transform3d=v();a={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};s=t.transitionEnd=a[t.transition]||null;for(e in t)t.hasOwnProperty(e)&&typeof n.support[e]=="undefined"&&(n.support[e]=t[e]);u=null;n.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.55, .055, .675, .19)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};n.cssHooks["transit:transform"]={get:function(t){return n(t).data("transform")||new f},set:function(i,r){var u=r;u instanceof f||(u=new f(u));i.style[t.transform]=t.transform!=="WebkitTransform"||w?u.toString():u.toString(!0);n(i).data("transform",u)}};n.cssHooks.transform={set:n.cssHooks["transit:transform"].set};n.fn.jquery<"1.8"&&(n.cssHooks.transformOrigin={get:function(n){return n.style[t.transformOrigin]},set:function(n,i){n.style[t.transformOrigin]=i}},n.cssHooks.transition={get:function(n){return n.style[t.transition]},set:function(n,i){n.style[t.transition]=i}});i("scale");i("translate");i("rotate");i("rotateX");i("rotateY");i("rotate3d");i("perspective");i("skewX");i("skewY");i("x",!0);i("y",!0);f.prototype={setFromString:function(n,t){var i=typeof t=="string"?t.split(","):t.constructor===Array?t:[t];i.unshift(n);f.prototype.set.apply(this,i)},set:function(n){var t=Array.prototype.slice.apply(arguments,[1]);this.setter[n]?this.setter[n].apply(this,t):this[n]=t.join(",")},get:function(n){return this.getter[n]?this.getter[n].apply(this):this[n]||0},setter:{rotate:function(n){this.rotate=r(n,"deg")},rotateX:function(n){this.rotateX=r(n,"deg")},rotateY:function(n){this.rotateY=r(n,"deg")},scale:function(n,t){t===undefined&&(t=n);this.scale=n+","+t},skewX:function(n){this.skewX=r(n,"deg")},skewY:function(n){this.skewY=r(n,"deg")},perspective:function(n){this.perspective=r(n,"px")},x:function(n){this.set("translate",n,null)},y:function(n){this.set("translate",null,n)},translate:function(n,t){this._translateX===undefined&&(this._translateX=0);this._translateY===undefined&&(this._translateY=0);n!==null&&n!==undefined&&(this._translateX=r(n,"px"));t!==null&&t!==undefined&&(this._translateY=r(t,"px"));this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var n=(this.scale||"1,1").split(",");return n[0]&&(n[0]=parseFloat(n[0])),n[1]&&(n[1]=parseFloat(n[1])),n[0]===n[1]?n[0]:n},rotate3d:function(){for(var n=(this.rotate3d||"0,0,0,0deg").split(","),t=0;t<=3;++t)n[t]&&(n[t]=parseFloat(n[t]));return n[3]&&(n[3]=r(n[3],"deg")),n}},parse:function(n){var t=this;n.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(n,i,r){t.setFromString(i,r)})},toString:function(n){var r=[];for(var i in this)if(this.hasOwnProperty(i)){if(!t.transform3d&&(i==="rotateX"||i==="rotateY"||i==="perspective"||i==="transformOrigin"))continue;i[0]!=="_"&&(n&&i==="scale"?r.push(i+"3d("+this[i]+",1)"):n&&i==="translate"?r.push(i+"3d("+this[i]+",0)"):r.push(i+"("+this[i]+")"))}return r.join(" ")}};n.fn.transition=n.fn.transit=function(i,r,u,f){var o=this,v=0,y=!0,e=n.extend(!0,{},i),p;typeof r=="function"&&(f=r,r=undefined);typeof r=="object"&&(u=r.easing,v=r.delay||0,y=r.queue||!0,f=r.complete,r=r.duration);typeof u=="function"&&(f=u,u=undefined);typeof e.easing!="undefined"&&(u=e.easing,delete e.easing);typeof e.duration!="undefined"&&(r=e.duration,delete e.duration);typeof e.complete!="undefined"&&(f=e.complete,delete e.complete);typeof e.queue!="undefined"&&(y=e.queue,delete e.queue);typeof e.delay!="undefined"&&(v=e.delay,delete e.delay);typeof r=="undefined"&&(r=n.fx.speeds._default);typeof u=="undefined"&&(u=n.cssEase._default);r=h(r);var w=l(e,r,u,v),b=n.transit.enabled&&t.transition,a=b?parseInt(r,10)+parseInt(v,10):0;if(a===0)return p=function(n){o.css(e);f&&f.apply(o);n&&n()},c(o,y,p),o;var k={},d=function(r){var e=!1,u=function(){e&&o.unbind(s,u);a>0&&o.each(function(){this.style[t.transition]=k[this]||null});typeof f=="function"&&f.apply(o);typeof r=="function"&&r()};a>0&&s&&n.transit.useTransitionEnd?(e=!0,o.bind(s,u)):window.setTimeout(u,a);o.each(function(){a>0&&(this.style[t.transition]=w);n(this).css(i)})},g=function(n){this.offsetWidth;d(n)};return c(o,y,g),this};n.transit.getTransitionValue=l}(jQuery),function(n){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}});n.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};n.expr[":"].uncached=function(t){var i=document.createElement("img");return i.src=t.src,n(t).is('img[src!=""]')&&!i.complete};n.fn.waitForImages=function(t,i,r){if(n.isPlainObject(arguments[0])&&(i=t.each,r=t.waitForAll,t=t.finished),t=t||n.noop,i=i||n.noop,r=!!r,!n.isFunction(t)||!n.isFunction(i))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var f=n(this),u=[],s,h,e,o;r?(s=n.waitForImages.hasImageProperties||[],h=/url\((['"]?)(.*?)\1\)/g,f.find("*").each(function(){var t=n(this);t.is("img:uncached")&&u.push({src:t.attr("src"),element:t[0]});n.each(s,function(n,i){var r=t.css(i),f;if(!r)return!0;while(f=h.exec(r))u.push({src:f[2],element:t[0]})})})):f.find("img:uncached").each(function(){u.push({src:this.src,element:this})});e=u.length;o=0;e==0&&t.call(f[0]);n.each(u,function(r,u){var s=new Image;n(s).bind("load error",function(n){return o++,i.call(u.element,o,e,n.type=="load"),o==e?(t.call(f[0]),!1):void 0});s.src=u.src})})};n.fn.swipe=function(t){if(!this)return!1;var i={fingers:1,threshold:75,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,click:null,triggerOnTouchEnd:!0,allowPageScroll:"auto"},e="left",s="right",h="up",c="down",l="none",a="horizontal",v="vertical",b="auto",k="start",y="move",o="end",f="cancel",u="ontouchstart"in window,d=u?"touchstart":"mousedown",p=u?"touchmove":"mousemove",w=u?"touchend":"mouseup",g="touchcancel",r="start";return t.allowPageScroll==undefined&&(t.swipe!=undefined||t.swipeStatus!=undefined)&&(t.allowPageScroll=l),t&&n.extend(i,t),this.each(function(){function et(){var n=lt();return n<=45&&n>=0?e:n<=360&&n>=315?e:n>=135&&n<=225?s:n>45&&n<135?c:h}function lt(){var i=it.x-t.x,r=t.y-it.y,u=Math.atan2(r,i),n=Math.round(u*180/Math.PI);return n<0&&(n=360-Math.abs(n)),n}function ot(){return Math.round(Math.sqrt(Math.pow(t.x-it.x,2)+Math.pow(t.y-it.y,2)))}function at(n,t){if(i.allowPageScroll==l)n.preventDefault();else{var r=i.allowPageScroll==b;switch(t){case e:(i.swipeLeft&&r||!r&&i.allowPageScroll!=a)&&n.preventDefault();break;case s:(i.swipeRight&&r||!r&&i.allowPageScroll!=a)&&n.preventDefault();break;case h:(i.swipeUp&&r||!r&&i.allowPageScroll!=v)&&n.preventDefault();break;case c:(i.swipeDown&&r||!r&&i.allowPageScroll!=v)&&n.preventDefault()}}}function nt(n,t){if(i.swipeStatus&&i.swipeStatus.call(rt,n,t,direction||null,distance||0),t==f&&i.click&&(ut==1||!u)&&(isNaN(distance)||distance==0)&&i.click.call(rt,n,n.target),t==o){i.swipe&&i.swipe.call(rt,n,direction,distance);switch(direction){case e:i.swipeLeft&&i.swipeLeft.call(rt,n,direction,distance);break;case s:i.swipeRight&&i.swipeRight.call(rt,n,direction,distance);break;case h:i.swipeUp&&i.swipeUp.call(rt,n,direction,distance);break;case c:i.swipeDown&&i.swipeDown.call(rt,n,direction,distance)}}}function tt(){ut=0;it.x=0;it.y=0;t.x=0;t.y=0;ct.x=0;ct.y=0}function st(n){n.preventDefault();distance=ot();direction=et();i.triggerOnTouchEnd?(r=o,ut!=i.fingers&&u||t.x==0?(r=f,nt(n,r),tt(n)):distance>=i.threshold?(nt(n,r),tt(n)):(r=f,nt(n,r),tt(n))):r==y&&(r=f,nt(n,r),tt(n));ft.removeEventListener(p,ht,!1);ft.removeEventListener(w,st,!1)}function ht(n){if(r!=o&&r!=f){var e=u?n.touches[0]:n;t.x=e.pageX;t.y=e.pageY;direction=et();u&&(ut=n.touches.length);r=y;at(n,direction);ut!=i.fingers&&u?(r=f,nt(n,r),tt(n)):(distance=ot(),i.swipeStatus&&nt(n,r,direction,distance),i.triggerOnTouchEnd||distance>=i.threshold&&(r=o,nt(n,r),tt(n)))}}function vt(n){var f=u?n.touches[0]:n;r=k;u&&(ut=n.touches.length);distance=0;direction=null;ut!=i.fingers&&u?tt(n):(it.x=t.x=f.pageX,it.y=t.y=f.pageY,i.swipeStatus&&nt(n,r));ft.addEventListener(p,ht,!1);ft.addEventListener(w,st,!1)}var ft=this,rt=n(this),ut=0,it={x:0,y:0},t={x:0,y:0},ct={x:0,y:0};try{this.addEventListener(d,vt,!1);this.addEventListener(g,tt)}catch(yt){}})}}(jQuery),function(n,t){function ft(n){for(var u=[],i,r=window.location.href.slice(window.location.href.indexOf(n)+1).split("_"),t=0;t<r.length;t++)r[t]=r[t].replace("%3D","="),i=r[t].split("="),u.push(i[0]),u[i[0]]=i[1];return u}function et(i,r){i.find(".defaultimg").each(function(){var f=n(this),e,s,h;(f.data("lazyload")!=t&&f.data("lazydone")==1||f.data("lazyload")===t)&&o(f,r);r.height=Math.round(r.startheight*(r.width/r.startwidth));i.height(r.height);(f.data("lazyload")!=t&&f.data("lazydone")==1||f.data("lazyload")===t)&&o(f,r);try{i.parent().find(".tp-bannershadow").css({width:r.width})}catch(c){}e=i.find(">ul >li:eq("+r.act+") .slotholder");s=i.find(">ul >li:eq("+r.next+") .slotholder");u(i,r);s.find(".defaultimg").css({opacity:0});e.find(".defaultimg").css({opacity:1});ht(i,r);h=i.find(">ul >li:eq("+r.next+")");i.find(".tp-caption").each(function(){n(this).stop(!0,!0)});it(h,r);b(r,i)})}function ot(){var n=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],t=!1;for(i in n)navigator.userAgent.split(n[i]).length>1&&(t=!0);return t}function b(n,t){if(n.cd=0,n.videoplaying!=!0){var i=t.find(".tp-bannertimer");i.length>0&&(i.stop(),i.css({width:"0%"}),i.animate({width:"100%"},{duration:n.delay-100,queue:!1,easing:"linear"}));clearTimeout(n.thumbtimer);n.thumbtimer=setTimeout(function(){r(t);h(t,n)},200)}}function st(n,t){n.cd=0;var i=t.find(".tp-bannertimer");i.length>0&&(i.stop(!0,!0),i.css({width:"0%"}));clearTimeout(n.thumbtimer)}function s(n,t){n.cd=0;c(t,n);var i=t.find(".tp-bannertimer");i.length>0&&(i.stop(),i.css({width:"0%"}),i.animate({width:"100%"},{duration:n.delay-100,queue:!1,easing:"linear"}))}function l(i,u){var h=i.parent(),f,e,o,c,l;(u.navigationType=="thumb"||u.navsecond=="both")&&h.append('<div class="tp-bullets tp-thumbs '+u.navigationStyle+'"><div class="tp-mask"><div class="tp-thumbcontainer"><\/div><\/div><\/div>');f=h.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");e=f.parent();e.width(u.thumbWidth*u.thumbAmount);e.height(u.thumbHeight);e.parent().width(u.thumbWidth*u.thumbAmount);e.parent().height(u.thumbHeight);i.find(">ul:first >li").each(function(n){var r=i.find(">ul:first >li:eq("+n+")"),u,e;u=r.data("thumb")!=t?r.data("thumb"):r.find("img:first").attr("src");f.append('<div class="bullet thumb"><img src="'+u+'"><\/div>');e=f.find(".bullet:first")});o=100;f.find(".bullet").each(function(t){var r=n(this);t==u.slideamount-1&&r.addClass("last");t==0&&r.addClass("first");r.width(u.thumbWidth);r.height(u.thumbHeight);o>r.outerWidth(!0)&&(o=r.outerWidth(!0));r.click(function(){u.transition==0&&r.index()!=u.act&&(u.next=r.index(),s(u,i))})});c=o*i.find(">ul:first >li").length;l=f.parent().width();u.thumbWidth=o;l<c&&(n(document).mousemove(function(t){n("body").data("mousex",t.pageX)}),f.parent().mouseenter(function(){var r=n(this),t;r.addClass("over");var o=r.offset(),f=n("body").data("mousex")-o.left,u=r.width(),s=r.find(".bullet:first").outerWidth(!0),e=s*i.find(">ul:first >li").length,h=e-u+15,c=h/u;f=f-30;t=0-f*c;t>0&&(t=0);t<0-e+u&&(t=0-e+u);a(r,t,200)}),f.parent().mousemove(function(){var r=n(this),o=r.offset(),f=n("body").data("mousex")-o.left,u=r.width(),s=r.find(".bullet:first").outerWidth(!0),e=s*i.find(">ul:first >li").length,h=e-u+15,c=h/u,t;f=f-30;t=0-f*c;t>0&&(t=0);t<0-e+u&&(t=0-e+u);a(r,t,0)}),f.parent().mouseleave(function(){var t=n(this);t.removeClass("over");r(i)}))}function r(n){var e=n.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),t=e.parent(),h=t.offset(),f=t.find(".bullet:first").outerWidth(!0),o=t.find(".bullet.selected").index()*f,r=t.width(),f=t.find(".bullet:first").outerWidth(!0),u=f*n.find(">ul:first >li").length,s=u-r,c=s/r,i=0-o;i>0&&(i=0);i<0-u+r&&(i=0-u+r);t.hasClass("over")||a(t,i,200)}function a(n,t,i){n.stop();n.find(".tp-thumbcontainer").animate({left:t+"px"},{duration:i,queue:!1})}function v(t,i){(i.navigationType=="bullet"||i.navigationType=="both")&&t.parent().append('<div class="tp-bullets simplebullets '+i.navigationStyle+'"><\/div>');var r=t.parent().find(".tp-bullets");t.find(">ul:first >li").each(function(n){var u=t.find(">ul:first >li:eq("+n+") img:first").attr("src"),i;r.append('<div class="bullet"><\/div>');i=r.find(".bullet:first")});r.find(".bullet").each(function(r){var u=n(this);r==i.slideamount-1&&u.addClass("last");r==0&&u.addClass("first");u.click(function(){var n=!1;i.navigationArrows=="withbullet"||i.navigationArrows=="nexttobullets"?u.index()-1==i.act&&(n=!0):u.index()==i.act&&(n=!0);i.transition!=0||n||(i.next=i.navigationArrows=="withbullet"||i.navigationArrows=="nexttobullets"?u.index()-1:u.index(),s(i,t))})});r.append('<div class="tpclear"><\/div>');h(t,i)}function y(n,i){var f=n.find(".tp-bullets"),r="",u=i.navigationStyle;i.navigationArrows=="none"&&(r="visibility:none");i.soloArrowStyle="default";i.navigationArrows!="none"&&i.navigationArrows!="nexttobullets"&&(u=i.soloArrowStyle);n.parent().append('<div style="'+r+'" class="tp-leftarrow tparrows '+u+'"><\/div>');n.parent().append('<div style="'+r+'" class="tp-rightarrow tparrows '+u+'"><\/div>');n.parent().find(".tp-rightarrow").click(function(){i.transition==0&&(i.next=n.data("showus")!=t&&n.data("showus")!=-1?n.data("showus")-1:i.next+1,n.data("showus",-1),i.next>=i.slideamount&&(i.next=0),i.next<0&&(i.next=0),i.act!=i.next&&s(i,n))});n.parent().find(".tp-leftarrow").click(function(){i.transition==0&&(i.next=i.next-1,i.leftarrowpressed=1,i.next<0&&(i.next=i.slideamount-1),s(i,n))});h(n,i)}function k(n,t){t.touchenabled=="on"&&n.swipe({data:n,swipeRight:function(){t.transition==0&&(t.next=t.next-1,t.leftarrowpressed=1,t.next<0&&(t.next=t.slideamount-1),s(t,n))},swipeLeft:function(){t.transition==0&&(t.next=t.next+1,t.next==t.slideamount&&(t.next=0),s(t,n))},allowPageScroll:"auto"})}function d(n,t){var i=n.parent().find(".tp-bullets"),r=n.parent().find(".tparrows");i==null&&(n.append('<div class=".tp-bullets"><\/div>'),i=n.parent().find(".tp-bullets"));r==null&&(n.append('<div class=".tparrows"><\/div>'),r=n.parent().find(".tparrows"));n.data("hidethumbs",t.hideThumbs);i.addClass("hidebullets");r.addClass("hidearrows");i.hover(function(){i.addClass("hovered");clearTimeout(n.data("hidethumbs"));i.removeClass("hidebullets");r.removeClass("hidearrows")},function(){i.removeClass("hovered");n.hasClass("hovered")||i.hasClass("hovered")||n.data("hidethumbs",setTimeout(function(){i.addClass("hidebullets");r.addClass("hidearrows")},t.hideThumbs))});r.hover(function(){i.addClass("hovered");clearTimeout(n.data("hidethumbs"));i.removeClass("hidebullets");r.removeClass("hidearrows")},function(){i.removeClass("hovered")});n.on("mouseenter",function(){n.addClass("hovered");clearTimeout(n.data("hidethumbs"));i.removeClass("hidebullets");r.removeClass("hidearrows")});n.on("mouseleave",function(){n.removeClass("hovered");n.hasClass("hovered")||i.hasClass("hovered")||n.data("hidethumbs",setTimeout(function(){i.addClass("hidebullets");r.addClass("hidearrows")},t.hideThumbs))})}function h(n,t){var f=n.parent(),u=f.find(".tp-bullets"),i=f.find(".tp-leftarrow"),r=f.find(".tp-rightarrow");t.navigationType=="thumb"&&t.navigationArrows=="nexttobullets"&&(t.navigationArrows="solo");t.navigationArrows=="nexttobullets"&&(i.prependTo(u).css({float:"left"}),r.insertBefore(u.find(".tpclear")).css({float:"left"}));t.navigationArrows!="none"&&t.navigationArrows!="nexttobullets"&&(i.css({position:"absolute"}),r.css({position:"absolute"}),t.soloArrowLeftValign=="center"&&i.css({top:"50%",marginTop:t.soloArrowLeftVOffset-Math.round(i.innerHeight()/2)+"px"}),t.soloArrowLeftValign=="bottom"&&i.css({top:"auto",bottom:0+t.soloArrowLeftVOffset+"px"}),t.soloArrowLeftValign=="top"&&i.css({bottom:"auto",top:0+t.soloArrowLeftVOffset+"px"}),t.soloArrowLeftHalign=="center"&&i.css({left:"50%",marginLeft:t.soloArrowLeftHOffset-Math.round(i.innerWidth()/2)+"px"}),t.soloArrowLeftHalign=="left"&&i.css({left:0+t.soloArrowLeftHOffset+"px"}),t.soloArrowLeftHalign=="right"&&i.css({right:0+t.soloArrowLeftHOffset+"px"}),t.soloArrowRightValign=="center"&&r.css({top:"50%",marginTop:t.soloArrowRightVOffset-Math.round(r.innerHeight()/2)+"px"}),t.soloArrowRightValign=="bottom"&&r.css({top:"auto",bottom:0+t.soloArrowRightVOffset+"px"}),t.soloArrowRightValign=="top"&&r.css({bottom:"auto",top:0+t.soloArrowRightVOffset+"px"}),t.soloArrowRightHalign=="center"&&r.css({left:"50%",marginLeft:t.soloArrowRightHOffset-Math.round(r.innerWidth()/2)+"px"}),t.soloArrowRightHalign=="left"&&r.css({left:0+t.soloArrowRightHOffset+"px"}),t.soloArrowRightHalign=="right"&&r.css({right:0+t.soloArrowRightHOffset+"px"}),i.position()!=null&&i.css({top:Math.round(parseInt(i.position().top,0))+"px"}),r.position()!=null&&r.css({top:Math.round(parseInt(r.position().top,0))+"px"}));t.navigationArrows=="none"&&(i.css({visibility:"hidden"}),r.css({visibility:"hidden"}));t.navigationVAlign=="center"&&u.css({top:"50%",marginTop:t.navigationVOffset-Math.round(u.innerHeight()/2)+"px"});t.navigationVAlign=="bottom"&&u.css({bottom:0+t.navigationVOffset+"px"});t.navigationVAlign=="top"&&u.css({top:0+t.navigationVOffset+"px"});t.navigationHAlign=="center"&&u.css({left:"50%",marginLeft:t.navigationHOffset-Math.round(u.innerWidth()/2)+"px"});t.navigationHAlign=="left"&&u.css({left:0+t.navigationHOffset+"px"});t.navigationHAlign=="right"&&u.css({right:0+t.navigationHOffset+"px"})}function o(i,r){var o,s,h,e;if(r.width=parseInt(r.container.width(),0),r.height=parseInt(r.container.height(),0),r.bw=r.width/r.startwidth,r.fullScreen=="on"&&(r.height=r.bw*r.startheight),r.bh=r.height/r.startheight,r.bh>1&&(r.bh=1,r.bw=1),(i.data("lazyload")!=t&&i.data("lazydone")==1||i.data("lazyload")===t)&&i.data("orgw")!=t&&i.data("orgw")!=0&&(i.width(i.data("orgw")),i.height(i.data("orgh"))),o=r.width/i.width(),s=r.height/i.height(),r.fw=o,r.fh=s,(i.data("lazyload")!=t&&i.data("lazydone")==1||i.data("lazyload")===t)&&(i.data("orgw")==t||i.data("orgw")==0)&&(i.data("orgw",i.width()),i.data("orgh",i.height())),r.fullWidth=="on"&&r.fullScreen!="on"){var f=r.container.parent().width(),u=r.container.parent().height(),h=u/i.data("orgh"),e=f/i.data("orgw");(i.data("lazyload")!=t&&i.data("lazydone")==1||i.data("lazyload")===t)&&(i.width(i.width()*h),i.height(u));i.width()<f&&(i.width(f+50),e=i.width()/i.data("orgw"),i.height(i.data("orgh")*e));i.width()>f&&(i.data("fxof",f/2-i.width()/2),i.css({position:"absolute",left:i.data("fxof")+"px"}));i.height()<=u&&(i.data("fyof",0),i.data("fxof",f/2-i.width()/2),i.css({position:"absolute",top:i.data("fyof")+"px",left:i.data("fxof")+"px"}));i.height()>u&&i.data("fullwidthcentering")=="on"&&(i.data("fyof",u/2-i.height()/2),i.data("fxof",f/2-i.width()/2),i.css({position:"absolute",top:i.data("fyof")+"px",left:i.data("fxof")+"px"}))}else if(r.fullScreen=="on"){var f=r.container.parent().width(),u=n(window).height(),c=u/2-r.startheight*r.bh/2;if(c<0&&(u=r.startheight*r.bh),r.fullScreenOffsetContainer!=t)try{u=u-n(r.fullScreenOffsetContainer).outerHeight(!0)}catch(l){}r.container.parent().height(u);r.container.css({height:"100%"});r.height=u;h=u/i.data("orgh");e=f/i.data("orgw");(i.data("lazyload")!=t&&i.data("lazydone")==1||i.data("lazyload")===t)&&(i.width(i.width()*h),i.height(u));i.width()<f&&(i.width(f+50),e=i.width()/i.data("orgw"),i.height(i.data("orgh")*e));i.width()>f&&(i.data("fxof",f/2-i.width()/2),i.css({position:"absolute",left:i.data("fxof")+"px"}));i.height()<=u&&(i.data("fyof",0),i.data("fxof",f/2-i.width()/2),i.css({position:"absolute",top:i.data("fyof")+"px",left:i.data("fxof")+"px"}));i.height()>u&&i.data("fullwidthcentering")=="on"&&(i.data("fyof",u/2-i.height()/2),i.data("fxof",f/2-i.width()/2),i.css({position:"absolute",top:i.data("fyof")+"px",left:i.data("fxof")+"px"}))}else(i.data("lazyload")!=t&&i.data("lazydone")==1||i.data("lazyload")===t)&&(i.width(r.width),i.height(i.height()*o)),i.height()<r.height&&i.height()!=0&&i.height()!=null&&(i.data("lazyload")!=t&&i.data("lazydone")==1||i.data("lazyload")===t)&&(i.height(r.height),i.width(i.data("orgw")*s));(i.data("lazyload")!=t&&i.data("lazydone")==1||i.data("lazyload")===t)&&(i.data("neww",i.width()),i.data("newh",i.height()));r.slotw=r.fullWidth=="on"?Math.ceil(i.width()/r.slots):Math.ceil(r.width/r.slots);r.sloth=r.fullSreen=="on"?Math.ceil(n(window).height()/r.slots):Math.ceil(r.height/r.slots)}function g(i,r){i.find(".tp-caption").each(function(){n(this).addClass(n(this).data("transition"));n(this).addClass("start")});i.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:i.parent().css("maxHeight")});i.find(">ul:first >li").each(function(){var i=n(this),r;if(i.css({width:"100%",height:"100%",overflow:"hidden"}),i.data("link")!=t){var f=i.data("link"),e="_self",u=2;i.data("slideindex")=="back"&&(u=0);r=i.data("linktoslide");i.data("target")!=t&&(e=i.data("target"));f=="slide"?i.append('<div class="tp-caption sft slidelink" style="z-index:'+u+';" data-x="0" data-y="0" data-linktoslide="'+r+'" data-start="0"><a><div><\/div><\/a><\/div>'):(r="no",i.append('<div class="tp-caption sft slidelink" style="z-index:'+u+';" data-x="0" data-y="0" data-linktoslide="'+r+'" data-start="0"><a target="'+e+'" href="'+f+'"><div><\/div><\/a><\/div>'))}});i.parent().css({overflow:"visible"});i.find(">ul:first >li >img").each(function(i){var u=n(this);u.addClass("defaultimg");u.data("lazyload")!=t&&u.data("lazydone")!=1||(o(u,r),o(u,r));u.wrap('<div class="slotholder"><\/div>');u.css({opacity:0});u.data("li-id",i)})}function f(n,i,r){var l=n,u=l.find("img"),e,c,f;o(u,i);var a=u.attr("src"),v=u.css("background-color"),y=u.data("neww"),s=u.data("newh"),h=u.data("fxof");for(h==t&&(h=0),e=u.data("fyof"),(u.data("fullwidthcentering")!="on"||e==t)&&(e=0),c=0,r||(c=0-i.slotw),f=0;f<i.slots;f++)l.append('<div class="slot" style="position:absolute;top:'+(0+e)+"px;left:"+(h+f*i.slotw)+"px;overflow:hidden;width:"+i.slotw+"px;height:"+s+'px"><div class="slotslide" style="position:absolute;top:0px;left:'+c+"px;width:"+i.slotw+"px;height:"+s+'px;overflow:hidden;"><img style="background-color:'+v+";position:absolute;top:0px;left:"+(0-f*i.slotw)+"px;width:"+y+"px;height:"+s+'px" src="'+a+'"><\/div><\/div>')}function e(n,i,r){var l=n,u=l.find("img"),e,c,f;o(u,i);var a=u.attr("src"),v=u.css("background-color"),s=u.data("neww"),y=u.data("newh"),h=u.data("fxof");for(h==t&&(h=0),e=u.data("fyof"),(u.data("fullwidthcentering")!="on"||e==t)&&(e=0),c=0,r||(c=0-i.sloth),f=0;f<i.slots+2;f++)l.append('<div class="slot" style="position:absolute;top:'+(e+f*i.sloth)+"px;left:"+h+"px;overflow:hidden;width:"+s+"px;height:"+i.sloth+'px"><div class="slotslide" style="position:absolute;top:'+c+"px;left:0px;width:"+s+"px;height:"+i.sloth+'px;overflow:hidden;"><img style="position:absolute;background-color:'+v+";top:"+(0-f*i.sloth)+"px;left:0px;width:"+s+"px;height:"+y+'px" src="'+a+'"><\/div><\/div>')}function p(n,i,r){var v=n,f=v.find("img"),h,u,y,s,e,l,a;o(f,i);var p=f.attr("src"),w=f.css("background-color"),b=f.data("neww"),k=f.data("newh"),c=f.data("fxof");for(c==t&&(c=0),h=f.data("fyof"),(f.data("fullwidthcentering")!="on"||h==t)&&(h=0),y=0,u=0,u=i.sloth>i.slotw?i.sloth:i.slotw,r||(y=0-u),i.slotw=u,i.sloth=u,s=0,e=0,l=0;l<i.slots;l++){for(e=0,a=0;a<i.slots;a++)v.append('<div class="slot" style="position:absolute;top:'+(h+e)+"px;left:"+(c+s)+"px;width:"+u+"px;height:"+u+'px;overflow:hidden;"><div class="slotslide" data-x="'+s+'" data-y="'+e+'" style="position:absolute;top:0px;left:0px;width:'+u+"px;height:"+u+'px;overflow:hidden;"><img style="position:absolute;top:'+(0-e)+"px;left:"+(0-s)+"px;width:"+b+"px;height:"+k+"pxbackground-color:"+w+';"src="'+p+'"><\/div><\/div>'),e=e+u;s=s+u}}function u(i,r,u){u==t&&u==80;setTimeout(function(){i.find(".slotholder .slot").each(function(){clearTimeout(n(this).data("tout"));n(this).remove()});r.transition=0},u)}function ht(n,t){var u=n.find(">li:eq("+t.act+")"),r=n.find(">li:eq("+t.next+")"),i=r.find(".tp-caption");i.find("iframe")==0&&(i.hasClass("hcenter")?i.css({height:t.height+"px",top:"0px",left:t.width/2-i.outerWidth()/2+"px"}):i.hasClass("vcenter")&&i.css({width:t.width+"px",left:"0px",top:t.height/2-i.outerHeight()/2+"px"}))}function c(n,i){var f,u,r;try{f=n.find(">ul:first-child >li:eq("+i.act+")")}catch(e){f=n.find(">ul:first-child >li:eq(1)")}i.lastslide=i.act;u=n.find(">ul:first-child >li:eq("+i.next+")");r=u.find(".defaultimg");r.data("lazyload")!=t&&r.data("lazydone")!=1?(r.attr("src",u.find(".defaultimg").data("lazyload")),r.data("orgw",0),n.find(".tp-loader").css({display:"block"}).transition({opacity:1,duration:300}),setTimeout(function(){st(i,n)},180),u.waitForImages(function(){r.data("lazydone",1);setTimeout(function(){b(i,n)},190);o(r,i);h(n,i);o(r,i);nt(n,i);n.find(".tp-loader").transition({opacity:0,duration:300});setTimeout(function(){n.find(".tp-loader").css({display:"none"})},2200)})):nt(n,i)}function nt(i,o){var v,y,g,l,nt,rt,b,w,ut,tt,ot,at,vt,ft;i.trigger("revolution.slide.onbeforeswap");o.transition=1;o.videoplaying=!1;try{v=i.find(">ul:first-child >li:eq("+o.act+")")}catch(pt){v=i.find(">ul:first-child >li:eq(1)")}o.lastslide=o.act;var s=i.find(">ul:first-child >li:eq("+o.next+")"),a=v.find(".slotholder"),h=s.find(".slotholder");v.css({visibility:"visible"});s.css({visibility:"visible"});o.ie&&(y=="boxfade"&&(y="boxslide"),y=="slotfade-vertical"&&(y="slotzoom-vertical"),y=="slotfade-horizontal"&&(y="slotzoom-horizontal"));s.data("delay")!=t?(o.cd=0,o.delay=s.data("delay")):o.delay=o.origcd;v.css({left:"0px",top:"0px"});s.css({left:"0px",top:"0px"});s.data("differentissplayed")=="prepared"&&(s.data("differentissplayed","done"),s.data("transition",s.data("savedtransition")),s.data("slotamount",s.data("savedslotamount")),s.data("masterspeed",s.data("savedmasterspeed")));s.data("fstransition")!=t&&s.data("differentissplayed")!="done"&&(s.data("savedtransition",s.data("transition")),s.data("savedslotamount",s.data("slotamount")),s.data("savedmasterspeed",s.data("masterspeed")),s.data("transition",s.data("fstransition")),s.data("slotamount",s.data("fsslotamount")),s.data("masterspeed",s.data("fsmasterspeed")),s.data("differentissplayed","prepared"));var c=0,et=s.data("transition").split(","),d=s.data("nexttransid");if(d==t?(d=0,s.data("nexttransid",d)):(d=d+1,d==et.length&&(d=0),s.data("nexttransid",d)),y=et[d],y=="boxslide"?c=0:y=="boxfade"?c=1:y=="slotslide-horizontal"?c=2:y=="slotslide-vertical"?c=3:y=="curtain-1"?c=4:y=="curtain-2"?c=5:y=="curtain-3"?c=6:y=="slotzoom-horizontal"?c=7:y=="slotzoom-vertical"?c=8:y=="slotfade-horizontal"?c=9:y=="slotfade-vertical"?c=10:y=="fade"?c=11:y=="slideleft"?c=12:y=="slideup"?c=13:y=="slidedown"?c=14:y=="slideright"?c=15:y=="papercut"?c=16:y=="3dcurtain-horizontal"?c=17:y=="3dcurtain-vertical"?c=18:y=="cubic"||y=="cube"?c=19:y=="flyin"?c=20:y=="turnoff"?c=21:(c=Math.round(Math.random()*21),s.data("slotamount",Math.round(Math.random()*12+4))),y=="random-static"&&(c=Math.round(Math.random()*16),c>15&&(c=15),c<0&&(c=0)),y=="random-premium"&&(c=Math.round(Math.random()*6+16),c>21&&(c=21),c<16&&(c=16)),g=-1,(o.leftarrowpressed==1||o.act>o.next)&&(g=1),y=="slidehorizontal"&&(c=12,o.leftarrowpressed==1&&(c=15)),y=="slidevertical"&&(c=13,o.leftarrowpressed==1&&(c=14)),o.leftarrowpressed=0,c>21&&(c=21),c<0&&(c=0),(o.ie||o.ie9)&&c>18&&(c=Math.round(Math.random()*16),s.data("slotamount",Math.round(Math.random()*12+4))),o.ie&&(c==17||c==16||c==2||c==3||c==9||c==10)&&(c=Math.round(Math.random()*3+12)),o.ie9&&c==3&&(c=4),l=300,s.data("masterspeed")!=t&&s.data("masterspeed")>99&&s.data("masterspeed")<4001&&(l=s.data("masterspeed")),i.parent().find(".bullet").each(function(){var t=n(this);t.removeClass("selected");o.navigationArrows=="withbullet"||o.navigationArrows=="nexttobullets"?t.index()-1==o.next&&t.addClass("selected"):t.index()==o.next&&t.addClass("selected")}),i.find(">li").each(function(){var t=n(this);t.index!=o.act&&t.index!=o.next&&t.css({"z-index":16})}),v.css({"z-index":18}),s.css({"z-index":20}),s.css({opacity:0}),v.index()!=s.index()&&yt(v,o),it(s,o),s.data("slotamount")==t||s.data("slotamount")<1?(o.slots=Math.round(Math.random()*12+4),y=="boxslide"&&(o.slots=Math.round(Math.random()*6+3))):o.slots=s.data("slotamount"),o.rotate=s.data("rotate")==t?0:s.data("rotate")==999?Math.round(Math.random()*360):s.data("rotate"),(!n.support.transition||o.ie||o.ie9)&&(o.rotate=0),o.firststart==1&&(v.css({opacity:0}),o.firststart=0),c==0&&(l=l+100,o.slots>10&&(o.slots=10),s.css({opacity:1}),p(a,o,!0),p(h,o,!1),h.find(".defaultimg").css({opacity:0}),h.find(".slotslide").each(function(t){var f=n(this);o.ie9?f.transition({top:0-o.sloth,left:0-o.slotw},0):f.transition({top:0-o.sloth,left:0-o.slotw,rotate:o.rotate},0);setTimeout(function(){f.transition({top:0,left:0,scale:1,rotate:0},l*1.5,function(){t==o.slots*o.slots-1&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})},t*15)})),c==1&&(o.slots>5&&(o.slots=5),s.css({opacity:1}),p(h,o,!1),h.find(".defaultimg").css({opacity:0}),h.find(".slotslide").each(function(t){var f=n(this),e;f.css({opacity:0});f.find("img").css({opacity:0});o.ie9?f.find("img").transition({top:Math.random()*o.slotw-o.slotw+"px",left:Math.random()*o.slotw-o.slotw+"px"},0):f.find("img").transition({top:Math.random()*o.slotw-o.slotw+"px",left:Math.random()*o.slotw-o.slotw+"px",rotate:o.rotate},0);e=Math.random()*1e3+(l+200);t==o.slots*o.slots-1&&(e=1500);f.find("img").transition({opacity:1,top:0-f.data("y")+"px",left:0-f.data("x")+"px",rotate:0},e);f.transition({opacity:1},e,function(){t==o.slots*o.slots-1&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})})),c==2&&(l=l+200,s.css({opacity:1}),f(a,o,!0),f(h,o,!1),h.find(".defaultimg").css({opacity:0}),a.find(".slotslide").each(function(){var t=n(this);t.transit({left:o.slotw+"px",rotate:0-o.rotate},l,function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.act=o.next;r(i)})}),h.find(".slotslide").each(function(){var t=n(this);o.ie9?t.transit({left:0-o.slotw+"px"},0):t.transit({left:0-o.slotw+"px",rotate:o.rotate},0);t.transit({left:"0px",rotate:0},l,function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.ie&&a.find(".defaultimg").css({opacity:1});o.act=o.next;r(i)})})),c==3&&(l=l+200,s.css({opacity:1}),e(a,o,!0),e(h,o,!1),h.find(".defaultimg").css({opacity:0}),a.find(".slotslide").each(function(){var t=n(this);t.transit({top:o.sloth+"px",rotate:o.rotate},l,function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.act=o.next;r(i)})}),h.find(".slotslide").each(function(){var t=n(this);o.ie9?t.transit({top:0-o.sloth+"px"},0):t.transit({top:0-o.sloth+"px",rotate:o.rotate},0);t.transit({top:"0px",rotate:0},l,function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.act=o.next;r(i)})})),c==4&&(s.css({opacity:1}),f(a,o,!0),f(h,o,!0),h.find(".defaultimg").css({opacity:0}),a.find(".defaultimg").css({opacity:0}),a.find(".slotslide").each(function(t){var i=n(this);i.transit({top:0+o.height+"px",opacity:1,rotate:o.rotate},l+t*(70-o.slots))}),h.find(".slotslide").each(function(t){var f=n(this);o.ie9?f.transition({top:0-o.height+"px",opacity:0},0):f.transition({top:0-o.height+"px",opacity:0,rotate:o.rotate},0);f.transition({top:"0px",opacity:1,rotate:0},l+t*(70-o.slots),function(){t==o.slots-1&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})})),c==5&&(s.css({opacity:1}),f(a,o,!0),f(h,o,!0),h.find(".defaultimg").css({opacity:0}),a.find(".defaultimg").css({opacity:0}),a.find(".slotslide").each(function(t){var i=n(this);i.transition({top:0+o.height+"px",opacity:1,rotate:o.rotate},l+(o.slots-t)*(70-o.slots))}),h.find(".slotslide").each(function(t){var f=n(this);o.ie9?f.transition({top:0-o.height+"px",opacity:0},0):f.transition({top:0-o.height+"px",opacity:0,rotate:o.rotate},0);f.transition({top:"0px",opacity:1,rotate:0},l+(o.slots-t)*(70-o.slots),function(){t==0&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})})),c==6&&(s.css({opacity:1}),o.slots<2&&(o.slots=2),f(a,o,!0),f(h,o,!0),h.find(".defaultimg").css({opacity:0}),a.find(".defaultimg").css({opacity:0}),a.find(".slotslide").each(function(t){var r=n(this),i;i=t<o.slots/2?(t+2)*60:(2+o.slots-t)*60;r.transition({top:0+o.height+"px",opacity:1},l+i)}),h.find(".slotslide").each(function(t){var f=n(this),e;o.ie9?f.transition({top:0-o.height+"px",opacity:0},0):f.transition({top:0-o.height+"px",opacity:0,rotate:o.rotate},0);e=t<o.slots/2?(t+2)*60:(2+o.slots-t)*60;f.transition({top:"0px",opacity:1,rotate:0},l+e,function(){t==Math.round(o.slots/2)&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})})),c==7&&(l=l*3,s.css({opacity:1}),f(a,o,!0),f(h,o,!0),h.find(".defaultimg").css({opacity:0}),a.find(".slotslide").each(function(){var t=n(this).find("img");t.transition({left:0-o.slotw/2+"px",top:0-o.height/2+"px",width:o.slotw*2+"px",height:o.height*2+"px",opacity:0,rotate:o.rotate},l,function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.act=o.next;r(i)})}),/						/,h.find(".slotslide").each(function(t){var f=n(this).find("img");o.ie9?f.transition({left:"0px",top:"0px",opacity:0},0):f.transition({left:"0px",top:"0px",opacity:0,rotate:o.rotate},0);f.transition({left:0-t*o.slotw+"px",top:"0px",width:h.find(".defaultimg").data("neww")+"px",height:h.find(".defaultimg").data("newh")+"px",opacity:1,rotate:0},l,function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.act=o.next;r(i)})})),c==8&&(l=l*3,s.css({opacity:1}),e(a,o,!0),e(h,o,!0),h.find(".defaultimg").css({opacity:0}),a.find(".slotslide").each(function(){var t=n(this).find("img");t.transition({left:0-o.width/2+"px",top:0-o.sloth/2+"px",width:o.width*2+"px",height:o.sloth*2+"px",opacity:0,rotate:o.rotate},l,function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.act=o.next;r(i)})}),h.find(".slotslide").each(function(t){var f=n(this).find("img");o.ie9?f.transition({left:"0px",top:"0px",opacity:0},0):f.transition({left:"0px",top:"0px",opacity:0,rotate:o.rotate},0);f.transition({left:"0px",top:0-t*o.sloth+"px",width:h.find(".defaultimg").data("neww")+"px",height:h.find(".defaultimg").data("newh")+"px",opacity:1,rotate:0},l,function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.act=o.next;r(i)})})),c==9&&(s.css({opacity:1}),o.slots=o.width/20,f(h,o,!0),h.find(".defaultimg").css({opacity:0}),nt=0,h.find(".slotslide").each(function(t){var i=n(this);nt++;i.transition({opacity:0,x:0,y:0},0);i.data("tout",setTimeout(function(){i.transition({x:0,y:0,opacity:1},l)},t*4))}),setTimeout(function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.ie&&a.find(".defaultimg").css({opacity:1});o.act=o.next;r(i)},l+nt*4)),c==10&&(s.css({opacity:1}),o.slots=o.height/20,e(h,o,!0),h.find(".defaultimg").css({opacity:0}),nt=0,h.find(".slotslide").each(function(t){var i=n(this);nt++;i.transition({opacity:0,x:0,y:0},0);i.data("tout",setTimeout(function(){i.transition({x:0,y:0,opacity:1},l)},t*4))}),setTimeout(function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.ie&&a.find(".defaultimg").css({opacity:1});o.act=o.next;r(i)},l+nt*4)),c==11&&(s.css({opacity:1}),o.slots=1,f(h,o,!0),h.find(".defaultimg").css({opacity:0,position:"relative"}),nt=0,h.find(".slotslide").each(function(){var t=n(this);nt++;o.ie9||o.ie?(o.ie&&s.css({opacity:"0"}),t.css({opacity:0})):t.transition({opacity:0,rotate:o.rotate},0);setTimeout(function(){o.ie9||o.ie?o.ie?s.animate({opacity:1},{duration:l}):t.transition({opacity:1},l):t.transition({opacity:1,rotate:0},l)},10)}),setTimeout(function(){u(i,o);h.find(".defaultimg").css({opacity:1});s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});o.ie&&a.find(".defaultimg").css({opacity:1});o.act=o.next;r(i)},l+15)),c==12||c==13||c==14||c==15){l=l*3;s.css({opacity:1});o.slots=1;f(h,o,!0);f(a,o,!0);a.find(".defaultimg").css({opacity:0});h.find(".defaultimg").css({opacity:0});var b=o.width,w=o.height,k=h.find(".slotslide");(o.fullWidth=="on"||o.fullSreen=="on")&&(b=k.width(),w=k.height());c==12?o.ie9?k.transition({left:b+"px"},0):k.transition({left:b+"px",rotate:o.rotate},0):c==15?o.ie9?k.transition({left:0-b+"px"},0):k.transition({left:0-b+"px",rotate:o.rotate},0):c==13?o.ie9?k.transition({top:w+"px"},0):k.transition({top:w+"px",rotate:o.rotate},0):c==14&&(o.ie9?k.transition({top:0-w+"px"},0):k.transition({top:0-w+"px",rotate:o.rotate},0));k.transition({left:"0px",top:"0px",opacity:1,rotate:0},l,function(){u(i,o,0);s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0});h.find(".defaultimg").css({opacity:1});o.act=o.next;r(i)});rt=a.find(".slotslide");c==12?rt.transition({left:0-b+"px",opacity:1,rotate:0},l):c==15?rt.transition({left:b+"px",opacity:1,rotate:0},l):c==13?rt.transition({top:0-w+"px",opacity:1,rotate:0},l):c==14&&rt.transition({top:w+"px",opacity:1,rotate:0},l)}if(c==16){if(l<600&&(l=600),v.css({position:"absolute","z-index":20}),s.css({position:"absolute","z-index":15}),v.wrapInner('<div class="tp-half-one"><\/div>'),v.find(".tp-half-one").clone(!0).appendTo(v).addClass("tp-half-two"),v.find(".tp-half-two").removeClass("tp-half-one"),v.find(".tp-half-two").wrapInner('<div class="tp-offset"><\/div>'),b=o.width,w=o.height,(o.fullWidth=="on"||o.fullSreen=="on")&&(b=o.container.parent().width(),w=o.container.parent().height()),ut=v.find(".defaultimg"),ut.length>0&&ut.data("fullwidthcentering")=="on"?(tt=w/2,ot=ut.position().top):(tt=w/2,ot=0),v.find(".tp-half-one").css({width:b+"px",height:tt+"px",overflow:"hidden",position:"absolute",top:"0px",left:"0px"}),v.find(".tp-half-two").css({width:b+"px",height:tt+"px",overflow:"hidden",position:"absolute",top:tt+"px",left:"0px"}),v.find(".tp-half-two .tp-offset").css({position:"absolute",top:0-tt+"px",left:"0px"}),n.support.transition){var st=Math.round(Math.random()*40-20),ht=Math.round(Math.random()*40-20),ct=Math.random()*1+1,lt=Math.random()*1+1;v.find(".tp-half-one").transition({opacity:1,scale:ct,rotate:st,y:0-w/1.4+"px"},l,"in");v.find(".tp-half-two").transition({opacity:1,scale:lt,rotate:ht,y:0+w/1.4+"px"},l,"in");v.html()!=null&&s.transition({scale:.8,x:o.width*.1,y:w*.1,rotate:st},0).transition({rotate:0,scale:1,x:0,y:0},l-100,"snap")}else v.find(".tp-half-one").animate({opacity:0,top:0-w/2+"px"},{duration:l,queue:!1}),v.find(".tp-half-two").animate({opacity:0,top:w+"px"},{duration:l,queue:!1});h.find(".defaultimg").css({opacity:1});setTimeout(function(){v.css({position:"absolute","z-index":18});s.css({position:"absolute","z-index":20});h.find(".defaultimg").css({opacity:1});a.find(".defaultimg").css({opacity:0});v.find(".tp-half-one").length>0&&v.find(".tp-half-one >img, .tp-half-one >div").unwrap();v.find(".tp-half-two").remove();o.transition=0;o.act=o.next},l);s.css({opacity:1})}c==17&&(l=l+100,o.slots>10&&(o.slots=10),s.css({opacity:1}),e(a,o,!0),e(h,o,!1),h.find(".defaultimg").css({opacity:0}),h.find(".slotslide").each(function(t){var f=n(this);f.transition({opacity:0,rotateY:350,rotateX:40,perspective:"1400px"},0);setTimeout(function(){f.transition({opacity:1,top:0,left:0,scale:1,perspective:"150px",rotate:0,rotateY:0,rotateX:0},l*2,function(){t==o.slots-1&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})},t*100)}));c==18&&(l=l+100,o.slots>10&&(o.slots=10),s.css({opacity:1}),f(a,o,!0),f(h,o,!1),h.find(".defaultimg").css({opacity:0}),h.find(".slotslide").each(function(t){var f=n(this);f.transition({rotateX:10,rotateY:310,perspective:"1400px",rotate:0,opacity:0},0);setTimeout(function(){f.transition({top:0,left:0,scale:1,perspective:"150px",rotate:0,rotateY:0,rotateX:0,opacity:1},l*2,function(){t==o.slots-1&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})},t*100)}));c==19&&(l=l+100,o.slots>10&&(o.slots=10),s.css({opacity:1}),f(a,o,!0),f(h,o,!1),h.find(".defaultimg").css({opacity:0}),at=s.css("z-index"),vt=v.css("z-index"),h.find(".slotslide").each(function(t){var f=n(this);f.parent().css({overflow:"visible"});f.css({background:"#333"});g==1?f.transition({opacity:0,left:0,top:o.height/2,rotate3d:"1, 0, 0, -90deg "},0):f.transition({opacity:0,left:0,top:0-o.height/2,rotate3d:"1, 0, 0, 90deg "},0);setTimeout(function(){f.transition({opacity:1,top:0,perspective:o.height*2,rotate3d:" 1, 0, 0, 0deg "},l*2,function(){t==o.slots-1&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})},t*150)}),a.find(".slotslide").each(function(t){var i=n(this);i.parent().css({overflow:"visible"});i.css({background:"#333"});i.transition({top:0,rotate3d:"1, 0, 0, 0deg"},0);a.find(".defaultimg").css({opacity:0});setTimeout(function(){g==1?i.transition({opacity:.6,left:0,perspective:o.height*2,top:0-o.height/2,rotate3d:"1, 0, 0, 90deg"},l*2,function(){}):i.transition({opacity:.6,left:0,perspective:o.height*2,top:0+o.height/2,rotate3d:"1, 0, 0, -90deg"},l*2,function(){})},t*150)}));c==20&&(l=l+100,o.slots>10&&(o.slots=10),s.css({opacity:1}),e(a,o,!0),e(h,o,!1),h.find(".defaultimg").css({opacity:0}),h.find(".slotslide").each(function(t){var f=n(this);f.parent().css({overflow:"visible"});g==1?f.transition({scale:.8,top:0,left:0-o.width,rotate3d:"2, 5, 0, 110deg"},0):f.transition({scale:.8,top:0,left:0+o.width,rotate3d:"2, 5, 0, -110deg"},0);setTimeout(function(){f.transition({scale:.8,left:0,perspective:o.width,rotate3d:"1, 5, 0, 0deg"},l*2,"ease").transition({scale:1},200,"out",function(){t==o.slots-1&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})},t*100)}),a.find(".slotslide").each(function(t){var i=n(this);i.transition({scale:.5,left:0,rotate3d:"1, 5, 0, 5deg"},300,"in-out");a.find(".defaultimg").css({opacity:0});setTimeout(function(){g==1?i.transition({top:0,left:o.width/2,perspective:o.width,rotate3d:"0, -3, 0, 70deg",opacity:0},l*2,"out",function(){}):i.transition({top:0,left:0-o.width/2,perspective:o.width,rotate3d:"0, -3, 0, -70deg",opacity:0},l*2,"out",function(){})},t*100)}));c==21&&(l=l+100,o.slots>10&&(o.slots=10),s.css({opacity:1}),e(a,o,!0),e(h,o,!1),h.find(".defaultimg").css({opacity:0}),h.find(".slotslide").each(function(t){var f=n(this);g==1?f.transition({top:0,left:0-o.width,rotate3d:"0, 1, 0, 90deg"},0):f.transition({top:0,left:0+o.width,rotate3d:"0, 1, 0, -90deg"},0);setTimeout(function(){f.transition({left:0,perspective:o.width*2,rotate3d:"0, 0, 0, 0deg"},l*2,function(){t==o.slots-1&&(u(i,o),h.find(".defaultimg").css({opacity:1}),s.index()!=v.index()&&a.find(".defaultimg").css({opacity:0}),o.act=o.next,r(i))})},t*100)}),a.find(".slotslide").each(function(t){var i=n(this);i.transition({left:0,rotate3d:"0, 0, 0, 0deg"},0);a.find(".defaultimg").css({opacity:0});setTimeout(function(){g==1?i.transition({top:0,left:o.width/2,perspective:o.width,rotate3d:"0, 1, 0, -90deg"},l*1.5,function(){}):i.transition({top:0,left:0-o.width/2,perspective:o.width,rotate3d:"0, 1, 0, +90deg"},l*1.5,function(){})},t*100)}));ft={};ft.slideIndex=o.next+1;i.trigger("revolution.slide.onchange",ft);setTimeout(function(){i.trigger("revolution.slide.onafterswap")},l);i.trigger("revolution.slide.onvideostop")}function tt(t){var f=t.target.getVideoEmbedCode(),u=n("#"+f.split('id="')[1].split('"')[0]).closest(".tp-simpleresponsive"),r,i;t.data==YT.PlayerState.PLAYING?(r=u.find(".tp-bannertimer"),i=r.data("opt"),r.stop(),i.videoplaying=!0,i.videostartednow=1):(r=u.find(".tp-bannertimer"),i=r.data("opt"),t.data!=-1&&(i.conthover==0&&r.animate({width:"100%"},{duration:i.delay-i.cd-100,queue:!1,easing:"linear"}),i.videoplaying=!1,i.videostoppednow=1));t.data==0&&i.nextslideatend==!0&&i.container.revnext()}function ct(n){n.target.playVideo()}function lt(t){var i=$f(t),r=n("#"+t).closest(".tp-simpleresponsive");i.addEvent("ready",function(){i.addEvent("play",function(){var n=r.find(".tp-bannertimer"),t=n.data("opt");n.stop();t.videoplaying=!0});i.addEvent("finish",function(){var t=r.find(".tp-bannertimer"),n=t.data("opt");n.conthover==0&&t.animate({width:"100%"},{duration:n.delay-n.cd-100,queue:!1,easing:"linear"});n.videoplaying=!1;n.videostartednow=1;n.nextslideatend==!0&&n.container.revnext()});i.addEvent("pause",function(){var t=r.find(".tp-bannertimer"),n=t.data("opt");n.conthover==0&&t.animate({width:"100%"},{duration:n.delay-n.cd-100,queue:!1,easing:"linear"});n.videoplaying=!1;n.videostoppednow=1})})}function at(t){var i=$f(t),r=n("#"+t).closest(".tp-simpleresponsive");i.addEvent("ready",function(){i.api("play")});i.addEvent("play",function(){var n=r.find(".tp-bannertimer"),t=n.data("opt");n.stop();t.videoplaying=!0});i.addEvent("finish",function(){var t=r.find(".tp-bannertimer"),n=t.data("opt");n.conthover==0&&t.animate({width:"100%"},{duration:n.delay-n.cd-100,queue:!1,easing:"linear"});n.videoplaying=!1;n.videostartednow=1;n.nextslideatend==!0&&n.container.revnext()});i.addEvent("pause",function(){var t=r.find(".tp-bannertimer"),n=t.data("opt");n.conthover==0&&t.animate({width:"100%"},{duration:n.delay-n.cd-100,queue:!1,easing:"linear"});n.videoplaying=!1;n.videostoppednow=1})}function vt(t){t.on("play",function(){var t=n("body").find(".tp-bannertimer"),i=t.data("opt");t.stop();try{i.videoplaying=!0}catch(r){}});t.on("pause",function(){var i=n("body").find(".tp-bannertimer"),t=i.data("opt");t.conthover==0&&i.animate({width:"100%"},{duration:t.delay-t.cd-100,queue:!1,easing:"linear"});t.videoplaying=!1;t.videostoppednow=1});t.on("ended",function(){var i=n("body").find(".tp-bannertimer"),t=i.data("opt");t.conthover==0&&i.animate({width:"100%"},{duration:t.delay-t.cd-100,queue:!1,easing:"linear"});t.videoplaying=!1;t.videostoppednow=1;t.nextslideatend==!0&&t.container.revnext()})}function it(i,r){var u=0,f=0,e;i.find(".tp-caption").each(function(e){var h,d,o,b,a,v,y,g,k,c,nt,it,l,p;if(u=r.width/2-r.startwidth/2,r.bh>1&&(r.bw=1,r.bh=1),r.bw>1&&(r.bw=1,r.bh=1),h=r.bw,d=r.bh,r.fullScreen=="on"&&(f=r.height/2-r.startheight*r.bh/2),f<0&&(f=0),o=i.find(".tp-caption:eq("+e+")"),b=0,r.width<r.hideCaptionAtLimit&&o.data("captionhidden")=="on"?(o.addClass("tp-hidden-caption"),b=1):r.width<r.hideAllCaptionAtLilmit?(o.addClass("tp-hidden-caption"),b=1):o.removeClass("tp-hidden-caption"),o.stop(!0,!0),b==0){if(o.data("linktoslide")!=t&&(o.css({cursor:"pointer"}),o.data("linktoslide")!="no"&&o.click(function(){var i=n(this),t=i.data("linktoslide");t!="next"&&t!="prev"?(r.container.data("showus",t),r.container.parent().find(".tp-rightarrow").click()):t=="next"?r.container.parent().find(".tp-rightarrow").click():t=="prev"&&r.container.parent().find(".tp-leftarrow").click()})),o.hasClass("coloredbg")&&(u=0),u<0&&(u=0),clearTimeout(o.data("timer")),clearTimeout(o.data("timer-end")),a="iframe"+Math.round(Math.random()*1e3+1),o.find("iframe").length>0&&o.find("iframe").each(function(){var i=n(this),e,f;if(i.attr("src").toLowerCase().indexOf("youtube")>=0)if(r.nextslideatend=o.data("nextslideatend"),i.hasClass("HasListener"))o.data("autoplay")==!0&&(e=o.data("player"),o.data("timerplay",setTimeout(function(){e.playVideo()},o.data("start"))),f=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer"),setTimeout(function(){f.stop();r.videoplaying=!0},200));else try{i.attr("id",a);e=o.data("autoplay")==!0?new YT.Player(a,{events:{onStateChange:tt,onReady:ct}}):new YT.Player(a,{events:{onStateChange:tt}});i.addClass("HasListener");o.data("player",e);o.data("autoplay")==!0&&(f=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer"),setTimeout(function(){f.stop();r.videoplaying=!0},200))}catch(p){}else if(i.attr("src").toLowerCase().indexOf("vimeo")>=0)if(r.nextslideatend=o.data("nextslideatend"),i.hasClass("HasListener")){if(o.data("autoplay")==!0){var i=o.find("iframe"),v=i.attr("id"),y=$f(v);o.data("timerplay",setTimeout(function(){y.api("play")},o.data("start")));f=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer");setTimeout(function(){f.stop();r.videoplaying=!0},200)}}else{i.addClass("HasListener");i.attr("id",a);for(var u=i.attr("src"),s={},c=u,l=/([^&=]+)=([^&]*)/g,h;h=l.exec(c);)s[decodeURIComponent(h[1])]=decodeURIComponent(h[2]);u=s.player_id!=t?u.replace(s.player_id,a):u+"&player_id="+a;try{u=u.replace("api=0","api=1")}catch(p){}u=u+"&api=1";i.attr("src",u);e=o.find("iframe")[0];o.data("autoplay")==!0?($f(e).addEvent("ready",at),f=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer"),setTimeout(function(){f.stop();r.videoplaying=!0},200)):$f(e).addEvent("ready",lt)}}),o.find("video").length>0&&o.find("video").each(function(){var i=n(this).parent(),u,f;i.hasClass("video-js")&&(r.nextslideatend=o.data("nextslideatend"),i.hasClass("HasListener")?u=i.attr("id"):(i.addClass("HasListener"),u="videoid_"+Math.round(Math.random()*1e3+1),i.attr("id",u),videojs(u).ready(function(){vt(this)})),o.data("autoplay")==!0&&(f=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer"),setTimeout(function(){f.stop();r.videoplaying=!0},200),videojs(u).ready(function(){var n=this;i.data("timerplay",setTimeout(function(){n.play()},o.data("start")))})),i.data("ww")==t&&i.data("ww",i.width()),i.data("hh")==t&&i.data("hh",i.height()),videojs(u).ready(function(){if(!o.hasClass("fullscreenvideo")){var n=videojs(u);try{n.width(i.data("ww")*r.bw);n.height(i.data("hh")*r.bh)}catch(t){}}}))}),o.hasClass("randomrotate")&&(r.ie||r.ie9)&&o.removeClass("randomrotate").addClass("sfb"),o.removeClass("noFilterClass"),v=0,y=0,o.find("img").length>0)c=o.find("img"),c.data("ww")==t&&c.data("ww",c.width()),c.data("hh")==t&&c.data("hh",c.height()),g=c.data("ww"),k=c.data("hh"),c.width(g*r.bw),c.height(k*r.bh),v=c.width(),y=c.height();else if(o.find("iframe").length>0){c=o.find("iframe");o.data("ww")==t&&o.data("ww",c.width());o.data("hh")==t&&o.data("hh",c.height());var g=o.data("ww"),k=o.data("hh"),s=o;s.data("fsize")==t&&s.data("fsize",parseInt(s.css("font-size"),0)||0);s.data("pt")==t&&s.data("pt",parseInt(s.css("paddingTop"),0)||0);s.data("pb")==t&&s.data("pb",parseInt(s.css("paddingBottom"),0)||0);s.data("pl")==t&&s.data("pl",parseInt(s.css("paddingLeft"),0)||0);s.data("pr")==t&&s.data("pr",parseInt(s.css("paddingRight"),0)||0);s.data("mt")==t&&s.data("mt",parseInt(s.css("marginTop"),0)||0);s.data("mb")==t&&s.data("mb",parseInt(s.css("marginBottom"),0)||0);s.data("ml")==t&&s.data("ml",parseInt(s.css("marginLeft"),0)||0);s.data("mr")==t&&s.data("mr",parseInt(s.css("marginRight"),0)||0);s.data("bt")==t&&s.data("bt",parseInt(s.css("borderTop"),0)||0);s.data("bb")==t&&s.data("bb",parseInt(s.css("borderBottom"),0)||0);s.data("bl")==t&&s.data("bl",parseInt(s.css("borderLeft"),0)||0);s.data("br")==t&&s.data("br",parseInt(s.css("borderRight"),0)||0);s.data("lh")==t&&s.data("lh",parseInt(s.css("lineHeight"),0)||0);nt=r.width;it=r.height;nt>r.startwidth&&(nt=r.startwidth);it>r.startheight&&(it=r.startheight);o.hasClass("fullscreenvideo")?(u=0,f=0,o.css({width:r.width,height:r.height})):o.css({"font-size":s.data("fsize")*r.bw+"px","padding-top":s.data("pt")*r.bh+"px","padding-bottom":s.data("pb")*r.bh+"px","padding-left":s.data("pl")*r.bw+"px","padding-right":s.data("pr")*r.bw+"px","margin-top":s.data("mt")*r.bh+"px","margin-bottom":s.data("mb")*r.bh+"px","margin-left":s.data("ml")*r.bw+"px","margin-right":s.data("mr")*r.bw+"px","border-top":s.data("bt")*r.bh+"px","border-bottom":s.data("bb")*r.bh+"px","border-left":s.data("bl")*r.bw+"px","border-right":s.data("br")*r.bw+"px","line-height":s.data("lh")*r.bh+"px",height:k*r.bh+"px","white-space":"nowrap"});c.width(g*r.bw);c.height(k*r.bh);v=c.width();y=c.height()}else o.find(".tp-resizeme, .tp-resizeme *").each(function(){w(n(this),r)}),o.hasClass("tp-resizeme")&&o.find("*").each(function(){w(n(this),r)}),w(o,r),y=o.outerHeight(!0),v=o.outerWidth(!0),l=o.outerHeight(),p=o.css("backgroundColor"),o.find(".frontcorner").css({borderWidth:l+"px",left:0-l+"px",borderRight:"0px solid transparent",borderTopColor:p}),o.find(".frontcornertop").css({borderWidth:l+"px",left:0-l+"px",borderRight:"0px solid transparent",borderBottomColor:p}),o.find(".backcorner").css({borderWidth:l+"px",right:0-l+"px",borderLeft:"0px solid transparent",borderBottomColor:p}),o.find(".backcornertop").css({borderWidth:l+"px",right:0-l+"px",borderLeft:"0px solid transparent",borderTopColor:p});o.data("voffset")==t&&o.data("voffset",0);o.data("hoffset")==t&&o.data("hoffset",0);var ut=o.data("voffset")*h,ft=o.data("hoffset")*h,et=r.startwidth*h,ot=r.startheight*h;if((o.data("x")=="center"||o.data("xcenter")=="center")&&(o.data("xcenter","center"),o.data("x",(et/2-o.outerWidth(!0)/2)/h+ft)),(o.data("x")=="left"||o.data("xleft")=="left")&&(o.data("xleft","left"),o.data("x",0/h+ft)),(o.data("x")=="right"||o.data("xright")=="right")&&(o.data("xright","right"),o.data("x",(et-o.outerWidth(!0)+ft)/h)),(o.data("y")=="center"||o.data("ycenter")=="center")&&(o.data("ycenter","center"),o.data("y",(ot/2-o.outerHeight(!0)/2)/r.bh+ut)),(o.data("y")=="top"||o.data("ytop")=="top")&&(o.data("ytop","top"),o.data("y",0/r.bh+ut)),(o.data("y")=="bottom"||o.data("ybottom")=="bottom")&&(o.data("ybottom","bottom"),o.data("y",(ot-o.outerHeight(!0)+ut)/h)),o.hasClass("fade")&&o.css({opacity:0,left:h*o.data("x")+u+"px",top:r.bh*o.data("y")+f+"px"}),o.hasClass("randomrotate")){o.css({left:h*o.data("x")+u+"px",top:d*o.data("y")+f+"px"});var st=Math.random()*2+1,ht=Math.round(Math.random()*200-100),yt=Math.round(Math.random()*200-100),pt=Math.round(Math.random()*200-100);o.data("repx",yt);o.data("repy",pt);o.data("repo",o.css("opacity"));o.data("rotate",ht);o.data("scale",st);o.transition({opacity:0,scale:st,rotate:ht,x:yt,y:pt,duration:"0ms"})}else r.ie||r.ie9||o.find("iframe").length==0&&o.transition({scale:1,rotate:0});o.hasClass("lfr")&&o.css({opacity:1,left:15+r.width+"px",top:r.bh*o.data("y")+f+"px"});o.hasClass("lfl")&&o.css({opacity:1,left:-15-v+"px",top:r.bh*o.data("y")+f+"px"});o.hasClass("sfl")&&o.css({opacity:0,left:h*o.data("x")-50+u+"px",top:r.bh*o.data("y")+f+"px"});o.hasClass("sfr")&&o.css({opacity:0,left:h*o.data("x")+50+u+"px",top:r.bh*o.data("y")+f+"px"});o.hasClass("lft")&&o.css({opacity:1,left:h*o.data("x")+u+"px",top:-25-y+"px"});o.hasClass("lfb")&&o.css({opacity:1,left:h*o.data("x")+u+"px",top:25+r.height+"px"});o.hasClass("sft")&&o.css({opacity:0,left:h*o.data("x")+u+"px",top:r.bh*o.data("y")+f-50+"px"});o.hasClass("sfb")&&o.css({opacity:0,left:h*o.data("x")+u+"px",top:r.bh*o.data("y")+f+50+"px"});o.data("start")==t&&o.data("start",1e3);o.data("timer",setTimeout(function(){var i=o.data("easing");i==t&&(i="linear");o.hasClass("fullscreenvideo")&&o.css({display:"block"});o.css({visibility:"visible"});o.hasClass("fade")&&(o.data("repo",o.css("opacity")),o.transition({opacity:1,duration:o.data("speed")}));o.hasClass("randomrotate")&&(i=i.replace("Elastic","Back"),i=i.replace("Bounce","Back"),o.transition({opacity:1,scale:1,left:h*o.data("x")+u+"px",top:d*o.data("y")+f+"px",rotate:0,x:0,y:0,duration:o.data("speed"),easing:i}),r.ie&&o.addClass("noFilterClass"));(o.hasClass("lfr")||o.hasClass("lfl")||o.hasClass("sfr")||o.hasClass("sfl")||o.hasClass("lft")||o.hasClass("lfb")||o.hasClass("sft")||o.hasClass("sfb"))&&(o.data("repx",o.position().left),o.data("repy",o.position().top),o.data("repo",o.css("opacity")),i.indexOf("Bounce")>=0||i.indexOf("Elastic")>=0?o.animate({opacity:1,left:h*o.data("x")+u+"px",top:r.bh*o.data("y")+f+"px"},{duration:o.data("speed"),easing:i,complete:function(){r.ie&&n(this).addClass("noFilterClass")}}):o.transition({opacity:1,left:h*o.data("x")+u+"px",top:r.bh*o.data("y")+f+"px",duration:o.data("speed"),easing:i}))},o.data("start")));o.data("end")!=t&&o.data("timer-end",setTimeout(function(){(r.ie||r.ie9)&&(o.hasClass("randomrotate")||o.hasClass("randomrotateout"))&&o.removeClass("randomrotate").removeClass("randomrotateout").addClass("fadeout");rt(o,r)},o.data("end")))}});e=n("body").find("#"+r.container.attr("id")).find(".tp-bannertimer");e.data("opt",r)}function w(n,i){n.data("fsize")==t&&n.data("fsize",parseInt(n.css("font-size"),0)||0);n.data("pt")==t&&n.data("pt",parseInt(n.css("paddingTop"),0)||0);n.data("pb")==t&&n.data("pb",parseInt(n.css("paddingBottom"),0)||0);n.data("pl")==t&&n.data("pl",parseInt(n.css("paddingLeft"),0)||0);n.data("pr")==t&&n.data("pr",parseInt(n.css("paddingRight"),0)||0);n.data("mt")==t&&n.data("mt",parseInt(n.css("marginTop"),0)||0);n.data("mb")==t&&n.data("mb",parseInt(n.css("marginBottom"),0)||0);n.data("ml")==t&&n.data("ml",parseInt(n.css("marginLeft"),0)||0);n.data("mr")==t&&n.data("mr",parseInt(n.css("marginRight"),0)||0);n.data("bt")==t&&n.data("bt",parseInt(n.css("borderTopWidth"),0)||0);n.data("bb")==t&&n.data("bb",parseInt(n.css("borderBottomWidth"),0)||0);n.data("bl")==t&&n.data("bl",parseInt(n.css("borderLeftWidth"),0)||0);n.data("br")==t&&n.data("br",parseInt(n.css("borderRightWidth"),0)||0);n.data("lh")==t&&n.data("lh",parseInt(n.css("lineHeight"),0)||0);n.data("minwidth")==t&&n.data("minwidth",parseInt(n.css("minWidth"),0)||0);n.data("minheight")==t&&n.data("minheight",parseInt(n.css("minHeight"),0)||0);n.data("maxwidth")==t&&n.data("maxwidth",parseInt(n.css("maxWidth"),0)||"none");n.data("maxheight")==t&&n.data("maxheight",parseInt(n.css("maxHeight"),0)||"none");n.css({"font-size":Math.round(n.data("fsize")*i.bw)+"px","padding-top":Math.round(n.data("pt")*i.bh)+"px","padding-bottom":Math.round(n.data("pb")*i.bh)+"px","padding-left":Math.round(n.data("pl")*i.bw)+"px","padding-right":Math.round(n.data("pr")*i.bw)+"px","margin-top":n.data("mt")*i.bh+"px","margin-bottom":n.data("mb")*i.bh+"px","margin-left":n.data("ml")*i.bw+"px","margin-right":n.data("mr")*i.bw+"px",borderTopWidth:Math.round(n.data("bt")*i.bh)+"px",borderBottomWidth:Math.round(n.data("bb")*i.bh)+"px",borderLeftWidth:Math.round(n.data("bl")*i.bw)+"px",borderRightWidth:Math.round(n.data("br")*i.bw)+"px","line-height":Math.round(n.data("lh")*i.bh)+"px","white-space":"nowrap",minWidth:n.data("minwidth")*i.bw+"px",minHeight:n.data("minheight")*i.bh+"px"});n.data("maxheight")!="none"&&n.css({maxHeight:n.data("maxheight")*i.bh+"px"});n.data("maxwidth")!="none"&&n.css({maxWidth:n.data("maxwidth")*i.bw+"px"})}function yt(t,i){t.find(".tp-caption").each(function(r){var u=t.find(".tp-caption:eq("+r+")"),f,e;u.stop(!0,!0);clearTimeout(u.data("timer"));clearTimeout(u.data("timer-end"));f=u.data("easing");f="easeInOutSine";var c=u.data("repx"),l=u.data("repy"),a=u.data("repo"),v=u.data("rotate"),y=u.data("scale");if(u.find("iframe").length>0){try{var o=u.find("iframe"),s=o.attr("id"),h=$f(s);h.api("pause");clearTimeout(u.data("timerplay"))}catch(p){}try{e=u.data("player");e.stopVideo();clearTimeout(u.data("timerplay"))}catch(p){}}if(u.find("video").length>0)try{u.find("video").each(function(){var t=n(this).parent(),i=t.attr("id");clearTimeout(t.data("timerplay"));videojs(i).ready(function(){var n=this;n.pause()})})}catch(p){}try{rt(u,i)}catch(p){}})}function rt(i,r){var s,u;i.hasClass("randomrotate")&&(r.ie||r.ie9)&&i.removeClass("randomrotate").addClass("sfb");i.hasClass("randomrotateout")&&(r.ie||r.ie9)&&i.removeClass("randomrotateout").addClass("stb");s=i.data("endspeed");s==t&&(s=i.data("speed"));var f=i.data("repx"),e=i.data("repy"),o=i.data("repo");r.ie&&i.css({opacity:"inherit",filter:"inherit"});i.hasClass("ltr")||i.hasClass("ltl")||i.hasClass("str")||i.hasClass("stl")||i.hasClass("ltt")||i.hasClass("ltb")||i.hasClass("stt")||i.hasClass("stb")?(f=i.position().left,e=i.position().top,i.hasClass("ltr")?f=r.width+60:i.hasClass("ltl")?f=-60-i.width():i.hasClass("ltt")?e=-60-i.height():i.hasClass("ltb")?e=r.height+60:i.hasClass("str")?(f=f+50,o=0):i.hasClass("stl")?(f=f-50,o=0):i.hasClass("stt")?(e=e-50,o=0):i.hasClass("stb")&&(e=e+50,o=0),u=i.data("endeasing"),u==t&&(u="linear"),u.indexOf("Bounce")>=0||u.indexOf("Elastic")>=0?i.animate({opacity:o,left:f+"px",top:e+"px"},{duration:i.data("endspeed"),easing:u,complete:function(){n(this).css({visibility:"hidden"})}}):i.transition({opacity:o,left:f+"px",top:e+"px",duration:i.data("endspeed"),easing:u}),r.ie&&i.removeClass("noFilterClass")):i.hasClass("randomrotateout")?(i.transition({opacity:0,scale:Math.random()*2+.3,left:Math.random()*r.width+"px",top:Math.random()*r.height+"px",rotate:Math.random()*40,duration:s,easing:u,complete:function(){n(this).css({visibility:"hidden"})}}),r.ie&&i.removeClass("noFilterClass")):i.hasClass("fadeout")?(r.ie&&i.removeClass("noFilterClass"),i.transition({opacity:0,duration:200})):i.hasClass("lfr")||i.hasClass("lfl")||i.hasClass("sfr")||i.hasClass("sfl")||i.hasClass("lft")||i.hasClass("lfb")||i.hasClass("sft")||i.hasClass("sfb")?(i.hasClass("lfr")?f=r.width+60:i.hasClass("lfl")?f=-60-i.width():i.hasClass("lft")?e=-60-i.height():i.hasClass("lfb")&&(e=r.height+60),u=i.data("endeasing"),u==t&&(u="linear"),u.indexOf("Bounce")>=0||u.indexOf("Elastic")>=0?i.animate({opacity:o,left:f+"px",top:e+"px"},{duration:i.data("endspeed"),easing:u,complete:function(){n(this).css({visibility:"hidden"})}}):i.transition({opacity:o,left:f+"px",top:e+"px",duration:i.data("endspeed"),easing:u}),r.ie&&i.removeClass("noFilterClass")):i.hasClass("fade")?(i.transition({opacity:0,duration:s}),r.ie&&i.removeClass("noFilterClass")):i.hasClass("randomrotate")&&(i.transition({opacity:0,scale:Math.random()*2+.3,left:Math.random()*r.width+"px",top:Math.random()*r.height+"px",rotate:Math.random()*40,duration:s,easing:u}),r.ie&&i.removeClass("noFilterClass"))}function pt(t,i){t.children().each(function(){try{n(this).die("click")}catch(t){}try{n(this).die("mouseenter")}catch(t){}try{n(this).die("mouseleave")}catch(t){}try{n(this).unbind("hover")}catch(t){}});try{t.die("click","mouseenter","mouseleave")}catch(r){}clearInterval(i.cdint);t=null}function ut(i,r){if(r.cd=0,r.loop=0,r.looptogo=r.stopAfterLoops!=t&&r.stopAfterLoops>-1?r.stopAfterLoops:9999999,r.lastslidetoshow=r.stopAtSlide!=t&&r.stopAtSlide>-1?r.stopAtSlide:999,r.stopLoop="off",r.looptogo==0&&(r.stopLoop="on"),r.slideamount>1&&!(r.stopAfterLoops==0&&r.stopAtSlide==1)){var u=i.find(".tp-bannertimer");u.length>0&&(u.css({width:"0%"}),u.animate({width:"100%"},{duration:r.delay-100,queue:!1,easing:"linear"}));u.data("opt",r);r.cdint=setInterval(function(){n("body").find(i).length==0&&pt(i,r);i.data("conthover-changed")==1&&(r.conthover=i.data("conthover"),i.data("conthover-changed",0));r.conthover!=1&&r.videoplaying!=!0&&r.width>r.hideSliderAtLimit&&(r.cd=r.cd+100);r.fullWidth!="on"&&(r.width>r.hideSliderAtLimit?i.parent().removeClass("tp-hide-revslider"):i.parent().addClass("tp-hide-revslider"));r.videostartednow==1&&(i.trigger("revolution.slide.onvideoplay"),r.videostartednow=0);r.videostoppednow==1&&(i.trigger("revolution.slide.onvideostop"),r.videostoppednow=0);r.cd>=r.delay&&(r.cd=0,r.act=r.next,r.next=r.next+1,r.next>i.find(">ul >li").length-1&&(r.next=0,r.looptogo=r.looptogo-1,r.looptogo<=0&&(r.stopLoop="on")),r.stopLoop=="on"&&r.next==r.lastslidetoshow-1&&(clearInterval(r.cdint),i.find(".tp-bannertimer").css({visibility:"hidden"}),i.trigger("revolution.slide.onstop")),c(i,r),u.length>0&&(u.css({width:"0%"}),u.animate({width:"100%"},{duration:r.delay-100,queue:!1,easing:"linear"})))},100);i.hover(function(){r.onHoverStop=="on"&&(r.conthover=1,u.stop(),i.trigger("revolution.slide.onpause"))},function(){i.data("conthover")!=1&&(i.trigger("revolution.slide.onresume"),r.conthover=0,r.onHoverStop=="on"&&r.videoplaying!=!0&&u.animate({width:"100%"},{duration:r.delay-r.cd-100,queue:!1,easing:"linear"}))})}}n.fn.extend({revolution:function(i){return n.fn.revolution.defaults={delay:9e3,startheight:500,startwidth:960,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"bullet",navigationArrows:"withbullet",navigationStyle:"round",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,hideSliderAtLimit:0,shadow:1,fullWidth:"off",fullScreen:"off"},i=n.extend({},n.fn.revolution.defaults,i),this.each(function(){var r=i,u=n(this),h,tt,s,e,a,f;if(!u.hasClass("revslider-initialised")){u.addClass("revslider-initialised");u.attr("id")==t&&u.attr("id","revslider-"+Math.round(Math.random()*1e3+5));r.firefox13=!1;r.ie=!n.support.opacity;r.ie9=document.documentMode==9;var o=n.fn.jquery.split("."),p=parseFloat(o[0]),it=parseFloat(o[1]),rt=parseFloat(o[2]||"0");p==1&&it<7&&u.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+o+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin<\/div>");p>1&&(r.ie=!1);n.support.transition||(n.fn.transition=n.fn.animate);n.cssEase.Bounce="cubic-bezier(0,1,0.5,1.3)";u.find(".caption").each(function(){n(this).addClass("tp-caption")});ot()&&u.find(".tp-caption").each(function(){n(this).data("autoplay")==!0&&n(this).data("autoplay",!1)});var w=0,b=0,nt=0;if(u.find(".tp-caption iframe").each(function(){var t,i;try{n(this).attr("src").indexOf("you")>0&&w==0&&(w=1,t=document.createElement("script"),t.src="http://www.youtube.com/player_api",i=document.getElementsByTagName("script")[0],i.parentNode.insertBefore(t,i))}catch(r){}}),u.find(".tp-caption iframe").each(function(){var t,i;try{n(this).attr("src").indexOf("vim")>0&&b==0&&(b=1,t=document.createElement("script"),t.src="http://a.vimeocdn.com/js/froogaloop2.min.js",i=document.getElementsByTagName("script")[0],i.parentNode.insertBefore(t,i))}catch(r){}}),u.find(".tp-caption video").each(function(){var t,i;try{n(this).hasClass("video-js")&&nt==0&&(nt=1,t=document.createElement("script"),t.src=r.videoJsPath+"video.js",i=document.getElementsByTagName("script")[0],i.parentNode.insertBefore(t,i),n("head").append('<link rel="stylesheet" type="text/css" href="'+r.videoJsPath+'video-js.min.css" media="screen" />'),n("head").append('<script> videojs.options.flash.swf = "'+r.videoJsPath+'video-js.swf";<\/script>'))}catch(u){}}),r.shuffle=="on")for(h=0;h<u.find(">ul:first-child >li").length;h++)tt=Math.round(Math.random()*u.find(">ul:first-child >li").length),u.find(">ul:first-child >li:eq("+tt+")").prependTo(u.find(">ul:first-child"));r.slots=4;r.act=-1;r.next=0;r.startWithSlide!=t&&(r.next=r.startWithSlide);s=ft("#")[0];s.length<9&&s.split("slide").length>1&&(e=parseInt(s.split("slide")[1],0),e<1&&(e=1),e>u.find(">ul:first >li").length&&(e=u.find(">ul:first >li").length),r.next=e-1);r.origcd=r.delay;r.firststart=1;r.navigationHOffset==t&&(r.navOffsetHorizontal=0);r.navigationVOffset==t&&(r.navOffsetVertical=0);u.append('<div class="tp-loader"><\/div>');u.find(".tp-bannertimer").length==0&&u.append('<div class="tp-bannertimer" style="visibility:hidden"><\/div>');a=u.find(".tp-bannertimer");a.length>0&&a.css({width:"0%"});u.addClass("tp-simpleresponsive");r.container=u;r.slideamount=u.find(">ul:first >li").length;u.height()==0&&u.height(r.startheight);(r.startwidth==t||r.startwidth==0)&&(r.startwidth=u.width());(r.startheight==t||r.startheight==0)&&(r.startheight=u.height());r.width=u.width();r.height=u.height();r.bw=r.startwidth/u.width();r.bh=r.startheight/u.height();r.width!=r.startwidth&&(r.height=Math.round(r.startheight*(r.width/r.startwidth)),u.height(r.height));r.shadow!=0&&(u.parent().append('<div class="tp-bannershadow tp-shadow'+r.shadow+'"><\/div>'),u.parent().find(".tp-bannershadow").css({width:r.width}));u.find("ul").css({display:"none"});r.lazyLoad!="on"?u.waitForImages(function(){u.find("ul").css({display:"block"});g(u,r);r.slideamount>1&&v(u,r);r.slideamount>1&&l(u,r);r.slideamount>1&&y(u,r);n("#unvisible_button").click(function(){r.navigationArrows=n(".selectnavarrows").val();r.navigationType=n(".selectnavtype").val();r.navigationStyle=n(".selectnavstyle").val();r.soloArrowStyle="default";n(".tp-bullets").remove();n(".tparrows").remove();r.slideamount>1&&v(u,r);r.slideamount>1&&l(u,r);r.slideamount>1&&y(u,r)});k(u,r);r.hideThumbs>0&&d(u,r);u.waitForImages(function(){u.find(".tp-loader").fadeOut(600);setTimeout(function(){c(u,r);r.slideamount>1&&ut(u,r);u.trigger("revolution.slide.onloaded")},600)})}):(f=u.find("ul >li >img").first(),f.data("lazyload")!=t&&f.attr("src",f.data("lazyload")),f.data("lazydone",1),f.parent().waitForImages(function(){u.find("ul").css({display:"block"});g(u,r);r.slideamount>1&&v(u,r);r.slideamount>1&&l(u,r);r.slideamount>1&&y(u,r);k(u,r);r.hideThumbs>0&&d(u,r);f.parent().waitForImages(function(){u.find(".tp-loader").fadeOut(600);setTimeout(function(){c(u,r);r.slideamount>1&&ut(u,r);u.trigger("revolution.slide.onloaded")},600)})}));n(window).resize(function(){n("body").find(u)!=0&&u.outerWidth(!0)!=r.width&&et(u,r)});u.find(".tp-scrollbelowslider").on("click",function(){var t=0;try{t=n("body").find(r.fullScreenOffsetContainer).height()}catch(i){}try{t=t-n(this).data("scrolloffset")}catch(i){}n("body,html").animate({scrollTop:u.offset().top+u.find(">ul >li").height()-t+"px"},{duration:400})})}})},revscroll:function(t){return this.each(function(){var i=n(this);n("body,html").animate({scrollTop:i.offset().top+i.find(">ul >li").height()-t+"px"},{duration:400})})},revpause:function(){return this.each(function(){var t=n(this),i;t.data("conthover",1);t.data("conthover-changed",1);t.trigger("revolution.slide.onpause");i=t.parent().find(".tp-bannertimer");i.stop()})},revresume:function(){return this.each(function(){var t=n(this),i,r;t.data("conthover",0);t.data("conthover-changed",1);t.trigger("revolution.slide.onresume");i=t.parent().find(".tp-bannertimer");r=i.data("opt");i.animate({width:"100%"},{duration:r.delay-r.cd-100,queue:!1,easing:"linear"})})},revnext:function(){return this.each(function(){var t=n(this);t.parent().find(".tp-rightarrow").click()})},revprev:function(){return this.each(function(){var t=n(this);t.parent().find(".tp-leftarrow").click()})},revmaxslide:function(){return n(this).find(">ul:first-child >li").length},revcurrentslide:function(){var t=n(this),i=t.parent().find(".tp-bannertimer"),r=i.data("opt");return r.act},revlastslide:function(){var t=n(this),i=t.parent().find(".tp-bannertimer"),r=i.data("opt");return r.lastslide},revshowslide:function(t){return this.each(function(){var i=n(this);i.data("showus",t);i.parent().find(".tp-rightarrow").click()})}})}(jQuery);!function(n,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t(require,exports,module):n.ouibounce=t()}(this,function(){return function(n,t){"use strict";function f(n,t){return"undefined"==typeof n?t:n}function c(n){var i=864e5*n,t=new Date;return t.setTime(t.getTime()+i),"; expires="+t.toUTCString()}function d(){e()||(r.addEventListener("mouseleave",l),r.addEventListener("mouseenter",a),r.addEventListener("keydown",v))}function l(n){n.clientY>it||(u=setTimeout(o,p))}function a(){u&&(clearTimeout(u),u=null)}function v(n){h||n.metaKey&&76===n.keyCode&&(h=!0,u=setTimeout(o,p))}function g(n,t){return nt()[n]===t}function nt(){for(var t,i=document.cookie.split("; "),r={},n=i.length-1;n>=0;n--)t=i[n].split("="),r[t[0]]=t[1];return r}function e(){return g(s,"true")&&!tt}function o(){e()||(n&&(n.style.display="block"),ut(),y())}function y(n){var t=n||{};"undefined"!=typeof t.cookieExpire&&(w=c(t.cookieExpire));t.sitewide===!0&&(k=";path=/");"undefined"!=typeof t.cookieDomain&&(b=";domain="+t.cookieDomain);"undefined"!=typeof t.cookieName&&(s=t.cookieName);document.cookie=s+"=true"+w+b+k;r.removeEventListener("mouseleave",l);r.removeEventListener("mouseenter",a);r.removeEventListener("keydown",v)}var i=t||{},tt=i.aggressive||!1,it=f(i.sensitivity,20),rt=f(i.timer,1e3),p=f(i.delay,0),ut=i.callback||function(){},w=c(i.cookieExpire)||"",b=i.cookieDomain?";domain="+i.cookieDomain:"",s=i.cookieName?i.cookieName:"viewedOuibounceModal",k=i.sitewide===!0?";path=/":"",u=null,r=document.documentElement,h;return setTimeout(d,rt),h=!1,{fire:o,disable:y,isDisabled:e}}});currentTimer=0;$("#MainContent_cboFreightType").change(function(){freighttype=$("#MainContent_cboFreightType").val();ret=WordWebService.GetFreightRate(freighttype,OnGetFreightComplete,OnGetFreightTimeout,OnGetFreightError)});$("#MainContent_cboFreightTypeAjax").change(function(){GetFreightAjax()});$("#CartFreightShow").click(function(){$(".CartFreightTable").css("display","block")});$("#MainContent_cboBuyNowCreditCard").change(function(){$("#MainContent_SelectCreditCardRadioButton").attr("checked","checked")});$("#MainContent_txtCVNExisting").keypress(function(){$("#MainContent_SelectCreditCardRadioButton").attr("checked","checked")});$("#MainContent_txtCardNumber").keypress(function(){$("#MainContent_NewCreditCardRadioButton").attr("checked","checked")});$("#MainContent_txtCardName").keypress(function(){$("#MainContent_NewCreditCardRadioButton").attr("checked","checked")});$("#MainContent_txtCVN").keypress(function(){$("#MainContent_NewCreditCardRadioButton").attr("checked","checked")});gaJsHost="https:"==document.location.protocol?"https://ssl.":"http://www.";document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));try{pageTracker=_gat._getTracker("UA-6623376-1");pageTracker._trackPageview()}catch(err){}(function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX;e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f;s=e;i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX;s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}})(jQuery),function(n,t){function e(n,t,i){var r=s[t.type]||{};return n==null?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n))?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:r.max<n?r.max:n}function l(t){var e=i(),o=e._rgba=[];return(t=t.toLowerCase(),r(v,function(n,i){var r,s=i.re.exec(t),h=s&&i.parse(s),f=i.space||"rgba";if(h)return r=e[f](h),e[u[f].cache]=r[u[f].cache],o=e._rgba=r._rgba,!1}),o.length)?(o.join()==="0,0,0,0"&&n.extend(o,f.transparent),e):f[t]}function o(n,t,i){return(i=(i+1)%1,i*6<1)?n+(t-n)*i*6:i*2<1?t:i*3<2?n+(t-n)*(2/3-i)*6:n}var a=/^([\-+])=\s*(\d+\.?\d*)/,v=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1]*2.55,n[2]*2.55,n[3]*2.55,n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=i.support={},c=n("<p>")[0],f,r=n.each;c.style.cssText="background-color:rgba(1,1,1,.5)";h.rgba=c.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.fn=n.extend(i.prototype,{parse:function(o,s,h,c){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(s),s=t);var a=this,v=n.type(o),y=this._rgba=[];return(s!==t&&(o=[o,s,h,c],v="array"),v==="string")?this.parse(l(o)||f._default):v==="array"?(r(u.rgba.props,function(n,t){y[t.idx]=e(o[t.idx],t)}),this):v==="object"?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if(n==="alpha"||o[n]==null)return;a[u]=i.to(a._rgba)}a[u][t.idx]=e(o[n],t,!0)});a[u]&&n.inArray(null,a[u].slice(0,3))<0&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):void 0},is:function(n){var e=i(n),t=!0,f=this;return r(u,function(n,i){var o,u=e[i.cache];return u&&(o=f[i.cache]||i.to&&i.to(f._rgba)||[],r(i.props,function(n,i){if(u[i.idx]!=null)return t=u[i.idx]===o[i.idx]})),t}),t},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var f=i(n),c=f._space(),o=u[c],l=this.alpha()===0?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),h=a.slice();return f=f[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=f[c],o=s[i.type]||{};u!==null&&(r===null?h[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),h[c]=e((u-r)*t+r,i)))}),this[c](h)},blend:function(t){if(this._rgba[3]===1)return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return n==null?t>2?1:0:n});return t[3]===1&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return n==null&&(n=t>2?1:0),t&&t<3&&(n=Math.round(n*100)+"%"),n});return t[3]===1&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(r*255)),"#"+n.map(i,function(n){return n=(n||0).toString(16),n.length===1?"0"+n:n}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var i=n[0]/255,r=n[1]/255,f=n[2]/255,s=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,h=o*.5,c,l;return c=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,l=t===0?0:h<=.5?t/o:t/(2-o),[Math.round(c)%360,l,h,s==null?1:s]};u.hsla.from=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=t<=.5?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(o(f,i,r+1/3)*255),Math.round(o(f,i,r)*255),Math.round(o(f,i,r-1/3)*255),e]};r(u,function(u,f){var s=f.props,o=f.cache,h=f.to,c=f.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v=a==="array"||a==="object"?u:arguments,f=this[o].slice();return r(s,function(n,t){var i=v[a==="object"?n:t.idx];i==null&&(i=f[t.idx]);f[t.idx]=e(i,t)}),c?(l=i(c(f)),l[o]=f,l):i(f)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f=n.type(i),h=t==="alpha"?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx],e;return f==="undefined"?s:(f==="function"&&(i=i.call(this,s),f=n.type(i)),i==null&&r.empty)?this:(f==="string"&&(e=a.exec(i),e&&(i=s+parseFloat(e[2])*(e[1]==="+"?1:-1))),o[r.idx]=i,this[h](o))})})});i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if(u!=="transparent"&&(n.type(u)!=="string"||(o=l(u)))){if(u=i(o||u),!h.rgba&&u._rgba[3]!==1){for(f=r==="backgroundColor"?t.parentNode:t;(e===""||e==="transparent")&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(s){}u=u.blend(e&&e!=="transparent"?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(s){}}};n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0);n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})};i.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};f=n.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(n){function h(){function r(n){var f=n<1e12?f=performance.now?performance.now()+performance.timing.navigationStart:Date.now():n||(new Date).getTime();f-i>=1e3&&(u._updateTargets(),i=f);t(r)}this.regional=[];this.regional[""]={labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1};this._defaults={until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1};n.extend(this._defaults,this.regional[""]);this._serverSyncs=[];var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,i=0;!t||n.noRequestAnimationFrame?(n.noRequestAnimationFrame=null,setInterval(function(){u._updateTargets()},980)):(i=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||(new Date).getTime(),t(r))}function l(t,i){return t=="option"&&(i.length==0||i.length==1&&typeof i[0]=="string")?!0:n.inArray(t,c)>-1}var t=0,r=1,o=2,s=3,f=4,e=5,i=6,c,u;n.extend(h.prototype,{markerClassName:"hasCountdown",propertyName:"countdown",_rtlClass:"countdown_rtl",_sectionClass:"countdown_section",_amountClass:"countdown_amount",_rowClass:"countdown_row",_holdingClass:"countdown_holding",_showClass:"countdown_show",_descrClass:"countdown_descr",_timerTargets:[],setDefaults:function(t){this._resetExtraLabels(this._defaults,t);n.extend(this._defaults,t||{})},UTCDate:function(n,t,i,r,u,f,e,o){typeof t=="object"&&t.constructor==Date&&(o=t.getMilliseconds(),e=t.getSeconds(),f=t.getMinutes(),u=t.getHours(),r=t.getDate(),i=t.getMonth(),t=t.getFullYear());var s=new Date;return s.setUTCFullYear(t),s.setUTCDate(1),s.setUTCMonth(i||0),s.setUTCDate(r||1),s.setUTCHours(u||0),s.setUTCMinutes((f||0)-(Math.abs(n)<30?n*60:n)),s.setUTCSeconds(e||0),s.setUTCMilliseconds(o||0),s},periodsToSeconds:function(n){return n[0]*31557600+n[1]*2629800+n[2]*604800+n[3]*86400+n[4]*3600+n[5]*60+n[6]},_attachPlugin:function(t,i){if(t=n(t),!t.hasClass(this.markerClassName)){var r={options:n.extend({},this._defaults),_periods:[0,0,0,0,0,0,0]};t.addClass(this.markerClassName).data(this.propertyName,r);this._optionPlugin(t,i)}},_addTarget:function(n){this._hasTarget(n)||this._timerTargets.push(n)},_hasTarget:function(t){return n.inArray(t,this._timerTargets)>-1},_removeTarget:function(t){this._timerTargets=n.map(this._timerTargets,function(n){return n==t?null:n})},_updateTargets:function(){for(var n=this._timerTargets.length-1;n>=0;n--)this._updateCountdown(this._timerTargets[n])},_optionPlugin:function(t,i,r){var u,f,o,e;if(t=n(t),u=t.data(this.propertyName),!i||typeof i=="string"&&r==null)return f=i,i=(u||{}).options,i&&f?i[f]:i;t.hasClass(this.markerClassName)&&(i=i||{},typeof i=="string"&&(f=i,i={},i[f]=r),this._resetExtraLabels(u.options,i),o=u.options.timezone!=i.timezone,n.extend(u.options,i),this._adjustSettings(t,u,i.until!=null||i.since!=null||o),e=new Date,(u._since&&u._since<e||u._until&&u._until>e)&&this._addTarget(t[0]),this._updateCountdown(t,u))},_updateCountdown:function(t,i){var r=n(t),u,f,e;(i=i||r.data(this.propertyName),i)&&(r.html(this._generateHTML(i)).toggleClass(this._rtlClass,i.options.isRTL),n.isFunction(i.options.onTick)&&(u=i._hold!="lap"?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date),(i.options.tickInterval==1||this.periodsToSeconds(u)%i.options.tickInterval==0)&&i.options.onTick.apply(t,[u])),f=i._hold!="pause"&&(i._since?i._now.getTime()<i._since.getTime():i._now.getTime()>=i._until.getTime()),f&&!i._expiring?(i._expiring=!0,(this._hasTarget(t)||i.options.alwaysExpire)&&(this._removeTarget(t),n.isFunction(i.options.onExpiry)&&i.options.onExpiry.apply(t,[]),i.options.expiryText&&(e=i.options.layout,i.options.layout=i.options.expiryText,this._updateCountdown(t,i),i.options.layout=e),i.options.expiryUrl&&(window.location=i.options.expiryUrl)),i._expiring=!1):i._hold=="pause"&&this._removeTarget(t),r.data(this.propertyName,i))},_resetExtraLabels:function(n,t){var r=!1;for(var i in t)if(i!="whichLabels"&&i.match(/[Ll]abels/)){r=!0;break}if(r)for(i in n)i.match(/[Ll]abels[02-9]|compactLabels1/)&&(n[i]=null)},_adjustSettings:function(t,i,r){for(var h,f,e,u=0,s=null,o=0;o<this._serverSyncs.length;o++)if(this._serverSyncs[o][0]==i.options.serverSync){s=this._serverSyncs[o][1];break}s!=null?(u=i.options.serverSync?s:0,e=new Date):(h=n.isFunction(i.options.serverSync)?i.options.serverSync.apply(t,[]):null,e=new Date,u=h?e.getTime()-h.getTime():0,this._serverSyncs.push([i.options.serverSync,u]));f=i.options.timezone;f=f==null?-e.getTimezoneOffset():f;(r||!r&&i._until==null&&i._since==null)&&(i._since=i.options.since,i._since!=null&&(i._since=this.UTCDate(f,this._determineTime(i._since,null)),i._since&&u&&i._since.setMilliseconds(i._since.getMilliseconds()+u)),i._until=this.UTCDate(f,this._determineTime(i.options.until,e)),u&&i._until.setMilliseconds(i._until.getMilliseconds()+u));i._show=this._determineShow(i)},_destroyPlugin:function(t){(t=n(t),t.hasClass(this.markerClassName))&&(this._removeTarget(t[0]),t.removeClass(this.markerClassName).empty().removeData(this.propertyName))},_pausePlugin:function(n){this._hold(n,"pause")},_lapPlugin:function(n){this._hold(n,"lap")},_resumePlugin:function(n){this._hold(n,null)},_hold:function(t,i){var r=n.data(t,this.propertyName),u;r&&(r._hold!="pause"||i||(r._periods=r._savePeriods,u=r._since?"-":"+",r[r._since?"_since":"_until"]=this._determineTime(u+r._periods[0]+"y"+u+r._periods[1]+"o"+u+r._periods[2]+"w"+u+r._periods[3]+"d"+u+r._periods[4]+"h"+u+r._periods[5]+"m"+u+r._periods[6]+"s"),this._addTarget(t)),r._hold=i,r._savePeriods=i=="pause"?r._periods:null,n.data(t,this.propertyName,r),this._updateCountdown(t,r))},_getTimesPlugin:function(t){var i=n.data(t,this.propertyName);return i?i._hold=="pause"?i._savePeriods:i._hold?this._calculatePeriods(i,i._show,i.options.significant,new Date):i._periods:null},_determineTime:function(n,t){var r=function(n){var t=new Date;return t.setTime(t.getTime()+n*1e3),t},f=function(n){n=n.toLowerCase();for(var r=new Date,f=r.getFullYear(),e=r.getMonth(),i=r.getDate(),o=r.getHours(),s=r.getMinutes(),h=r.getSeconds(),c=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,t=c.exec(n);t;){switch(t[2]||"s"){case"s":h+=parseInt(t[1],10);break;case"m":s+=parseInt(t[1],10);break;case"h":o+=parseInt(t[1],10);break;case"d":i+=parseInt(t[1],10);break;case"w":i+=parseInt(t[1],10)*7;break;case"o":e+=parseInt(t[1],10);i=Math.min(i,u._getDaysInMonth(f,e));break;case"y":f+=parseInt(t[1],10);i=Math.min(i,u._getDaysInMonth(f,e))}t=c.exec(n)}return new Date(f,e,i,o,s,h,0)},i=n==null?t:typeof n=="string"?f(n):typeof n=="number"?r(n):n;return i&&i.setMilliseconds(0),i},_getDaysInMonth:function(n,t){return 32-new Date(n,t,32).getDate()},_normalLabels:function(n){return n},_generateHTML:function(h){var w=this,v,c;h._periods=h._hold?h._periods:this._calculatePeriods(h,h._show,h.options.significant,new Date);var b=!1,k=0,p=h.options.significant,l=n.extend({},h._show);for(c=t;c<=i;c++)b|=h._show[c]=="?"&&h._periods[c]>0,l[c]=h._show[c]=="?"&&!b?null:h._show[c],k+=l[c]?1:0,p-=h._periods[c]>0?1:0;for(v=[!1,!1,!1,!1,!1,!1,!1],c=i;c>=t;c--)h._show[c]&&(h._periods[c]?v[c]=!0:(v[c]=p>0,p--));var d=h.options.compact?h.options.compactLabels:h.options.labels,g=h.options.whichLabels||this._normalLabels,y=function(n){var t=h.options["compactLabels"+g(h._periods[n])];return l[n]?w._translateDigits(h,h._periods[n])+(t?t[n]:d[n])+" ":""},a=function(n){var t=h.options["labels"+g(h._periods[n])];return!h.options.significant&&l[n]||h.options.significant&&v[n]?'<span class="'+u._sectionClass+'"><span class="'+u._amountClass+'">'+w._translateDigits(h,h._periods[n])+"<\/span><br/>"+(t?t[n]:d[n])+"<\/span>":""};return h.options.layout?this._buildLayout(h,l,h.options.layout,h.options.compact,h.options.significant,v):(h.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(h._hold?" "+this._holdingClass:"")+'">'+y(t)+y(r)+y(o)+y(s)+(l[f]?this._minDigits(h,h._periods[f],2):"")+(l[e]?(l[f]?h.options.timeSeparator:"")+this._minDigits(h,h._periods[e],2):"")+(l[i]?(l[f]||l[e]?h.options.timeSeparator:"")+this._minDigits(h,h._periods[i],2):""):'<span class="'+this._rowClass+" "+this._showClass+(h.options.significant||k)+(h._hold?" "+this._holdingClass:"")+'">'+a(t)+a(r)+a(o)+a(s)+a(f)+a(e)+a(i))+"<\/span>"+(h.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+h.options.description+"<\/span>":"")},_buildLayout:function(u,h,c,l,a,v){for(var k,d,g=u.options[l?"compactLabels":"labels"],nt=u.options.whichLabels||this._normalLabels,p=function(n){return(u.options[(l?"compactLabels":"labels")+nt(u._periods[n])]||g)[n]},y=function(n,t){return u.options.digits[Math.floor(n/t)%10]},tt={desc:u.options.description,sep:u.options.timeSeparator,yl:p(t),yn:this._minDigits(u,u._periods[t],1),ynn:this._minDigits(u,u._periods[t],2),ynnn:this._minDigits(u,u._periods[t],3),y1:y(u._periods[t],1),y10:y(u._periods[t],10),y100:y(u._periods[t],100),y1000:y(u._periods[t],1e3),ol:p(r),on:this._minDigits(u,u._periods[r],1),onn:this._minDigits(u,u._periods[r],2),onnn:this._minDigits(u,u._periods[r],3),o1:y(u._periods[r],1),o10:y(u._periods[r],10),o100:y(u._periods[r],100),o1000:y(u._periods[r],1e3),wl:p(o),wn:this._minDigits(u,u._periods[o],1),wnn:this._minDigits(u,u._periods[o],2),wnnn:this._minDigits(u,u._periods[o],3),w1:y(u._periods[o],1),w10:y(u._periods[o],10),w100:y(u._periods[o],100),w1000:y(u._periods[o],1e3),dl:p(s),dn:this._minDigits(u,u._periods[s],1),dnn:this._minDigits(u,u._periods[s],2),dnnn:this._minDigits(u,u._periods[s],3),d1:y(u._periods[s],1),d10:y(u._periods[s],10),d100:y(u._periods[s],100),d1000:y(u._periods[s],1e3),hl:p(f),hn:this._minDigits(u,u._periods[f],1),hnn:this._minDigits(u,u._periods[f],2),hnnn:this._minDigits(u,u._periods[f],3),h1:y(u._periods[f],1),h10:y(u._periods[f],10),h100:y(u._periods[f],100),h1000:y(u._periods[f],1e3),ml:p(e),mn:this._minDigits(u,u._periods[e],1),mnn:this._minDigits(u,u._periods[e],2),mnnn:this._minDigits(u,u._periods[e],3),m1:y(u._periods[e],1),m10:y(u._periods[e],10),m100:y(u._periods[e],100),m1000:y(u._periods[e],1e3),sl:p(i),sn:this._minDigits(u,u._periods[i],1),snn:this._minDigits(u,u._periods[i],2),snnn:this._minDigits(u,u._periods[i],3),s1:y(u._periods[i],1),s10:y(u._periods[i],10),s100:y(u._periods[i],100),s1000:y(u._periods[i],1e3)},w=c,b=t;b<=i;b++)k="yowdhms".charAt(b),d=new RegExp("\\{"+k+"<\\}(.*)\\{"+k+">\\}","g"),w=w.replace(d,!a&&h[b]||a&&v[b]?"$1":"");return n.each(tt,function(n,t){var i=new RegExp("\\{"+n+"\\}","g");w=w.replace(i,t)}),w},_minDigits:function(n,t,i){return(t=""+t,t.length>=i)?this._translateDigits(n,t):(t="0000000000"+t,this._translateDigits(n,t.substr(t.length-i)))},_translateDigits:function(n,t){return(""+t).replace(/[0-9]/g,function(t){return n.options.digits[t]})},_determineShow:function(n){var u=n.options.format,h=[];return h[t]=u.match("y")?"?":u.match("Y")?"!":null,h[r]=u.match("o")?"?":u.match("O")?"!":null,h[o]=u.match("w")?"?":u.match("W")?"!":null,h[s]=u.match("d")?"?":u.match("D")?"!":null,h[f]=u.match("h")?"?":u.match("H")?"!":null,h[e]=u.match("m")?"?":u.match("M")?"!":null,h[i]=u.match("s")?"?":u.match("S")?"!":null,h},_calculatePeriods:function(n,h,c,l){var v,a,ut,b,p,w,y;if(n._now=l,n._now.setMilliseconds(0),v=new Date(n._now.getTime()),n._since?l.getTime()<n._since.getTime()?n._now=l=v:l=n._since:(v.setTime(n._until.getTime()),l.getTime()>n._until.getTime()&&(n._now=l=v)),a=[0,0,0,0,0,0,0],h[t]||h[r]){var k=u._getDaysInMonth(l.getFullYear(),l.getMonth()),nt=u._getDaysInMonth(v.getFullYear(),v.getMonth()),tt=v.getDate()==l.getDate()||v.getDate()>=Math.min(k,nt)&&l.getDate()>=Math.min(k,nt),it=function(n){return(n.getHours()*60+n.getMinutes())*60+n.getSeconds()},rt=Math.max(0,(v.getFullYear()-l.getFullYear())*12+v.getMonth()-l.getMonth()+(v.getDate()<l.getDate()&&!tt||tt&&it(v)<it(l)?-1:0));a[t]=h[t]?Math.floor(rt/12):0;a[r]=h[r]?rt-a[t]*12:0;l=new Date(l.getTime());ut=l.getDate()==k;b=u._getDaysInMonth(l.getFullYear()+a[t],l.getMonth()+a[r]);l.getDate()>b&&l.setDate(b);l.setFullYear(l.getFullYear()+a[t]);l.setMonth(l.getMonth()+a[r]);ut&&l.setDate(b)}if(p=Math.floor((v.getTime()-l.getTime())/1e3),w=function(n,t){a[n]=h[n]?Math.floor(p/t):0;p-=a[n]*t},w(o,604800),w(s,86400),w(f,3600),w(e,60),w(i,1),p>0&&!n._since){var ft=[1,12,4.3482,7,24,60,60],d=i,g=1;for(y=i;y>=t;y--)h[y]&&(a[d]>=g&&(a[d]=0,p=1),p>0&&(a[y]++,p=0,d=y,g=1)),g*=ft[y]}if(c)for(y=t;y<=i;y++)c&&a[y]?c--:c||(a[y]=0);return a}});c=["getTimes"];n.fn.countdown=function(n){var t=Array.prototype.slice.call(arguments,1);return l(n,t)?u["_"+n+"Plugin"].apply(u,[this[0]].concat(t)):this.each(function(){if(typeof n=="string"){if(!u["_"+n+"Plugin"])throw"Unknown command: "+n;u["_"+n+"Plugin"].apply(u,[this].concat(t))}else u._attachPlugin(this,n||{})})};u=n.countdown=new h}(jQuery),function(n){"use strict";function t(r,u,f,e){function a(n){n.timeout&&(s.cycleTimeout=setTimeout(function(){t(r,n,0,!n.rev)},n.timeout))}var l,c;if(!u.busy){var s=r[0].parentNode,h=r[u.currSlide],o=r[u.nextSlide];(s.cycleTimeout!==0||f)&&(f||!s.cyclePause?(u.before.length&&n.each(u.before,function(n,t){t.apply(o,[h,o,u,e])}),l=function(){i&&this.style.removeAttribute("filter");n.each(u.after,function(n,t){t.apply(o,[h,o,u,e])});a(u)},u.nextSlide!=u.currSlide&&(u.busy=1,n.fn.cycle.custom(h,o,u,l)),c=u.nextSlide+1==r.length,u.nextSlide=c?0:u.nextSlide+1,u.currSlide=c?r.length-1:u.nextSlide-1):a(u))}}function r(n,i,r){var u=n[0].parentNode,f=u.cycleTimeout;return f&&(clearTimeout(f),u.cycleTimeout=0),i.nextSlide=i.currSlide+r,i.nextSlide<0?i.nextSlide=n.length-1:i.nextSlide>=n.length&&(i.nextSlide=0),t(n,i,1,r>=0),!1}var u="Lite-1.7",i=/MSIE/.test(navigator.userAgent);n.fn.cycle=function(u){return this.each(function(){var f,a,l,c,v,h;u=u||{};this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=0;this.cyclePause=0;var e=n(this),s=u.slideExpr?n(u.slideExpr,this):e.children(),o=s.get();if(o.length<2){window.console&&console.log("terminating; too few slides: "+o.length);return}if(f=n.extend({},n.fn.cycle.defaults,u||{},n.metadata?e.metadata():n.meta?e.data():{}),a=n.isFunction(e.data)?e.data(f.metaAttr):null,a&&(f=n.extend(f,a)),f.before=f.before?[f.before]:[],f.after=f.after?[f.after]:[],f.after.unshift(function(){f.busy=0}),l=this.className,f.width=parseInt((l.match(/w:(\d+)/)||[])[1],10)||f.width,f.height=parseInt((l.match(/h:(\d+)/)||[])[1],10)||f.height,f.timeout=parseInt((l.match(/t:(\d+)/)||[])[1],10)||f.timeout,e.css("position")=="static"&&e.css("position","relative"),f.width&&e.width(f.width),f.height&&f.height!="auto"&&e.height(f.height),c=0,s.css({position:"absolute",top:0}).each(function(t){n(this).css("z-index",o.length-t)}),n(o[c]).css("opacity",1).show(),i&&o[c].style.removeAttribute("filter"),f.fit&&f.width&&s.width(f.width),f.fit&&f.height&&f.height!="auto"&&s.height(f.height),f.pause&&e.hover(function(){this.cyclePause=1},function(){this.cyclePause=0}),v=n.fn.cycle.transitions[f.fx],v&&v(e,s,f),s.each(function(){var t=n(this);this.cycleH=f.fit&&f.height?f.height:t.height();this.cycleW=f.fit&&f.width?f.width:t.width()}),f.cssFirst&&n(s[c]).css(f.cssFirst),f.timeout)for(f.speed.constructor==String&&(f.speed={slow:600,fast:200}[f.speed]||400),f.sync||(f.speed=f.speed/2);f.timeout-f.speed<250;)f.timeout+=f.speed;f.speedIn=f.speed;f.speedOut=f.speed;f.slideCount=o.length;f.currSlide=c;f.nextSlide=1;h=s[c];f.before.length&&f.before[0].apply(h,[h,h,f,!0]);f.after.length>1&&f.after[1].apply(h,[h,h,f,!0]);f.click&&!f.next&&(f.next=f.click);f.next&&n(f.next).unbind("click.cycle").bind("click.cycle",function(){return r(o,f,f.rev?-1:1)});f.prev&&n(f.prev).unbind("click.cycle").bind("click.cycle",function(){return r(o,f,f.rev?1:-1)});f.timeout&&(this.cycleTimeout=setTimeout(function(){t(o,f,0,!f.rev)},f.timeout+(f.delay||0)))})};n.fn.cycle.custom=function(t,i,r,u){var e=n(t),o=n(i),f;o.css(r.cssBefore);f=function(){o.animate(r.animIn,r.speedIn,r.easeIn,u)};e.animate(r.animOut,r.speedOut,r.easeOut,function(){e.css(r.cssAfter);r.sync||f()});r.sync&&f()};n.fn.cycle.transitions={fade:function(n,t,i){t.not(":eq(0)").hide();i.cssBefore={opacity:0,display:"block"};i.cssAfter={display:"none"};i.animOut={opacity:0};i.animIn={opacity:1}},fadeout:function(t,i,r){r.before.push(function(t,i,r,u){n(t).css("zIndex",r.slideCount+(u===!0?1:0));n(i).css("zIndex",r.slideCount+(u===!0?0:1))});i.not(":eq(0)").hide();r.cssBefore={opacity:1,display:"block",zIndex:1};r.cssAfter={display:"none",zIndex:0};r.animOut={opacity:0};r.animIn={opacity:1}}};n.fn.cycle.ver=function(){return u};n.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:!1,prev:null,speed:1e3,slideExpr:null,sync:!0,timeout:4e3}}(jQuery);isNewsTickerAutoEnabled=!0;jQuery.extend({init_news:function(n){function ut(n){isNewsTickerAutoEnabled&&(n||(n=0),myend=$("#"+y+" .news_hide_style").size(),myend=myend-1,n>=myend&&(n=0),$("#"+s+" #news_next").eq(n).click(),n=n+1)}function ct(n){isNewsTickerAutoEnabled&&(n||(n=0),myend=$(".news_hide_style").size(),myend=myend-1,n>=myend&&(n=0),$("#"+s+" #news_prev").eq(n).click(),n=n+1)}var f,r,w,p,d,g,nt,tt,rt,et,u,st,ht,o,v,ot;n=$.extend({firstname:"",secondname:"",thirdname:"",fourthname:"",playingtitle:"Now Playing:",nexttitle:"Next News:",prevtitle:"Prev News:",newsspeed:6e3,effectis:0,mouseover:!0,effectspeed:600,imagedir:"",newscountname:"",isauto:!0,disablenewscount:!1},n);var y=n.firstname,i=n.secondname,t=n.thirdname,s=n.fourthname,ft=n.newsspeed,it=n.effectis,a=n.playingtitle,h=n.nexttitle,c=n.prevtitle,lt=n.mouseover,e=n.effectspeed,b=n.imagedir,l=n.newscountname,k=n.isauto,at=n.disablenewscount;l&&(f=1);at===!0&&(r=1);it=parseInt(it,10);e=parseInt(e,10);w=$("#news_prev").attr("src");w||(w=b+"prev.gif");p=$("#news_next").attr("src");p||(p=b+"next.gif");d=$("#news_pause").attr("src");d||(d=b+"pause.gif");g=$("#news_prev0").attr("src");g||(g=b+"prev0.gif");nt=$("#news_next0").attr("src");nt||(nt=b+"next0.gif");tt=$("#news_pause0").attr("src");tt||(tt=b+"pause0.gif");u=$("#"+y+" .news_style").size();st=$("#"+y+" .news_style").eq(0).html();ht=$("#"+y+" .news_style").eq(1).attr("rel");o=0;$("#"+i).append(st);f===1&&r!=1&&$("#"+l).html("1/"+u);f!=1&&r!=1&&$("#"+t).html(a+"1/"+u+"<br>");$("#"+t).append(h+ht);$("#"+s+" #news_next").click(function(){var n;clearTimeout(v);$(this).attr({src:nt});$("#"+s+" #news_prev").attr({src:w});$("#"+s+" #news_pause").attr({src:d});o=o+1;o==u&&(o=0);var c=o+1,p=$("#"+y+" .news_style").eq(o).html(),b=c;b==u&&(b=0);n=$("#"+y+" .news_style").eq(b).attr("rel");switch(it){case 0:$("#"+i).fadeOut(e,function(){$("#"+i).empty();$("#"+i).html(p);f===1&&r!=1&&($("#"+l).html(c+"/"+u),$("#"+t).html(h+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+c+"/"+u+"<br>"),$("#"+t).append(h+n));r===1&&$("#"+t).html(h+n);$("#"+i).fadeIn(e)});break;case 1:$("#"+i).slideUp(e,function(){$("#"+i).empty();$("#"+i).html(p);f===1&&r!=1&&($("#"+l).html(c+"/"+u),$("#"+t).html(h+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+c+"/"+u+"<br>"),$("#"+t).append(h+n));r===1&&$("#"+t).html(h+n);$("#"+i).slideDown(e)});break;case 2:$("#"+i).animate({width:"0px",opacity:.33},e,function(){$("#"+i).empty();$("#"+i).html(p);$("#"+i).animate({width:"100%",opacity:1},e,function(){f===1&&r!=1&&($("#"+l).html(c+"/"+u),$("#"+t).html(h+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+c+"/"+u+"<br>"),$("#"+t).append(h+n));r===1&&$("#"+t).html(h+n)})});break;case 3:$("#"+i).html(p);f===1&&r!=1&&($("#"+l).html(c+"/"+u),$("#"+t).html(h+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+c+"/"+u+"<br>"),$("#"+t).append(h+n));r===1&&$("#"+t).html(h+n);break;default:$("#"+i).fadeOut(e,function(){$("#"+i).empty();$("#"+i).html(p);f===1&&r!=1&&($("#"+l).html(c+"/"+u),$("#"+t).html(h+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+c+"/"+u+"<br>"),$("#"+t).append(h+n));r===1&&$("#"+t).html(h+n);$("#"+i).fadeIn(e)})}k===!0&&(v=setTimeout(ut,ft,o))});$("#"+s+" #news_prev").click(function(){var w,nt,b,n;clearTimeout(v);$(this).attr({src:g});$("#"+s+" #news_next").attr({src:p});$("#"+s+" #news_pause").attr({src:d});o=o-1;o<0&&(o=u-1);w=o+1;nt=w-2;nt<0&&(nt=u-1);b=$("#"+y+" .news_style").eq(o).html();n=$("#"+y+" .news_style").eq(nt).attr("rel");switch(it){case 0:$("#"+i).fadeOut(e,function(){$("#"+i).empty();$("#"+i).html(b);f===1&&r!=1&&($("#"+l).html(w+"/"+u),$("#"+t).html(c+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+w+"/"+u+"<br>"),$("#"+t).append(c+n));r===1&&$("#"+t).html(c+n);$("#"+i).fadeIn(e)});break;case 1:$("#"+i).slideUp(e,function(){$("#"+i).empty();$("#"+i).html(b);f===1&&r!=1&&($("#"+l).html(w+"/"+u),$("#"+t).html(c+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+w+"/"+u+"<br>"),$("#"+t).append(c+n));r===1&&$("#"+t).html(c+n);$("#"+i).slideDown(e)});break;case 2:$("#"+i).animate({width:"0px",opacity:.33},e,function(){$("#"+i).empty();$("#"+i).html(b);$("#"+i).animate({width:"100%",opacity:1},e,function(){f===1&&r!=1&&($("#"+l).html(w+"/"+u),$("#"+t).html(c+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+w+"/"+u+"<br>"),$("#"+t).append(c+n));r===1&&$("#"+t).html(c+n)})});break;case 3:$("#"+i).html(b);f===1&&r!=1&&($("#"+l).html(w+"/"+u),$("#"+t).html(c+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+w+"/"+u+"<br>"),$("#"+t).append(c+n));r===1&&$("#"+t).html(c+n);break;default:$("#"+i).fadeOut(e,function(){$("#"+i).empty();$("#"+i).html(b);f===1&&r!=1&&($("#"+l).html(w+"/"+u),$("#"+t).html(h+n));f!=1&&r!=1&&($("#"+t).empty().html(a+""+w+"/"+u+"<br>"),$("#"+t).append(c+n));r===1&&$("#"+t).html(c+n);$("#"+i).fadeIn(e)})}k===!0&&(v=setTimeout(ct,ft,o))});$("#"+s+" #news_pause").click(function(){$(this).attr({src:tt});$("#"+s+" #news_next").attr({src:p});$("#"+s+" #news_prev").attr({src:w});clearTimeout(v)});lt===!0&&$("#"+i).hover(function(){clearTimeout(v);rt=$("#"+s+" #news_next").attr("src");et=$("#"+s+" #news_prev").attr("src");$("#"+s+" #news_pause").attr({src:tt});$("#"+s+" #news_next").attr({src:p});$("#"+s+" #news_prev").attr({src:w})},function(){$("#"+s+" #news_pause").attr({src:d});rt==p&&et==w&&k===!0&&(v=setTimeout(ut,100,o));rt===nt&&k===!0&&(v=setTimeout(ut,100,o));rt===p&&et===g&&k===!0&&(v=setTimeout(ct,100,o))});ot=window.setTimeout;window.setTimeout=function(n,t){if(typeof n=="function"){var i=Array.prototype.slice.call(arguments,2),r=function(){n.apply(null,i)};return ot(r,t)}return ot(n,t)};k===!0&&(v=setTimeout(ut,ft,1))}});productGroupID=0;$(document).ready(function(){var n=$find("autoComplete");n!==null&&(n.add_populating(function(){}),n.add_showing(function(n,t){currentSearchText&&currentSearchText==n._currentPrefix&&(n._hideCompletionList(),t.set_cancel(!0))}))});$(document).mouseup(function(n){CheckClickOutside(n,$("#HeaderTopSearchDropDownDisplay"),$("#HeaderTopSearchDropDown"),$("#HeaderTopSearchDropDown"));CheckClickOutside(n,$("#HeaderBottomLatestCatalogue"),$("#DropDownLatestCatalogueInner"),$("#DropDownLatestCatalogue"));CheckClickOutside(n,$("#HeaderBottomContactUs"),$("#DropDownContactUsInner"),$("#DropDownContactUs"));CheckClickOutside(n,$("#HeaderBottomStoreLocations"),$("#DropDownStoreLocationsInner"),$("#DropDownStoreLocations"));CheckClickOutside(n,$("#HeaderBottomGiftVoucher"),$("#DropDownGiftVoucherInner"),$("#DropDownGiftVoucher"));CheckClickOutside(n,$("#HeaderBottomInformation"),$("#DropDownInformationInner"),$("#DropDownInformation"));$(".AddToCartPopup").each(function(){CheckClickOutside(n,$(this),$(this),$(this))})});disableNextEnterKeyPress=!1;errorText='<div style="height: 500px; text-align: center; padding-top: 125px;">Sorry, an error has occurred trying to load your search results.<br />Please refresh the page to try again.<\/div>';$(document).ready(function(){var n;$(".banner").length>0&&(jQuery.fn.cssOriginal!=undefined&&(jQuery.fn.css=jQuery.fn.cssOriginal),n=$(".banner").revolution({delay:9e3,startwidth:767,startheight:160,hideThumbs:0,thumbWidth:100,thumbHeight:50,thumbAmount:3,navigationType:"bullet",navigationArrows:"solo",navigationStyle:"round",navigationHAlign:"right",navigationVAlign:"bottom",navigationHOffset:10,navigationVOffset:-25,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:10,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:10,soloArrowRightVOffset:0,touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,hideSliderAtLimit:0,fullWidth:"off",fullScreen:"off",shadow:1}));$(".bannerhomepage").length>0&&(jQuery.fn.cssOriginal!=undefined&&(jQuery.fn.css=jQuery.fn.cssOriginal),n=$(".bannerhomepage").revolution({delay:5e3,startwidth:767,startheight:160,hideThumbs:0,thumbWidth:100,thumbHeight:50,thumbAmount:3,navigationType:"none",navigationArrows:"solo",navigationStyle:"round",touchenabled:"on",onHoverStop:"on",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,hideSliderAtLimit:0,fullWidth:"off",fullScreen:"off",shadow:1}))});WordWebService=WordWebNew.WordWebService;$(document).ready(function(){$(".DropDownCategoryPanel").hide();$(".DropDownCategoryEbooks").show();$("#DropDownCategoryTextEbooks").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextEaudio").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextBooks").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextBibles").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextMinistry").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextReference").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextKidsTeens").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextDVDs").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextMusic").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextGifts").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextAudioBooks").hoverIntent(DropDownCategoryDisplay);$("#DropDownCategoryTextMarkdowns").hoverIntent(DropDownCategoryDisplay);SearchDropdownAdjustPadding()});$(function(){window.onpopstate=function(n){n.state!==null&&$("#AjaxSearchResults").html(n.state)}});window.bioEp={bgEl:{},popupEl:{},closeBtnEl:{},shown:!1,overflowDefault:"visible",transformDefault:"",width:400,height:220,html:"",css:"",fonts:[],delay:5,showOnDelay:!1,cookieExp:30,showOncePerSession:!1,onPopup:null,cookieManager:{create:function(n,t,i,r){var u="";r?u="; expires=0":i&&(r=new Date,r.setTime(r.getTime()+864e5*i),u="; expires="+r.toGMTString());document.cookie=n+"="+t+u+"; path=/"},get:function(n){var r,i,t;for(n+="=",r=document.cookie.split(";"),i=0;i<r.length;i++){for(t=r[i];" "==t.charAt(0);)t=t.substring(1,t.length);if(0===t.indexOf(n))return t.substring(n.length,t.length)}return null},erase:function(n){this.create(n,"",-1)}},checkCookie:function(){return 0>=this.cookieExp?this.showOncePerSession&&"true"==this.cookieManager.get("bioep_shown_session")?!0:(this.cookieManager.erase("bioep_shown"),!1):"true"==this.cookieManager.get("bioep_shown")?!0:!1},addCSS:function(){for(var n,t=0;t<this.fonts.length;t++)n=document.createElement("link"),n.href=this.fonts[t],n.type="text/css",n.rel="stylesheet",document.head.appendChild(n);t=document.createTextNode("#bio_ep_bg {display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; opacity: 0.3; z-index: 10001;}#bio_ep {display: none; position: fixed; width: "+this.width+"px; height: "+this.height+"px; font-family: 'Titillium Web', sans-serif; font-size: 16px; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); -webkit-transform: translateX(-50%) translateY(-50%); -ms-transform: translateX(-50%) translateY(-50%); background-color: #fff; box-shadow: 0px 1px 4px 0 rgba(0,0,0,0.5); z-index: 10002;}#bio_ep_close {position: absolute; left: 100%; margin: -8px 0 0 -12px; width: 20px; height: 20px; color: #fff; font-size: 12px; font-weight: bold; text-align: center; border-radius: 50%; background-color: #5c5c5c; cursor: pointer;}"+this.css);n=document.createElement("style");n.type="text/css";n.appendChild(t);document.head.insertBefore(n,document.getElementsByTagName("style")[0])},addPopup:function(){this.bgEl=document.createElement("div");this.bgEl.id="bio_ep_bg";document.body.appendChild(this.bgEl);document.getElementById("bio_ep")?this.popupEl=document.getElementById("bio_ep"):(this.popupEl=document.createElement("div"),this.popupEl.id="bio_ep",this.popupEl.innerHTML=this.html,document.body.appendChild(this.popupEl));document.getElementById("bio_ep_close")?this.closeBtnEl=document.getElementById("bio_ep_close"):(this.closeBtnEl=document.createElement("div"),this.closeBtnEl.id="bio_ep_close",this.closeBtnEl.appendChild(document.createTextNode("X")),this.popupEl.insertBefore(this.closeBtnEl,this.popupEl.firstChild))},showPopup:function(){this.shown||(this.bgEl.style.display="block",this.popupEl.style.display="block",this.scalePopup(),this.overflowDefault=document.body.style.overflow,document.body.style.overflow="hidden",this.shown=!0,this.cookieManager.create("bioep_shown","true",this.cookieExp,!1),this.cookieManager.create("bioep_shown_session","true",0,!0),"function"!=typeof this.onPopup)||this.onPopup()},hidePopup:function(){this.bgEl.style.display="none";this.popupEl.style.display="none";document.body.style.overflow=this.overflowDefault},scalePopup:function(){var n=bioEp.popupEl.offsetWidth,f=bioEp.popupEl.offsetHeight,e=window.innerWidth,r=window.innerHeight,t=0,i=0,u=n/f;n>e-40&&(t=e-40,i=t/u,i>r-40&&(i=r-40,t=i*u));0===i&&f>r-40&&(t=(r-40)*u);n=t/n;(0>=n||1<n)&&(n=1);""===this.transformDefault&&(this.transformDefault=window.getComputedStyle(this.popupEl,null).getPropertyValue("transform"));this.popupEl.style.transform=this.transformDefault+" scale("+n+")"},addEvent:function(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&n.attachEvent("on"+t,i)},loadEvents:function(){this.addEvent(document,"mouseout",function(n){n=n?n:window.event;"input"!=n.target.tagName.toLowerCase()&&(n.clientX>=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-50||50<=n.clientY||n.relatedTarget||n.toElement||bioEp.showPopup())}.bind(this));this.addEvent(this.closeBtnEl,"click",function(){bioEp.hidePopup()});this.addEvent(window,"resize",function(){bioEp.scalePopup()})},setOptions:function(n){this.width="undefined"==typeof n.width?this.width:n.width;this.height="undefined"==typeof n.height?this.height:n.height;this.html="undefined"==typeof n.html?this.html:n.html;this.css="undefined"==typeof n.css?this.css:n.css;this.fonts="undefined"==typeof n.fonts?this.fonts:n.fonts;this.delay="undefined"==typeof n.delay?this.delay:n.delay;this.showOnDelay="undefined"==typeof n.showOnDelay?this.showOnDelay:n.showOnDelay;this.cookieExp="undefined"==typeof n.cookieExp?this.cookieExp:n.cookieExp;this.showOncePerSession="undefined"==typeof n.showOncePerSession?this.showOncePerSession:n.showOncePerSession;this.onPopup="undefined"==typeof n.onPopup?this.onPopup:n.onPopup},domReady:function(n){"interactive"===document.readyState||"complete"===document.readyState?n():this.addEvent(document,"DOMContentLoaded",n)},init:function(n){"undefined"!=typeof n&&this.setOptions(n);this.addCSS();this.domReady(function(){bioEp.checkCookie()||(bioEp.addPopup(),setTimeout(function(){bioEp.loadEvents();bioEp.showOnDelay&&bioEp.showPopup()},1e3*bioEp.delay))})}};WordWebService=WordWebNew.WordWebService;$(document).ready(function(){if(!$("#exitIntentDisabled").data("disabled")){_ouibounce=ouibounce(document.getElementById("ouibounce-modal"),{aggressive:!1,sensitivity:20,timer:0,delay:0,cookieExpire:7,callback:function(){isNewsTickerAutoEnabled=!1}});function n(){$("#ouibounce-modal").hide();$("#QuickSignupForm").show();$("#QuickSignupSuccess").hide();$("#QuickSignupError").hide();isNewsTickerAutoEnabled=!0}$("body").on("click",function(){n()});$("#ouibounce-modal .modal-footer").on("click",function(){n()});$("#ouibounce-modal .modal").on("click",function(n){n.stopPropagation()})}});!function(n,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t(require,exports,module):n.ouibounce=t()}(this,function(){return function(n,t){"use strict";function f(n,t){return"undefined"==typeof n?t:n}function c(n){var i=864e5*n,t=new Date;return t.setTime(t.getTime()+i),"; expires="+t.toUTCString()}function d(){e()||(r.addEventListener("mouseleave",l),r.addEventListener("mouseenter",a),r.addEventListener("keydown",v))}function l(n){n.clientY>it||(u=setTimeout(o,p))}function a(){u&&(clearTimeout(u),u=null)}function v(n){h||n.metaKey&&76===n.keyCode&&(h=!0,u=setTimeout(o,p))}function g(n,t){return nt()[n]===t}function nt(){for(var t,i=document.cookie.split("; "),r={},n=i.length-1;n>=0;n--)t=i[n].split("="),r[t[0]]=t[1];return r}function e(){return g(s,"true")&&!tt}function o(){e()||(n&&(n.style.display="block"),ut(),y())}function y(n){var t=n||{};"undefined"!=typeof t.cookieExpire&&(w=c(t.cookieExpire));t.sitewide===!0&&(k=";path=/");"undefined"!=typeof t.cookieDomain&&(b=";domain="+t.cookieDomain);"undefined"!=typeof t.cookieName&&(s=t.cookieName);document.cookie=s+"=true"+w+b+k;r.removeEventListener("mouseleave",l);r.removeEventListener("mouseenter",a);r.removeEventListener("keydown",v)}var i=t||{},tt=i.aggressive||!1,it=f(i.sensitivity,20),rt=f(i.timer,1e3),p=f(i.delay,0),ut=i.callback||function(){},w=c(i.cookieExpire)||"",b=i.cookieDomain?";domain="+i.cookieDomain:"",s=i.cookieName?i.cookieName:"viewedOuibounceModal",k=i.sitewide===!0?";path=/":"",u=null,r=document.documentElement,h;return setTimeout(d,rt),h=!1,{fire:o,disable:y,isDisabled:e}}})