jQuery.noConflict();Array.prototype.has=function(b){for(var a=0;a<this.length;a++)if(this[a]===b)return a;return false};Array.prototype.remove=function(a,c){var b=this.slice((c||a)+1||this.length);this.length=a<0?this.length+a:a;return this.push.apply(this,b)};var defaultButtonPanelClassName=".ddogPanel";jQuery(function(){jQuery(document).ready(function(){jQuery(".wantsDefaultButton").focus(function(){initDefaultBehaviours(this)})});initDefaultBehaviours=function(a){jQuery(a).keypress(function(c){if(c.which&&c.which==13||c.keyCode&&c.keyCode==13){c.preventDefault();var b=null;b=jQuery(a).parents(defaultButtonPanelClassName).find(".isDefaultButton");b.length==0&&alert("ERROR: No def button found");b.length>1&&alert("ERROR: Only one default button in a panel ("+defaultButtonPanelClassName+") allowed.");b.hasClass("customTracking")&&setCustomTrackingCookie();if(b&&b.attr("tagName")=="A"){var d=jQuery.data(b.get(0),"events");if(d!=null&&typeof d.click=="object"&&b.hasClass("setLocation")==false)b.trigger("click");else window.location=b.attr("href")}else b.click();return false}})}});jQuery(document).ready(function(){jQuery(".productGridThreeColumn span.center .linkButton").each(function(){var a=jQuery(this).width()+12;jQuery(this).parent().attr("style","width:"+a+"px;");jQuery(this).show()});jQuery("#productCompareTable span.center .linkButton").each(function(){var a=jQuery(this).width()+12;jQuery(this).parent().attr("style","width:"+a+"px;");jQuery(this).show()});jQuery(".banner span.center .linkButton").each(function(){var a=jQuery(this).width()+12;jQuery(this).parent().attr("style","width:"+a+"px;");jQuery(this).show()});jQuery(".banner span.center .readMore").each(function(){var a=jQuery(this).width()+12;jQuery(this).parent().attr("style","width:"+a+"px;");jQuery(this).show()});jQuery(".articleBanner .readMoreArrow").each(function(){var a=jQuery(this).width()+12;jQuery(this).parent().attr("style","width:"+a+"px;");jQuery(this).show()});jQuery("#siteSeekerProdList span.center .linkButton").each(function(){var a=jQuery(this).width()+12;jQuery(this).parent().attr("style","width:"+a+"px;");jQuery(this).show()})});jQuery(document).ready(function(){var a=jQuery("#dropupContent");jQuery("#dropupTrigger").click(function(){if(a.is(":visible"))a.slideUp(200);else a.slideDown(200)});jQuery("#dropupContent").mouseover(function(){jQuery(this).bind("mouseleave",function(){jQuery(this).slideUp(200)})});jQuery("#dropupTrigger span").text(jQuery("#dropupContent ul li a.selected").text())});jQuery(document).ready(function(){jQuery.fn.hoverIntent=function(i,j){var a={sensitivity:7,interval:100,timeout:0};a=jQuery.extend(a,j?{over:i,out:j}:i);var c,d,e,f,b=function(a){c=a.pageX;d=a.pageY},h=function(i,g){g.hoverIntent_t=clearTimeout(g.hoverIntent_t);if(Math.abs(e-c)+Math.abs(f-d)<a.sensitivity){jQuery(g).unbind("mousemove",b);g.hoverIntent_s=1;return a.over.apply(g,[i])}else{e=c;f=d;g.hoverIntent_t=setTimeout(function(){h(i,g)},a.interval)}},k=function(c,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;return a.out.apply(b,[c])},g=function(d){var g=(d.type=="mouseover"?d.fromElement:d.toElement)||d.relatedTarget;while(g&&g!=this)try{g=g.parentNode}catch(d){g=this}if(g==this)return false;var i=jQuery.extend({},d),c=this;if(c.hoverIntent_t)c.hoverIntent_t=clearTimeout(c.hoverIntent_t);if(d.type=="mouseover"){e=i.pageX;f=i.pageY;jQuery(c).bind("mousemove",b);if(c.hoverIntent_s!=1)c.hoverIntent_t=setTimeout(function(){h(i,c)},a.interval)}else{jQuery(c).unbind("mousemove",b);if(c.hoverIntent_s==1)c.hoverIntent_t=setTimeout(function(){k(i,c)},a.timeout)}};return this.mouseover(g).mouseout(g)}});var compareArray=[],maxNrOfCompareItems=4,doroCompareCookie="doroCompareProducts",inactiveButtonClass="inactive";function updateView(){checkIfCompareArrayIsFull();checkIfCompareArrayIsEmpty();displayCompareItemsInList();bindCompareProductsEvents()}function addToCompare(a){compareArray.has(a)===false&&compareArray.length<maxNrOfCompareItems&&compareArray.push(a);updateCompareData();updateView()}function removeFromCompare(b){var a=compareArray.has(b);a!==false&&compareArray.remove(a);updateCompareData();updateView()}function updateCompareData(){jQuery.cookie(doroCompareCookie,compareArray,{path:"/"})}function populateCompareArray(){var a=jQuery.cookie(doroCompareCookie);if(a!==null&&a.length>0)compareArray=a.split(/,/)}function bindCompareProductsEvents(){jQuery("#compareProducts li > a").click(bindCompareProductsRemoveClick)}var bindCompareProductsRemoveClick=function(){var a=jQuery(this).find("img").attr("alt");removeCheckboxSelectionOnCurrentView(a)};function bindCompareCheckboxEvents(){jQuery("#compareableProducts .productCompareCheckbox input:checkbox").click(bindCompareCheckboxClick)}var bindCompareCheckboxClick=function(){var b=jQuery(this).is(":checked"),a=jQuery(this).attr("value");if(b)addToCompare(a);else removeFromCompare(a)};function displayCompareItemsInList(){jQuery("#compareProducts li").remove();for(var a=0;a<maxNrOfCompareItems;a++){var b=compareArray[a];if(b!=undefined)jQuery("#compareProducts").append('<li><a href="javascript:;"><span class="removeComparison"></span><img src="/productimage.axd?pageid='+b+'&configkey=ProductCompareImageQuery" alt="'+b+'" /></a></li>');else jQuery("#compareProducts").append("<li><span>"+(a+1)+"</span></li>")}}function checkIfCompareItemsExistsOnCurrentView(){jQuery("#compareableProducts .productCompareCheckbox input:checkbox").each(function(){var a=jQuery(this).val();(compareArray.has(a)||compareArray.has(a)===0)&&jQuery(this).attr("checked",true)})}function removeCheckboxSelectionOnCurrentView(b){var a=jQuery('#compareableProducts .productCompareCheckbox input:checkbox[value="'+b+'"]');a.length>0&&a.attr("checked",false);removeFromCompare(b);updateView()}function checkIfCompareArrayIsFull(){var a=maxNrOfCompareItems===compareArray.length;jQuery("#compareableProducts .productCompareCheckbox input:checkbox").not(":checked").attr("disabled",a)}function checkIfCompareArrayIsEmpty(){var a=jQuery("span#compareButtonText").closest("a");if(compareArray.length===0){a.bind("click",disableLink);a.addClass(inactiveButtonClass)}else{a.unbind("click",disableLink);a.removeClass(inactiveButtonClass)}}function disableLink(a){a.preventDefault();return false}function initComparer(){populateCompareArray();displayCompareItemsInList();checkIfCompareItemsExistsOnCurrentView();checkIfCompareArrayIsFull();checkIfCompareArrayIsEmpty();bindCompareCheckboxEvents();bindCompareProductsEvents()}jQuery(document).ready(function(){});jQuery(document).ready(function(){jQuery("#productImagesAndColors ul.imagegallery a").click(function(c){c.preventDefault();var a=jQuery(this).attr("href"),b=jQuery(this).attr("rel");jQuery("#mediumImage img:first").attr("src",a);jQuery("#mediumImage a:first").attr("href",b)});jQuery("#productImagesAndColors #zoomImage a").click(function(){jQuery("#mediumImage a").click()});jQuery("#productImagesAndColors #mediumImage a").fancybox({speedIn:200,speedOut:200,overlayOpacity:.1,overlayShow:true})});jQuery(document).ready(function(){jQuery(".tooltips").hover(function(){jQuery(this).contents("span:last-child").css({display:"block"})},function(){jQuery(this).contents("span:last-child").css({display:"none"})});jQuery(".tooltips").mousemove(function(b){var a=jQuery("#pageBodyTop").offset(),d=jQuery(this).contents("span:last-child").width(),c=jQuery(this).contents("span:last-child").height(),e=b.pageX-a.left-Math.floor(d/2),f=b.pageY-a.top-(c+54);jQuery(this).contents("span:last-child").css({top:f,left:e})})});jQuery(document).ready(function(){var a=jQuery("#flowpanes div.items > a").length;a>0&&jQuery("#flowpanes").scrollable({circular:true}).autoscroll({autoplay:true,interval:5e3}).navigator({navi:"#flowtabs",naviItem:"a",activeClass:"current",history:true})});jQuery(document).ready(function(){function a(){jQuery(this).find(".sub").stop().css("filter","none").show();jQuery.fn.calcSubWidth=function(){rowWidth=0;jQuery(this).find("ul").each(function(){rowWidth+=jQuery(this).width()})};if(jQuery(this).find(".row").length>0){var a=0;jQuery(this).find(".row").each(function(){jQuery(this).calcSubWidth();if(rowWidth>a)a=rowWidth});jQuery(this).find(".sub").css({width:a});jQuery(this).find(".row:last").css({margin:"0"})}else{jQuery(this).calcSubWidth();jQuery(this).find(".sub").css({width:rowWidth})}}function b(){jQuery(this).find(".sub").stop().hide()}var c={sensitivity:10,interval:200,over:a,timeout:200,out:b};jQuery("ul#topNavExtra li").hoverIntent(c)});jQuery(document).ready(function(){jQuery("a[href^='http']").not("[href*='www.doro']").addClass("external");jQuery("a.external").click(function(){window.open(this.href);return false})});jQuery(document).ready(function(){jQuery("#pageBody .productSearchResult ul li:odd").addClass("odd");jQuery("#GlobalSearchResult li:odd").addClass("odd");jQuery("#archiveSearchResults li:odd").addClass("odd");jQuery("ul.retailerList li:nth-child(5n+1)").addClass("clearLeft");jQuery("ul.retailerList li:nth-child(5n)").addClass("noMarginRight");jQuery(".paneAccessories ul li:nth-child(3n+1)").addClass("clearLeft");jQuery("#wordExplanation div:nth-child(3n+1)").addClass("clearLeft");jQuery("#productCompareTable td:last-child").addClass("last");jQuery("#productCompareTable th:last-child").addClass("last");jQuery("#dropupContent ul:first").addClass("first");jQuery(".paneCategories ol li:nth-child(3n)").addClass("noMarginRight");jQuery(".paneCategories ol li:gt(2)").addClass("noMarginBottom");jQuery(".partnerDistributorsList > li:even").addClass("clearLeft");jQuery("#siteSeekerProdList li:nth-child(4n) a").addClass("noMarginRight");jQuery(".siteSeekerPageResultItem:odd").addClass("odd");jQuery(".siteSeekerImageResultList li:nth-child(6n)").addClass("noMarginRight");jQuery("#textSizeToggler").click(function(){jQuery(".articleTextContent").toggleClass("em13")});jQuery("ul#faq .faqAnswer").hide();jQuery("ul#faq h5").click(function(){var b=jQuery(this),a=jQuery(this).next(".faqAnswer");if(a.is(":visible"))jQuery(a).slideUp(200,function(){jQuery(b).removeClass("selected")});else{jQuery(b).addClass("selected");jQuery(a).slideDown(200)}});jQuery("#searchOtherProductsDiv .searchOtherProductsButton").click(function(){jQuery("#searchOtherProductsContent").slideToggle("200",function(){})});jQuery("#wordExplanation div:nth-child(3n)").addClass("noMarginRight");jQuery(".sharesTable th:first").addClass("first");jQuery(".sharesTable th:last").addClass("last");jQuery(".sharesTable td:first").addClass("first");jQuery(".sharesTable td:last").addClass("last");jQuery("#subscriptionBoxToggle").click(function(){jQuery("#subscriptionBoxContent").slideToggle("slow")});jQuery("#voipListTrigger a,#voipListTriggerLink").click(function(){jQuery("#voipListDiv").slideToggle("fast",function(){if(jQuery("#voipList").is(":visible")){jQuery("#voipListShow").hide();jQuery("#voipListHide").css("display","block")}else{jQuery("#voipListShow").css("display","block");jQuery("#voipListHide").hide()}})});jQuery("#cultureSelect .cultureSelectLangToggle").click(function(){jQuery("#cultureSelectLanguages").slideToggle("fast");jQuery("#cultureSelect .cultureSelectLangToggle").toggleClass("open")});function a(){jQuery.cookie("CustomTrackingVar",true,{path:"/"})}jQuery("[id$='manualSearch__lnkSearch']").click(function(){a()});jQuery("[id$='searchBar__btnSearch']").click(function(){a()})});jQuery(document).ready(function(){jQuery("a.magnify").fancybox({speedIn:200,speedOut:200,overlayOpacity:.1,overlayShow:true,titleShow:false})});function setCustomTrackingCookie(){jQuery.cookie("CustomTrackingVar",true,{path:"/"})}jQuery(document).ready(function(){jQuery("[id$='manualSearch__lnkSearch']").click(function(){setCustomTrackingCookie()});jQuery("[id$='searchBar__btnSearch']").click(function(){setCustomTrackingCookie()})});jQuery(document).ready(function(){var a=1;jQuery("#simplifiedThumbList li img").each(function(){var d=jQuery(this);d.attr("rel","simplifiedProduct-"+a);a==1&&jQuery(this).parent().addClass("active");d.click(function(){jQuery("#simplifiedThumbList li img").parent().removeClass("active");jQuery(this).parent().addClass("active");b();c(d.attr("rel"))});a++});var a=1;jQuery("#simplifiedProductInfo .simplifiedProduct").each(function(){var b=jQuery(this);a!=1&&b.hide(b);b.attr("id","simplifiedProduct-"+a);a++});function b(a){if(a)jQuery(a).hide();else jQuery("#simplifiedProductInfo .simplifiedProduct").hide()}function c(b){var a="#"+b;jQuery(a).show()}jQuery("#retailerBannerListWrapper").hide();jQuery(".retailerBanner, .retailerBannerListArrow").click(function(){jQuery("#retailerBannerListWrapper").slideToggle()})});jQuery(document).ready(function(){a();function a(){try{var a=jQuery(".overlayProduct .center.cursor").width();if(!isNaN(a)){var b=0-a*.5;jQuery(".overlayProduct .center.cursor").css("margin-left",b)}}catch(c){}}})
