/*! jQuery UI - v1.8.23 - 2012-08-15 * https://github.com/jquery/jquery-ui * Includes: jquery.ui.core.js * Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ function productDetailsScroll(){$(".no-touch .product-details-region").length>0&&$(".product-details-region .x-tab-panel .tabs-content .tab-content .nano").each(function(){$(this).parent().hasClass("active")&&$(this).nanoScroller()})}function productDetailsOwl(){$(".product-details-region").length>0&&($(".x-product-list.collection").length>0&&$(".x-product-list.collection > ul").owlCarousel({items:3,itemsDesktop:[1500,3],itemsDesktopSmall:[960,3],itemsTablet:[768,2],itemsMobile:[480,2],navigation:!0,navigationText:!1,pagination:!0,addClassActive:!0,responsiveRefreshRate:100}),$(".region-area-two .inner-area-two .box-two .x-product-list").length>0&&$(".box-two .x-product-list > ul > li").length>0&&$(".box-two .x-product-list > ul").owlCarousel({items:3,itemsDesktop:[1500,3],itemsDesktopSmall:[960,3],itemsTablet:[768,2],itemsMobile:[480,2],navigation:!0,navigationText:!1,pagination:!0,addClassActive:!0,responsiveRefreshRate:100}))}function initProductDetails(){$(".productDetails .mainThumbs li a").on("click",onThumbClick);$(".productDetails .mainThumbs li a.clickMeOnload").trigger("click");$(".mainImageControls .largerBtn").click(function(e){var parentDiv=$(this).closest(".productDetails"),selIndex=parentDiv.find(".mainThumbs li.selected").index()+1;parentDiv.find(".fancyThumbs li:nth-child("+selIndex+") a").trigger("click");e.preventDefault()});$(".skuRow.dim1 select").change(function(){var val=$(this).val(),galleryData=getSkuGallery(skuman.productData.productId,val);updateGallery(galleryData)});$(".productDetails .cartLink").on("click",onAddToCartClick);$(".productDetails .wishListLink").on("click",onAddToWishlistClick);$availabilityTypesContainer=$(".availabilityTypes");$availabilityActionsContainer=$(".availabilityActions");$cartButton=$(".productDetails .cartLink");$dim1DropDown=$(".dim1DropDown");$dim2DropDown=$(".dim2DropDown");$dim3DropDown=$(".dim3DropDown");$quantityDropDown=$(".quantDropDown");$quantityDropDown.change(function(){skuman.quantity=parseInt($quantityDropDown.val())});initSkuValidation()}function initSkuValidation(){var productStatisticsDataArray;if(typeof productDetailsData!="undefined"){skuman=new SKUManager(productDetailsData);var dim1val="",dim2val="",dim3val="";$dim1DropDown.length>0&&(dim1val=$dim1DropDown.val(),$dim1DropDown.change(onDimentionValueChange));$dim2DropDown.length>0&&(dim2val=$dim2DropDown.val(),$dim2DropDown.change(onDimentionValueChange));$dim3DropDown.length>0&&(dim3val=$dim3DropDown.val(),$dim3DropDown.change(onDimentionValueChange));skuman.setValues(dim1val,dim2val,dim3val,parseInt($quantityDropDown.val()));skuman.skuId>0&&(productStatisticsDataArray=[{SkuId:skuman.skuId,Action:"IncreaseImpressions"}],LhApp.Function.wcf("StatsService.svc/ManipulateProductStatistics",{data:productStatisticsDataArray},function(){}))}}function onDimentionValueChange(){var val=$(this).val(),productStatisticsDataArray;$(this).is($dim1DropDown)?skuman.setValues(val,null,null,null):$(this).is($dim2DropDown)?skuman.setValues(null,val,null,null):$(this).is($dim3DropDown)&&skuman.setValues(null,null,val,null);updateView();typeof changeProductAvailabilityNotificationData=="function"&&changeProductAvailabilityNotificationData();skuman.skuId>0&&(productStatisticsDataArray=[{SkuId:skuman.skuId,Action:"IncreaseImpressions"}],LhApp.Function.wcf("StatsService.svc/ManipulateProductStatistics",{data:productStatisticsDataArray},function(){}))}function updateView(){updatePriceView(skuman.unitPrice,skuman.deletedPrice);updateQuantityView(skuman.canAddToCart,skuman.stock,skuman.maxQuantity);updatAvailabilityView(skuman.availabilityActionId,skuman.availabilityTypeId,skuman.canAddToCart)}function updatePriceView(normalPrice,deletedPrice){var $normPriceWrapper=$(".price .normal"),$normPrice,$delPriceWrapper,$delPrice;normalPrice!=null?($normPrice=$(".price",$normPriceWrapper),normalPrice>0?($normPrice.html(LhApp.Function.renderPrice(normalPrice)),$normPrice.show(),$normPriceWrapper.show()):($normPriceWrapper.hide(),$normPrice.hide())):$normPriceWrapper.hide();$delPriceWrapper=$(".price .deleted");deletedPrice!=null?($delPrice=$(".price",$delPriceWrapper),deletedPrice>0?($delPrice.html(LhApp.Function.renderPrice(deletedPrice)),$delPriceWrapper.show(),$delPrice.show()):($delPriceWrapper.hide(),$delPrice.hide())):$delPriceWrapper.hide()}function updateQuantityView(canAddToCart,stock,max){var update=!0,i;if(stock==0&&canAddToCart>0&&(stock=1),$options=$quantityDropDown.children(),stock==0&&$options.length==1&&$options.first().val()=="0"&&(update=!1),$options.length==stock&&stock>1&&(update=!1),update){for($options.remove(),i=0,stock>0&&(i=1),i;i<=stock;i++)if($quantityDropDown.append($("