var polycomProducts=new Array();var disqualifedProducts=new Array();var qualifiedProducts=new Array();var translatedNumbers=new Array();var ITEM_FADE_SPEED=350;var ITEM_OPACITY_AVAILABLE=1;var ITEM_OPACITY_NOT_AVAILABLE=0.2;var OVERLAY_HEIGHT=350;var OVERLAY_WIDTH=658;var OVERLAY_FADEIN_SPEED=300;var TAB_FADEIN_SPEED=400;var VERTICAL_OFFSET=228;var HORIZONTAL_OFFSET=$.browser.msie?18:10;var RESULTS_HEADER="";var RECOMMENDED_PRODUCTS_NONE="";var RECOMMENDED_PRODUCTS_SINGLE="";var RECOMMENDED_PRODUCTS_PLURAL="";var MAKE_VALID_SELECTION="";var questionAnswerKey="";var isPartner=false;var partnerQS="";var campaignIdQS="";var localQS="";var IE5_IE6=(/MSIE ((5\.5)|6)/.test(navigator.userAgent)&&navigator.platform=="Win32");var blank=new Image();blank.src="images/clear.gif";var hbx_homepage="";$(document).ready(function(){$("#productRecommendationForm div#q2").hide();$("#productRecommendationForm div#q4").hide();$("#productRecommendationForm div#q5").hide();$("#productRecommendationForm div#q4_no").hide();$("#productRecommendationForm div#q5_no").hide();$("#productRecommendationForm div#q6_yes").hide();$("#btnPrintRecommendedProducts").hide();$("#noProductsFoundMessage").hide();if(IE5_IE6){$("img[src$=.png]").each(function(){if(!this.complete){this.onload=function(){fixPng(this)}}else{fixPng(this)}})}localQS=$.query.get("local");partnerQS=$.query.get("partner");campaignIdQS=$.query.get("cmpid");if(localQS==""){localQS="us"}else{localQS=localQS.toLowerCase()}setLocalCSS(localQS);if(partnerQS==""){$.getScript("/javascript/hbxvariables.js",function(){$.getScript("/global/javascript/hbx.js")});$.getScript("/javascript/unica_variables.js",function(){$.getScript("/global/javascript/ntpagetag.js")})}else{isPartner=true;$("#top_logo a").removeAttr("href")}if(campaignIdQS==""){campaignIdQS="conf-finder_plcm-site"}$.ajax({url:!isPartner?getLocalDataFile(localQS):getPartnerDataFile(partnerQS),dataType:(jQuery.browser.msie)?"text":"xml",success:function(a){var b;if(typeof a=="string"){b=new ActiveXObject("Microsoft.XMLDOM");b.async=false;b.loadXML(a)}else{b=a}$(b).find("product").each(function(){polycomProduct=new PolycomProductVO($(this).find("name").text(),$(this).find("altName").text(),$(this).find("productKey").text(),$(this).find("url").text(),$(this).find("imageThumbnail").text(),$(this).find("imageProductOverview").text(),$(this).find("description").text(),$(this).find("featuresBenefits").text(),$(this).find("datasheet").text(),$(this).find("compareLink").text(),$(this).find("buyNow").text(),$(this).find("buyNowLink").text(),$(this).find("question1").text(),$(this).find("question2").text(),$(this).find("question3").text(),$(this).find("question4").text(),$(this).find("question5").text(),$(this).find("question6").text(),$(this).find("question7").text());polycomProducts.push(polycomProduct)});$(b).find("translations").each(function(){polycomTranslation=new PolycomTranslationVO($(this).find("selectAConferencePhone").text(),$(this).find("polycomPhone").text(),$(this).find("haveSalesContactMe").text(),$(this).find("clickToChat").text(),$(this).find("requirementsHeader").text(),$(this).find("resultsHeader").text(),$(this).find("printButton").text(),$(this).find("refineRequirements").text(),$(this).find("q1").text(),$(this).find("q1A1").text(),$(this).find("q1A1Title").text(),$(this).find("q1A2").text(),$(this).find("q1A2Title").text(),$(this).find("q2").text(),$(this).find("q2A1").text(),$(this).find("q2A1Title").text(),$(this).find("q2A2").text(),$(this).find("q2A2Title").text(),$(this).find("q2A3").text(),$(this).find("q2A3Title").text(),$(this).find("q3").text(),$(this).find("q3A1").text(),$(this).find("q3A1Title").text(),$(this).find("q3A2").text(),$(this).find("q3A2Title").text(),$(this).find("q3A3").text(),$(this).find("q3A3Title").text(),$(this).find("q4").text(),$(this).find("q4A1").text(),$(this).find("q4A1Title").text(),$(this).find("q4A2").text(),$(this).find("q4A2Title").text(),$(this).find("q4A2No").text(),$(this).find("q5").text(),$(this).find("q5A1").text(),$(this).find("q5A1Title").text(),$(this).find("q5A2").text(),$(this).find("q5A2Title").text(),$(this).find("q5A2No").text(),$(this).find("q6").text(),$(this).find("q6A1").text(),$(this).find("q6A1Title").text(),$(this).find("q6A2").text(),$(this).find("q6A2Title").text(),$(this).find("q6A1Yes").text(),$(this).find("q7").text(),$(this).find("q7A1").text(),$(this).find("q7A1Title").text(),$(this).find("q7A2").text(),$(this).find("q7A2Title").text(),$(this).find("resetButton").text(),$(this).find("noProductsFound").text(),$(this).find("copyright").text(),$(this).find("details").text(),$(this).find("productOverview").text(),$(this).find("featuresAndBenefits").text(),$(this).find("howToBuy").text(),$(this).find("moreInformation").text(),$(this).find("datasheet").text(),$(this).find("visitThe").text(),$(this).find("productPage").text(),$(this).find("compareThe").text(),$(this).find("toOtherModels").text(),$(this).find("close").text(),"","","","","",$(this).find("recommendedProductsNone").text(),$(this).find("recommendedProductsSingle").text(),$(this).find("recommendedProductsPlural").text(),$(this).find("validSelection").text(),$(this).find("numberOne").text(),$(this).find("numberTwo").text(),$(this).find("numberThree").text(),$(this).find("numberFour").text(),$(this).find("numberFive").text(),$(this).find("numberSix").text(),$(this).find("numberSeven").text(),$(this).find("numberEight").text(),$(this).find("numberNine").text(),$(this).find("numberTen").text())});$("#appTitle").text(polycomTranslation.selectAConferencePhone);$("#polycomPhone").append(polycomTranslation.polycomPhone);polycomTranslation.haveSalesContactMe!=""?$("#salesContactMe").text(polycomTranslation.haveSalesContactMe):$("#contactFormDivider").hide();polycomTranslation.clickToChat!=""?$("#clickToChat").text(polycomTranslation.clickToChat):$("#chatDivider").hide();$("#requirementsText").text(polycomTranslation.requirementsHeader);$("#requirementsShadow").text(polycomTranslation.requirementsHeader);$("#availableProductsText").text(polycomTranslation.resultsHeader);$("#availableProductsShadow").text(polycomTranslation.resultsHeader);$("#printButton").text(polycomTranslation.printButton);$("#refineRequirements").text(polycomTranslation.refineRequirements);$("#q1>strong").text(polycomTranslation.q1);$("#q1A1+label").text(polycomTranslation.q1A1);$("#q1A1").attr("title",polycomTranslation.q1A1Title);$("#q1A2+label").text(polycomTranslation.q1A2);$("#q1A2").attr("title",polycomTranslation.q1A2Title);$("#q2>strong").text(polycomTranslation.q2);$("#q2A1+label").text(polycomTranslation.q2A1);$("#q2A1").attr("title",polycomTranslation.q2A1Title);$("#q2A2+label").text(polycomTranslation.q2A2);$("#q2A2").attr("title",polycomTranslation.q2A2Title);$("#q2A3+label").text(polycomTranslation.q2A3);$("#q2A3").attr("title",polycomTranslation.q2A3Title);$("#q3>strong").text(polycomTranslation.q3);$("#q3A1+label").text(polycomTranslation.q3A1);$("#q3A1").attr("title",polycomTranslation.q3A1Title);$("#q3A2+label").text(polycomTranslation.q3A2);$("#q3A2").attr("title",polycomTranslation.q3A2Title);$("#q3A3+label").text(polycomTranslation.q3A3);$("#q3A3").attr("title",polycomTranslation.q3A3Title);$("#q4>strong").text(polycomTranslation.q4);$("#q4A1+label").text(polycomTranslation.q4A1);$("#q4A1").attr("title",polycomTranslation.q4A1Title);$("#q4A2+label").text(polycomTranslation.q4A2);$("#q4A2").attr("title",polycomTranslation.q4A2Title);$("#q4_no").text(polycomTranslation.q4A2No);$("#q5>strong").text(polycomTranslation.q5);$("#q5A1+label").text(polycomTranslation.q5A1);$("#q5A1").attr("title",polycomTranslation.q5A1Title);$("#q5A2+label").text(polycomTranslation.q5A2);$("#q5A2").attr("title",polycomTranslation.q5A2Title);$("#q5_no").text(polycomTranslation.q5A2No);$("#q6>strong").text(polycomTranslation.q6);$("#q6A1+label").text(polycomTranslation.q6A1);$("#q6A1").attr("title",polycomTranslation.q6A1Title);$("#q6A2+label").text(polycomTranslation.q6A2);$("#q6A2").attr("title",polycomTranslation.q6A2Title);$("#q6_yes").text(polycomTranslation.q6A1Yes);$("#q7>strong").text(polycomTranslation.q7);$("#q7A1+label").text(polycomTranslation.q7A1);$("#q7A1").attr("title",polycomTranslation.q7A1Title);$("#q7A2+label").text(polycomTranslation.q7A2);$("#q7A2").attr("title",polycomTranslation.q7A2Title);$("#resetButton").text(polycomTranslation.resetButton);$("#noProductsFoundMessage").append(polycomTranslation.noProductsFound);$("#copyright").text(polycomTranslation.copyright);RESULTS_HEADER=polycomTranslation.resultsHeader;RECOMMENDED_PRODUCTS_NONE=polycomTranslation.recommendedProductsNone;RECOMMENDED_PRODUCTS_SINGLE=polycomTranslation.recommendedProductsSingle;RECOMMENDED_PRODUCTS_PLURAL=polycomTranslation.recommendedProductsPlural;MAKE_VALID_SELECTION=polycomTranslation.validSelection;translatedNumbers.push(polycomTranslation.numberOne);translatedNumbers.push(polycomTranslation.numberTwo);translatedNumbers.push(polycomTranslation.numberThree);translatedNumbers.push(polycomTranslation.numberFour);translatedNumbers.push(polycomTranslation.numberFive);translatedNumbers.push(polycomTranslation.numberSix);translatedNumbers.push(polycomTranslation.numberSeven);translatedNumbers.push(polycomTranslation.numberEight);translatedNumbers.push(polycomTranslation.numberNine);translatedNumbers.push(polycomTranslation.numberTen);displayProducts(polycomProducts,polycomTranslation,localQS)}});$("#productRecommendationForm input:radio").each(function(){$(this).bind("click",function(a){validateForm()})});$("#productRecommendationForm div#q1 input").each(function(){$(this).bind("click",function(a){if($(this).attr("value")=="meeting_conference"){$("#productRecommendationForm div#q2").fadeIn("slow")}else{$("#productRecommendationForm div#q2").fadeOut("slow")}$("#productRecommendationForm #q2 input:radio").attr("checked",false)})});$("#productRecommendationForm div#q3 input").each(function(){$(this).bind("click",function(a){switch($(this).attr("value")){case"voip":$("#productRecommendationForm div#q5").hide();$("#productRecommendationForm div#q4_no").hide();$("#productRecommendationForm div#q5_no").hide();$("#productRecommendationForm #q4 input:radio").attr("checked",false);$("#productRecommendationForm #q5 input:radio").attr("checked",false);$("#productRecommendationForm div#q4").fadeIn("slow");break;case"digitalPBX":$("#productRecommendationForm div#q4").hide();$("#productRecommendationForm div#q4_no").hide();$("#productRecommendationForm div#q5_no").hide();$("#productRecommendationForm #q4 input:radio").attr("checked",false);$("#productRecommendationForm #q5 input:radio").attr("checked",false);$("#productRecommendationForm div#q5").fadeIn("slow");break;default:$("#productRecommendationForm div#q4").hide();$("#productRecommendationForm div#q5").hide();$("#productRecommendationForm div#q4_no").hide();$("#productRecommendationForm div#q5_no").hide();$("#productRecommendationForm #q4 input:radio").attr("checked",false);$("#productRecommendationForm #q5 input:radio").attr("checked",false);break}})});$("#productRecommendationForm div#q4 input").each(function(){$(this).bind("click",function(a){switch($(this).attr("value")){case"no":$("#productRecommendationForm div#q4_no").fadeIn("slow");break;case"yes":$("#productRecommendationForm div#q4_no").hide();break}})});$("#productRecommendationForm div#q5 input").each(function(){$(this).bind("click",function(a){switch($(this).attr("value")){case"no":$("#productRecommendationForm div#q5_no").fadeIn("slow");break;case"yes":$("#productRecommendationForm div#q5_no").hide();break}})});$("#productRecommendationForm div#q6 input").each(function(){$(this).bind("click",function(a){switch($(this).attr("value")){case"yes":$("#productRecommendationForm div#q6_yes").fadeIn("slow");break;case"no":$("#productRecommendationForm div#q6_yes").hide();break}})});$("#btnResetForm").each(function(){$(this).bind("click",function(a){if(!isPartner){_hbPageView("start_over","/global/products/voice/product_finder/conference_phones");ntptEventTag("ev=conf_finder_start_over")}$("#productRecommendationForm input:radio").attr("checked",false);$("#productRecommendationForm div#q2").hide();$("#productRecommendationForm div#q4").hide();$("#productRecommendationForm div#q5").hide();$("#productRecommendationForm div#q4_no").hide();$("#productRecommendationForm div#q5_no").hide();$("#productRecommendationForm div#q6_yes").hide();$("#noProductsFoundMessage").hide();$("#btnPrintRecommendedProducts").hide();restoreProductsToGrid();$("#availableProductsText").empty();$("#availableProductsShadow").empty();$("#availableProductsText").append(RESULTS_HEADER);$("#availableProductsShadow").append(RESULTS_HEADER)})});$("#btnPrintRecommendedProducts").each(function(){$(this).bind("click",function(c){if(!isPartner){_hbPageView("print_results","/global/products/voice/product_finder/conference_phones");ntptEventTag("ev=conf_finder_print_results")}var b="";for(var a in qualifiedProducts){b+=qualifiedProducts[a].productKey+"&"}var d=$.query.set("products",b).set("questionAnswerKey",encodeURI(questionAnswerKey)).toString();window.open("print_product_recommendation.html"+d)})})});function fixPng(b){var a=b.src;if(!b.style.width){b.style.width=$(b).width()}if(!b.style.height){b.style.height=$(b).height()}b.onload=function(){};b.src=blank.src;b.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a+"',sizingMethod='crop',enabled='true')"}function displayProducts(c,a,b){for(var d in c){$("#noProductsFoundMessage").before('<div class="polycomProduct" id="'+c[d].productKey+'" title="'+c[d].name+'"custom="available" style="margin-top:5px;margin-left:4px;float:left;position:relative;width:143px;height:137px;background-repeat:no-repeat;background-image:url(&quot;images/product_bg.gif&quot;);"><center><img src="'+c[d].imageThumbnail+'" border="0" style="padding-top:8px;"></center><img src="images/product_hr_rule.gif" width="120" height="2" style="padding-top:3px;padding-bottom:3px;padding-left:11px;"><br /><div style="width:100px;padding-left:11px;color:#E00009;line-height:11px;">'+c[d].altName+'</span><br /><div class="learnMore" style="right:10px;bottom:0px;position:absolute;margin-top:8px;margin-bottom:8px;color:#333333"><img src="images/double_chevron.png" width="5" height="5"> '+a.details+"</div></div>");setPrintButtonWidth(b);generateProductTabs(c[d],a,b)}}function setLocalCSS(a){switch(a){case"cn":$.getCSS("styles/cn.css");break;case"de":$.getCSS("styles/de.css");break;case"es":case"latam":$.getCSS("styles/es.css");break;case"fr":$.getCSS("styles/fr.css");break;default:$.getCSS("styles/en.css");break}}function setPrintButtonWidth(a){switch(a){case"cn":$("#btnPrintRecommendedProductsBody").css("width",100);break;case"fr":$("#btnPrintRecommendedProductsBody").css("width",200);break;default:$("#btnPrintRecommendedProductsBody").css("width",170);break}}function validateForm(){var searchString="";questionAnswerKey="";if($("#productRecommendationForm #q1 input:radio:checked").val()=="office"){$("#productRecommendationForm #q2 input:radio").attr("checked",false)}if($("#productRecommendationForm #q3 input:radio:checked").val()=="voip"){$("#productRecommendationForm #q5 input:radio").attr("checked",false)}if($("#productRecommendationForm #q3 input:radio:checked").val()=="digitalPBX"){$("#productRecommendationForm #q4 input:radio").attr("checked",false)}if($("#productRecommendationForm #q3 input:radio:checked").val()=="analog"){$("#productRecommendationForm #q4 input:radio").attr("checked",false);$("#productRecommendationForm #q5 input:radio").attr("checked",false)}var formMap=$.map([$("#productRecommendationForm #q1 input:radio:checked").val()?"1:"+$("#productRecommendationForm #q1 input:radio:checked").val():null,$("#productRecommendationForm #q2 input:radio:checked").val()?"2:"+$("#productRecommendationForm #q2 input:radio:checked").val():null,$("#productRecommendationForm #q3 input:radio:checked").val()?"3:"+$("#productRecommendationForm #q3 input:radio:checked").val():null,$("#productRecommendationForm #q4 input:radio:checked").val()?"4:"+$("#productRecommendationForm #q4 input:radio:checked").val():null,$("#productRecommendationForm #q5 input:radio:checked").val()?"5:"+$("#productRecommendationForm #q5 input:radio:checked").val():null,$("#productRecommendationForm #q6 input:radio:checked").val()?"6:"+$("#productRecommendationForm #q6 input:radio:checked").val():null,$("#productRecommendationForm #q7 input:radio:checked").val()?"7:"+$("#productRecommendationForm #q7 input:radio:checked").val():null],function(value){return value});$("#noProductsFoundMessage").hide();if(formMap.length!=0){for(var i=0;i<formMap.length;i++){if(formMap[i]!=null){var currentQuestion=formMap[i].split(":",1);if(i!=(formMap.length-1)){searchString+="value.question"+currentQuestion+".match($('#productRecommendationForm #q"+currentQuestion+" input:radio:checked').val()) && "}else{searchString+="value.question"+currentQuestion+".match($('#productRecommendationForm #q"+currentQuestion+" input:radio:checked').val())"}questionAnswerKey+=$("#productRecommendationForm #q"+currentQuestion+" input:radio:checked").attr("title")+"|"}}}disqualifedProducts=$.grep(polycomProducts,function(value){return(eval(searchString))},true);qualifiedProducts=$.grep(polycomProducts,function(value){return(eval(searchString))});restoreProductsToGrid();removeProductsFromGrid();updateNumProductsFound(qualifiedProducts.length)}function restoreProductsToGrid(){for(i in polycomProducts){var a=$("#recommendedProductsDiv>#"+polycomProducts[i].productKey);a.attr("custom","available");a.fadeTo(ITEM_FADE_SPEED,ITEM_OPACITY_AVAILABLE)}}function removeProductsFromGrid(){if(disqualifedProducts.length!=0){for(i in disqualifedProducts){var a=$("#recommendedProductsDiv>#"+disqualifedProducts[i].productKey);a.attr("custom","unavailable");a.fadeTo(ITEM_FADE_SPEED,ITEM_OPACITY_NOT_AVAILABLE)}if(disqualifedProducts.length<polycomProducts.length){$("#btnPrintRecommendedProducts").fadeIn("slow")}else{$("#btnPrintRecommendedProducts").hide();$("#noProductsFoundMessage").fadeIn("slow")}}else{if(disqualifedProducts.length==0){$("#btnPrintRecommendedProducts").fadeIn("slow")}}}function generateProductTabs(c,a,b){if(c.buyNow==""){$("#tabCollection").append('<div id="overlay_'+c.productKey+'" style="display:none;width:622px;height:350px;z-index:100;position:absolute;background-repeat:no-repeat;background-image: url(images/overlay_shadow_2tabs.png);"><div id="closeImage" style="z-index:102;position:absolute;top:45px;right:50px;cursor:pointer;"><span style="font-size:8pt;color:#990000;position:relative;top:-5px;">['+a.close+']</span> <img src="images/close.png" alt="close"></div><div id="tabs_'+c.productKey+'" style="position:absolute;top:4px;left:6px;display:none;z-index:101;"><ul class="productTabs" id="productTabs_'+c.productKey+'"><li><a id="t1" href="#overview" '+setOverviewTabClick()+' title="'+a.productOverview+'">'+a.productOverview+'</a></li><li><a id="t2" href="#featuresBenefits" '+setFBTabClick()+' title="'+a.featuresAndBenefits+'">'+a.featuresAndBenefits+'</a></li></ul><div class="productOverlay" id="productOverlay_'+c.productKey+'" style="position:relative;z-index:101;"><br clear="all" /><div><table width="580" border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan="2"><img src="images/tricon_small.png" width="10" height="11">&nbsp;<span class="overlayHeader">'+c.name+'</span></td></tr><tr valign="top"><td style="padding-top:5px;padding-left:15px"><span class="header">'+c.description+'</span><br /><p style="width:300px;height:2px;background-image:url(&quot;images/overlay_hr.gif&quot;);background-repeat:repeat-x;">&nbsp;</p><strong>'+a.moreInformation+':</strong><br /><table cellpadding="0" cellspacing="0" border="0">'+generateDatasheetLink(c,a,b)+generateProductURL(c,a,b)+generateCompareLink(c,a,b)+'</table></td><td><img src="'+c.imageProductOverview+'" alt="'+c.name+'"></td></tr></table></div><div style="z-index:101;"><img src="images/tricon_small.png" width="10" height="11">&nbsp;<span class="overlayHeader">'+c.name+'</span><p><p style="margin-left:15px;"><strong>'+a.featuresAndBenefits+"</strong>"+createList(c.featuresBenefits)+'</p><br clear="all" /></div></div></div></div><br /><br />')}else{$("#tabCollection").append('<div id="overlay_'+c.productKey+'" style="display:none;width:622px;height:350px;z-index:100;position:absolute;background-repeat:no-repeat;background-image: url(images/overlay_shadow.png);"><div id="closeImage" style="z-index:102;position:absolute;top:45px;left:555px;cursor:pointer;"><span style="font-size:8pt;color:#990000;position:relative;top:-5px;">['+a.close+']</span> <img src="images/close.png" alt="close"></div><div id="tabs_'+c.productKey+'" style="position:absolute;top:4px;left:6px;display:none;z-index:101;"><ul class="productTabs" id="productTabs_'+c.productKey+'"><li><a id="t1" href="#overview" '+setOverviewTabClick()+' title="'+a.productOverview+'">'+a.productOverview+'</a></li><li><a id="t2" href="#featuresBenefits" '+setFBTabClick()+' title="'+a.featuresAndBenefits+'">'+a.featuresAndBenefits+'</a></li><li><a id="t3" href="#howToBuy" '+setBuyTabClick()+' title="'+a.howToBuy+'">'+a.howToBuy+'</a></li></ul><div class="productOverlay" id="productOverlay_'+c.productKey+'" style="position:relative;z-index:101;"><br clear="all" /><div style="position:absolute;top:15px;"><table width="580" border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan="2" valign="top"><img src="images/tricon_small.png" width="10" height="11">&nbsp;<span class="overlayHeader">'+c.name+'</span></td></tr><tr valign="top"><td style="padding-top:5px;padding-left:15px"><span class="header">'+c.description+'</span><br /><p style="width:300px;height:2px;background-image:url(&quot;images/overlay_hr.gif&quot;);background-repeat:repeat-x;">&nbsp;</p><strong>'+a.moreInformation+':</strong><br /><table cellpadding="0" cellspacing="0" border="0">'+generateDatasheetLink(c,a,b)+generateProductURL(c,a,b)+generateCompareLink(c,a,b)+'</table></td><td><img src="'+c.imageProductOverview+'" alt="'+c.name+'"></td></tr></table></div><div style="position:absolute;top:15px;z-index:101;"><img src="images/tricon_small.png" width="10" height="11">&nbsp;<span class="overlayHeader">'+c.name+'</span><p><p style="margin-left:15px;"><strong>'+a.featuresAndBenefits+"</strong>"+createList(c.featuresBenefits)+'</p><br clear="all" /></div><div style="position:absolute;top:15px;z-index:101;"><img src="images/tricon_small.png" width="10" height="11">&nbsp;<span class="overlayHeader">'+c.name+'</span><p></p><p><table border="0" cellpadding="0" cellspacing="0" style="padding-left:10px;"><tr><td>'+c.buyNow+"</td></tr></table></p></div></div></div></div><br /><br />")}$("#productTabs_"+c.productKey).tabs("#productOverlay_"+c.productKey+" > div",{effect:"fade",initialIndex:0})}function setOverviewTabClick(){if(!isPartner){return'onclick="_hbPageView(&quot;tab_overview&quot;, &quot;/global/products/voice/product_finder/conference_phones&quot;);ntptEventTag(&quot;ev=conf_finder_tab_overview&quot;)"'}}function setFBTabClick(){if(!isPartner){return'onclick="_hbPageView(&quot;tab_features_benefits&quot;, &quot;/global/products/voice/product_finder/conference_phones&quot;);ntptEventTag(&quot;ev=conf_finder_tab_features_benefits&quot;)"'}}function setBuyTabClick(){if(!isPartner){return'onclick="_hbPageView(&quot;tab_how_to_buy&quot;, &quot;/global/products/voice/product_finder/conference_phones&quot;);ntptEventTag(&quot;ev=conf_finder_tab_how_to_buy&quot;)"'}}$("#recommendedProductsDiv > div.polycomProduct").livequery("click",function(){if($(this).attr("custom")=="available"){var a=$(this).attr("id");var b=(calculateWindowWidth()/2);if(!isPartner){_hbPageView("conf_finder_details","/global/products/voice/product_finder/conference_phones");ntptEventTag("ev=conf_finder_conf_finder_details")}resetOverlays(a);$("#overlay_"+$(this).attr("id")).css({top:VERTICAL_OFFSET,left:b,width:0}).show();$("#overlay_"+$(this).attr("id")).animate({top:VERTICAL_OFFSET,left:((calculateWindowWidth()/2)-(OVERLAY_WIDTH/2)+HORIZONTAL_OFFSET),width:OVERLAY_WIDTH,height:OVERLAY_HEIGHT},OVERLAY_FADEIN_SPEED,function(){$("#tabs_"+a).fadeIn(TAB_FADEIN_SPEED)})}});$("#tabCollection > div > div[id=closeImage]").livequery("click",function(){resetOverlays()});$("#recommendedProductsDiv > div.polycomProduct").livequery("mouseover",function(){if($(this).attr("custom")=="available"){$(this).css({cursor:"pointer","background-image":"url('images/product_bg_shadow.gif')"})}else{$(this).css({cursor:"default"})}});$("#recommendedProductsDiv > div.polycomProduct").livequery("mouseout",function(){$(this).css({"background-image":"url('images/product_bg.gif')"})});function resetOverlays(a){$("#tabCollection > div").hide();$("div[id^=overlay_"+a+"]").css({width:0,height:0,display:"none"});$("div[id^=tabs_"+a+"]").css({display:"none"})}function calculateWindowWidth(){var a=0;if(typeof(window.innerWidth)=="number"){a=window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth)){a=document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth)){a=document.body.clientWidth}}}return a}function createList(c){var a="<ul>";var b=c.split("|");for(i in b){a+="<li>"+b[i]+"</li>"}a+="</ul>";return a}function updateNumProductsFound(a){$("#availableProductsText").empty();$("#availableProductsShadow").empty();var b="";switch(a){case 0:b=RECOMMENDED_PRODUCTS_NONE;break;case 1:b=translatedNumbers[a-1]+" "+RECOMMENDED_PRODUCTS_SINGLE;break;default:b=translatedNumbers[a-1]+" "+RECOMMENDED_PRODUCTS_PLURAL}$("#availableProductsText").append(b);$("#availableProductsShadow").append(b)}function ActionDeterminator(c,h,a){var b="http://polycom.links.channelintelligence.com/pages/prices.asp?nRGID=2114&sSKU=";var f="http://store.polycom.com/DRHM/servlet/ControllerServlet?link=buy_online&Action=DisplayProductDetailsPage&SiteID=polycom&Locale=en_US&Env=BASE&productID=";if(document.forms[c]==null||document.forms[c].elements[h]==null){return true}var g=document.forms[c].elements[h];var e="";var d="";if(document.forms[c].elements[h].checked){e=g.value;d=g.className}else{for(i=0;i<g.length;i++){if(g[i].checked==true){e=g[i].value;d=g[i].className}}}if(e!=""){if(!isPartner){if(d!=""){_hbPageView("conf_finder_buynow_"+d,"/global/products/voice/product_finder/conference_phones");ntptEventTag("ev=conf_finder_buynow_"+d)}else{_hbPageView("conf_finder_buynow_"+e,"/global/products/voice/product_finder/conference_phones");ntptEventTag("ev=conf_finder_buynow_"+e)}}switch(a){case"ci":if(campaignIdQS!=""){window.open(b+=e+"&sCT="+campaignIdQS)}else{window.open(b+=e)}break;case"store":window.open(f+=e);break;case"polycomUK":case"partner":window.open(e);break;default:window.open(a)}return false}else{alert(MAKE_VALID_SELECTION);return false}}function generateDatasheetLink(c,a,b){if(c.datasheet!=""){if(!isPartner){return'<tr valign="top"><td style="padding-top:11px;"><img src="images/double_chevron.png"></td><td style="padding-left:2px;"><a href="http://'+getDomain(b)+c.datasheet+'" target="_blank">'+c.name+" "+a.datasheet+'</a> <img src="images/pdf_icon.gif" width="17" height="18" alt="PDF"></td></tr>'}else{return'<tr valign="top"><td style="padding-top:11px;"><img src="images/double_chevron.png"></td><td style="padding-left:2px;"><a href="'+c.datasheet+'" target="_blank">'+c.name+" "+a.datasheet+'</a> <img src="images/pdf_icon.gif" width="17" height="18" alt="PDF"></td></tr>'}}else{return""}}function generateProductURL(c,a,b){if(c.url!=""){if(!isPartner){return'<tr valign="middle"><td><img src="images/double_chevron.png"></td><td style="padding-left:2px"><a href="http://'+getDomain(b)+c.url+"?id=conf_finder&link="+c.productKey+'_product_page" target="_blank">'+a.visitThe+" "+c.name+" "+a.productPage+"</a></td></tr>"}else{return'<tr valign="middle"><td><img src="images/double_chevron.png"></td><td style="padding-left:2px"><a href="'+c.url+'" target="_blank">'+a.visitThe+" "+c.name+" "+a.productPage+"</a></td></tr>"}}else{return""}}function generateCompareLink(c,a,b){if(c.compareLink!=""&&a.compareThe!=""){if(b=="cn"){return'<tr valign="middle"><td><img src="images/double_chevron.png"></td><td style="padding-left:2px"><a href="'+c.compareLink+'" target="_blank">'+a.compareThe+"</a></td></tr>"}else{return'<tr valign="middle"><td><img src="images/double_chevron.png"></td><td style="padding-left:2px"><a href="'+c.compareLink+'" target="_blank">'+a.compareThe+" "+c.name+" "+a.toOtherModels+"</a></td></tr>"}}else{return""}}function clickToChat(){window.open("/livechat/CustomerForm.html?id=conf_finder&link=click_to_chat&pageName="+window.location+"","custclient","location=no,height=320,width=500,toolbar=no,scrollbars=no,resizable=no,status=no, titlebar=no")}function getLocalDataFile(b){var a="";switch(b){case"apac":a="data/apac.xml";break;case"au":a="data/au.xml";break;case"cala":a="data/cala.xml";break;case"cn":a="data/cn.xml";break;case"de":a="data/de.xml";break;case"es":a="data/es.xml";break;case"eu":a="data/eu.xml";break;case"fr":a="data/fr.xml";break;case"in":a="data/in.xml";break;case"latam":a="data/latam.xml";break;case"uk":a="data/uk.xml";break;default:a="data/us.xml"}return a}function getDomain(a){switch(a){case"apac":return"www.polycom.asia";break;case"au":return"www.polycom.com.au";break;case"cala":return"cala.polycom.com";break;case"cn":return"www.polycom.com.cn";break;case"de":return"www.polycom.de";break;case"es":return"www.polycom.es";break;case"eu":return"www.polycom.eu";break;case"fr":return"www.polycom.fr";break;case"in":return"www.polycom.co.in";break;case"latam":return"latinamerica.polycom.com";break;case"jp":return"www.polycom.co.jp";break;case"uk":return"www.polycom.co.uk";break;default:return"www.polycom.com"}}jQuery.fn.fadeTo=function(a,c,b){return this.animate({opacity:c},a,function(){if(c==1&&jQuery.browser.msie){this.style.removeAttribute("filter")}if(jQuery.isFunction(b)){b()}})};jQuery.fn.fadeIn=function(a,b){return this.animate({opacity:"show"},a,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter")}if(jQuery.isFunction(b)){b()}})};jQuery.fn.fadeOut=function(a,b){return this.animate({opacity:"hide"},a,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter")}if(jQuery.isFunction(b)){b()}})};jQuery.getCSS=function(a){var b=document.createElement("link");b.type="text/css";b.rel="stylesheet";b.href=a;b.media="screen";document.getElementsByTagName("head")[0].appendChild(b)};