function PDPZ1_zp(a_product_ids,zone,symbolic,target_id,category,rec_attributes,target_attributes,target_header_txt){var html=zone+"_zp: No recommendations returned";if(symbolic!="_NR_"){var target_header_txt="You May Also Like:";var demandPrefix=getElementValuebyId("demandPrefix","11");var mode=getElementValuebyId("mode","Browsing");var parentSku=getElementValuebyId("productId","IN");var bv_default_url_cdn=getElementValuebyId("bv_default_url_cdn","NA");var bv_read_reviews="/ui/browse/processRequest.do?requestURI=processProductsCatalog&sku=";var bv_write_review_end="/submission.htm?return=%2Fui%2Fbrowse%2FprocessRequest.do%3FrequestURI%3DprocessProductsCatalog%26sku%3D";var n_recs=a_product_ids.length;var div_title='<h2 class="pd-subhead">'+target_header_txt+"</h2>\n";var lines=new Array();var image_url="//s7.orientaltrading.com/is/image/OrientalTrading/";var flag="true";var count=0;var intMode=0;if(mode.toLowerCase()=="browsing"){intMode=0;}else{intMode=1;}var num=$("#slider > li").length;for(var ii=0;ii<n_recs&&count<15;ii++){var rec_prod_id=a_product_ids[ii];var short_desc=cleanPath(rec_attributes[ii][0]);var smsrp_price=rec_attributes[ii][1];var ssale_price=rec_attributes[ii][2];var rating=rec_attributes[ii][3];var image_name=rec_attributes[ii][4];var uom=rec_attributes[ii][5];var msrp_price=0;var sale_price=0;var product_url="/"+short_desc+"-"+"a2"+"-"+rec_prod_id.replace("/","_").replace("-","+")+"-"+demandPrefix+"-"+intMode+".fltr?xsaleSku="+target_id;try{msrp_price=parseFloat(smsrp_price);}catch(e){msrp_price=0;}if(ssale_price!="NA"){try{sale_price=parseFloat(ssale_price);}catch(e){sale_price=0;}}if(!isNaN(msrp_price)&&msrp_price==999){continue;}else{if(isNaN(msrp_price)){continue;}else{count=count+1;}}lines.push("<li>");lines.push('<div class="ymal-content-wrapper">');lines.push('<a manual_cm_sp="Cross Sell-_-Product Detail-_-Product Detail" href="'+product_url+'" alt="'+short_desc+'">');lines.push('<img height="150" width="150" onerror="this.src=noThumb.src" src="'+image_url+image_name+'?$CROSS_SIZE$" alt="'+short_desc+'"/></a>');lines.push("<p>");lines.push('<a manual_cm_sp="Cross Sell-_-Product Detail-_-Product Detail" href="'+product_url+'" alt="'+short_desc+'">');lines.push(rec_attributes[ii][0]);lines.push("</a></p>");if(uom!="NA"){lines.push("<p>"+uom+"</p>");}if(sale_price==0||msrp_price<=sale_price){lines.push('<p><span class="ymal-regular-price">$'+msrp_price.toFixed(2)+"</span></p>");}else{if(!isNaN(msrp_price)&&msrp_price>0){lines.push('<p><span class="ymal-was-price">$'+msrp_price.toFixed(2)+"</span>");lines.push('<span class="ymal-now-price">Now $'+sale_price.toFixed(2)+"</span></p>");}else{flag="false";break;}}if(rating!=null&&rating!="0.0"&&rating!="NA"){lines.push('<p><img src="/images/rating-'+rating.replace(".","_")+'.gif" class="ratingStars">');lines.push("<br/>");lines.push("<b>"+rating+"</b> out of <b>5</b></p>");}lines.push("</div>");lines.push("</li>");}var bxsl=$("ul#slider").size();if(bxsl==0){$("#widget-ymal-zone").append('<h2 class="pd-subhead">You May Also Like:</h2><div id="bx-pager"></div><ul id="slider"></ul>');$("#slider").html(lines.join("\n"));var slider=$("#slider").bxSlider({displaySlideQty:5,moveSlideQty:5,infiniteLoop:false,pager:true,pagerSelector:"#bx-pager",controls:false,onAfterSlide:function(currentSlide,totalSlides){if($("ul#slider li.pager").size()<=this.displaySlideQty){$(".bx-next").attr("style","display:none;");$(".bx-prev").attr("style","display:none;");$("#bx-pager").attr("style","display:none;");}else{if(currentSlide+this.displaySlideQty==totalSlides){$(".bx-next").attr("style","background-position:0 0px;");$(".bx-prev").attr("style","background-position:0 -72px;");}else{if(currentSlide+this.displaySlideQty==this.moveSlideQty){$(".bx-next").attr("style","background-position:0 -72px;");$(".bx-prev").attr("style","background-position:0 0px;");}else{$(".bx-next").attr("style","background-position:0 -72px;");$(".bx-prev").attr("style","background-position:0 -72px;");}}}},buildPager:function(slideIndex,slideHtmlObject){return'<a href="" class="pager-link pager-'+slideIndex+'"></a>';}});}else{if(flag=="true"){$("#widget-ymal-zone").empty();$("#widget-ymal-zone").append('<h2 class="pd-subhead">You May Also Like:</h2><div id="bx-pager"></div><ul id="slider"></ul><a class="bx-prev" href="">prev</a><a class="bx-next" href="">next</a><div class="clear"></div>');$("#slider").html(lines.join("\n"));}var slider=$("#slider").bxSlider({displaySlideQty:5,moveSlideQty:5,infiniteLoop:false,pager:true,pagerSelector:"#bx-pager",controls:false,onAfterSlide:function(currentSlide,totalSlides){if($("ul#slider li.pager").size()<=this.displaySlideQty){$(".bx-next").attr("style","display:none;");$(".bx-prev").attr("style","display:none;");$("#bx-pager").attr("style","display:none;");}else{if(currentSlide+this.displaySlideQty==totalSlides){$(".bx-next").attr("style","background-position:0 0px;");$(".bx-prev").attr("style","background-position:0 -72px;");}else{if(currentSlide+this.displaySlideQty==this.moveSlideQty){$(".bx-next").attr("style","background-position:0 -72px;");$(".bx-prev").attr("style","background-position:0 0px;");}else{$(".bx-next").attr("style","background-position:0 -72px;");$(".bx-prev").attr("style","background-position:0 -72px;");}}}},buildPager:function(slideIndex,slideHtmlObject){return'<a href="" class="pager-link pager-'+slideIndex+'"></a>';}});}$(".bx-prev").click(function(){slider.goToPreviousSlide();return false;});$(".bx-next").click(function(){slider.goToNextSlide();return false;});showDivContent("widget-ymal-zone");}else{var bxsl=$("ul#slider").size();if(bxsl!=0){var slider=$("#slider").bxSlider({displaySlideQty:5,moveSlideQty:5,infiniteLoop:false,pager:true,pagerSelector:"#bx-pager",controls:false,onAfterSlide:function(currentSlide,totalSlides){if($("ul#slider li.pager").size()<=this.displaySlideQty){$(".bx-next").attr("style","display:none;");$(".bx-prev").attr("style","display:none;");$("#bx-pager").attr("style","display:none;");}else{if(currentSlide+this.displaySlideQty==totalSlides){$(".bx-next").attr("style","background-position:0 0px;");$(".bx-prev").attr("style","background-position:0 -72px;");}else{if(currentSlide+this.displaySlideQty==this.moveSlideQty){$(".bx-next").attr("style","background-position:0 -72px;");$(".bx-prev").attr("style","background-position:0 0px;");}else{$(".bx-next").attr("style","background-position:0 -72px;");$(".bx-prev").attr("style","background-position:0 -72px;");}}}},buildPager:function(slideIndex,slideHtmlObject){return'<a href="" class="pager-link pager-'+slideIndex+'"></a>';}});showDivContent("widget-ymal-zone");}else{hideDivContent("widget-ymal-zone");}}}function SBDPZ1_zp(a_product_ids,zone,symbolic,target_id,category,rec_attributes,target_attributes,target_header_txt){var html=zone+"_zp: No recommendations returned";if(symbolic!="_NR_"){var target_header_txt="You May Also Like:";var product_url="/ui/shared/sharedFlowController.goToBrowseController.do?requestURI=processProductsCatalog&cm_sp=Cross%20Sell-_-Shopping%20Cart-_- Shopping%20Cart&mode=Browsing&demandPrefix=17&sku=";var div_top='\n<div class="upsell-wrapper">\n';var div_top_end='</div> <!-- End "upsell-wrapper" -->\n';var image_url="//s7.orientaltrading.com/is/image/OrientalTrading/";var n_recs=a_product_ids.length;var div_title="<h4>"+target_header_txt+"</h4>\n";var lines=new Array();var flag="true";for(var ii=0;ii<n_recs&&ii<5;ii++){var rec_prod_id=a_product_ids[ii];var short_desc=rec_attributes[ii][0];var smsrp_price=rec_attributes[ii][1];var ssale_price=rec_attributes[ii][2];var rating=rec_attributes[ii][3];var image_name=rec_attributes[ii][4];var uom=rec_attributes[ii][5];var msrp_price=0;var sale_price=0;try{msrp_price=parseFloat(smsrp_price);}catch(e){msrp_price=0;}if(ssale_price!="NA"){try{sale_price=parseFloat(ssale_price);}catch(e){sale_price=0;}}if(!isNaN(msrp_price)&&msrp_price==999){continue;}if(ii==4){lines.push('<div class="upsell-item">');}else{lines.push('<div class="upsell-item">');}lines.push('<a href="'+product_url+rec_prod_id+"&xsaleSku="+rec_prod_id+'" alt="'+short_desc+'">');lines.push('<img height="150" width="150" onerror="this.src=noThumb.src" src="'+image_url+image_name+'?$CROSS_SIZE$" alt="'+short_desc+'"/>');lines.push("</a>");lines.push("<p>");lines.push('<a href="'+product_url+rec_prod_id+"&xsaleSku="+rec_prod_id+'">');lines.push(short_desc);lines.push("</a>");lines.push("</p>");if(uom!="NA"){lines.push("<p>"+uom+"</p>");}if(sale_price==0||msrp_price<=sale_price){lines.push('<p class="ymal-regular-price">$'+msrp_price.toFixed(2)+"</p>");}else{if(!isNaN(msrp_price)&&msrp_price>0){lines.push('<p class="ymal-regular-price">$'+sale_price.toFixed(2)+"</p>");}else{flag="false";break;}}lines.push("</p>");lines.push("</div>");}if(flag=="true"){html=div_top+div_title+lines.join("\n")+div_top_end;document.getElementById("cart-sidebar").innerHTML=html;}}showDivContent("cart-sidebar");}function CCDPZ1_zp(a_product_ids,zone,symbolic,target_id,category,rec_attributes,target_attributes,target_header_txt){var html=zone+"_zp: No recommendations returned";var target_header_txt=target_header_txt;var bv_read_reviews="/ui/browse/processRequest.do?requestURI=processProductsCatalog&sku=";var bv_default_url_cdn=getElementValuebyId("bv_default_url_cdn","NA");var categoryName=getElementValuebyId("categoryname","bestseller");var bv_write_review_end="/submission.htm?return=%2Fui%2Fbrowse%2FprocessRequest.do%3FrequestURI%3DprocessProductsCatalog%26sku%3D";if(symbolic!="_NR_"){var topDiv='\n<b class="bstop">\n<b class="xbs1">\n</b>\n<b class="xbs2">\n</b>\n<b class="xbs3">\n</b>\n<b class="xbs4">\n</b>\n</b>\n<!--  Endeca merchandising rules -->\n';var bottomDiv='<b class="bsbottom">\n<b class="zbs4">\n</b>\n<b class="zbs3">\n</b>\n<b class="zbs2">\n</b>\n<b class="zbs1">\n</b>\n</b>\n';var div_title="<h2>"+target_header_txt+"</h2>\n";var lines=new Array();var n_recs=a_product_ids.length;var image_url="//s7.orientaltrading.com/is/image/OrientalTrading/150_Image/";if(n_recs>8){for(var ii=0;ii<n_recs&&ii<8;ii++){var rec_prod_id=a_product_ids[ii];var short_desc=rec_attributes[ii][0];var smsrp_price=rec_attributes[ii][1];var ssale_price=rec_attributes[ii][2];var rating=rec_attributes[ii][3];var image_name=rec_attributes[ii][4];var uom=rec_attributes[ii][5];var msrp_price=0;var sale_price=0;var flag="true";try{msrp_price=parseFloat(smsrp_price);}catch(e){msrp_price=0;}if(ssale_price!="NA"){try{sale_price=parseFloat(ssale_price);}catch(e){sale_price=0;}}if(ii==0||ii==4){lines.push('<div class="bsBoxContent">');}lines.push('<div class="item">');lines.push('<a manual_cm_sp="recommendation-_-bestseller-_-'+escape(categoryName)+'" href="/ui/browse/processRequest.do?demandPrefix=15&amp;sku='+rec_prod_id+"&amp;mode=Browsing&amp;requestURI=processProductsCatalog&amp;manual_cm_sp=recommendation-_-bestseller-_-"+escape(categoryName)+"&amp;sd="+escape(short_desc)+'">');lines.push('<img height="150" width="150" alt="'+short_desc+'" onerror="this.src=noThumb.src" src="'+image_url+image_name+'.jpg" class="bsBorder"></a>');lines.push('<p><a manual_cm_sp="recommendation-_-bestseller-_-'+escape(categoryName)+'" href="/ui/browse/processRequest.do?demandPrefix=15&amp;sku='+rec_prod_id+"&amp;mode=Browsing&amp;requestURI=processProductsCatalog&amp;manual_cm_sp=recommendation-_-bestseller-_-"+escape(categoryName)+"&amp;sd="+escape(short_desc)+'">');lines.push(short_desc+"</a></p>");lines.push("<p>"+uom+"</p>");if(sale_price==0||msrp_price<=sale_price){lines.push('<p><span class="results-regular-price">$'+msrp_price.toFixed(2)+"</span></p>");}else{if(!isNaN(msrp_price)&&msrp_price>0){lines.push('<p><span class="results-was-price">$'+msrp_price.toFixed(2)+"</span></p>");lines.push('<p><span class="results-now-price">$'+sale_price.toFixed(2)+"</span></p>");}else{flag="false";break;}}lines.push("<p>");if(rating!=null&&rating!="0.0"&&rating!="NA"){lines.push('<img src="/images/rating-'+rating.replace(".","_")+'.gif" class="ratingStars"/>');lines.push("<br/>");lines.push("<b>"+rating+"</b> out of <b>5</b>");lines.push("<br/>");lines.push('<a manual_cm_sp="recommendation-_-bestseller-_-'+escape(categoryName)+'"href="'+bv_read_reviews+rec_prod_id+"&amp;manual_cm_sp=recommendation-_-bestseller-_-"+escape(categoryName)+'#BVRRWidgetID">Read all reviews</a>');lines.push("<br/>");}if(bv_default_url_cdn!="NA"){lines.push('<a href="'+bv_default_url_cdn+rec_prod_id.replace("/","_")+bv_write_review_end+rec_prod_id.replace("/","%2F")+'">Write a review</a>');}lines.push("</p>");lines.push("</div>");if(ii==3||ii==7){lines.push('<div class="clear"> </div>');lines.push("</div>");}}}if(flag=="true"){html=topDiv+div_title+lines.join("\n")+bottomDiv;var expandedBS=document.getElementById("expandedBS");if(expandedBS!=null){document.getElementById("expandedBS").innerHTML=html;}}}showDivContent("expandedBS");}function HPZ1_zp(a_product_ids,zone,symbolic,target_id,category,rec_attributes,target_attributes,target_header_txt){var html=zone+"_zp: No recommendations returned";if(symbolic!="_NR_"){var lines=new Array();var n_recs=a_product_ids.length;var image_url="//s7.orientaltrading.com/is/image/OrientalTrading/150_Image/";var count=0;for(var ii=0;ii<n_recs&&ii<10;ii++){count=count+1;var rec_prod_id=a_product_ids[ii];var short_desc=rec_attributes[ii][0];var smsrp_price=rec_attributes[ii][1];var ssale_price=rec_attributes[ii][2];var rating=rec_attributes[ii][3];var image_name=rec_attributes[ii][4];var uom=rec_attributes[ii][5];var msrp_price=0;var sale_price=0;var flag="true";try{msrp_price=parseFloat(smsrp_price);}catch(e){msrp_price=0;}if(ssale_price!="NA"){try{sale_price=parseFloat(ssale_price);}catch(e){sale_price=0;}}lines.push('<div class="resultsItem">');lines.push('<a cm_sp="carousel-_-product'+count+"-_-product"+count+'" href="/ui/browse/processRequest.do?demandPrefix=15&amp;cm_sp=carousel-_-product'+count+"-_-product"+count+"&amp;sku="+rec_prod_id+"&amp;mode=Browsing&amp;requestURI=processProductsCatalog&amp;sd="+escape(short_desc)+'">');lines.push('<img height="150" width="150" alt="'+short_desc+'" onerror="this.src=noThumb.src" src="'+image_url+image_name+'.jpg"/></a>');lines.push('<p><a cm_sp="carousel-_-product'+count+"-_-product"+count+'" href="/ui/browse/processRequest.do?demandPrefix=15&amp;cm_sp=carousel-_-product'+count+"-_-product"+count+"&amp;sku="+rec_prod_id+"&amp;mode=Browsing&amp;requestURI=processProductsCatalog&amp;sd="+escape(short_desc)+'">');lines.push(short_desc+"</a></p>");lines.push("<p>"+uom+"</p>");if(sale_price==0||msrp_price<=sale_price){lines.push('<p><span class="results-regular-price">$'+msrp_price.toFixed(2)+"</span></p>");}else{if(!isNaN(msrp_price)&&msrp_price>0){lines.push('<p><span class="results-was-price">$'+msrp_price.toFixed(2)+"</span>");lines.push('<span class="results-now-price">$'+sale_price.toFixed(2)+"</span></p>");}else{flag="false";break;}}lines.push("</div>");}}if(flag=="true"){html=lines.join("\n");if(document.getElementById("thumbs")!=null){document.getElementById("thumbs").innerHTML=html;}}showDivContent("IOcarousel");}function QVSBZ1_zp(a_product_ids,zone,symbolic,target_id,category,rec_attributes,target_attributes,target_header_txt){var html=zone+"_zp: No recommendations returned";if(symbolic!="_NR_"){var target_header_txt="You May Also Like:";var demandPrefix=getElementValuebyId("demandPrefix","17");var mode=getElementValuebyId("mode","Browsing");var n_recs=a_product_ids.length;var div_title='<h2 class="pd-subhead">'+target_header_txt+"</h2>\n";var lines=new Array();var image_url="//s7.orientaltrading.com/is/image/OrientalTrading/";var flag="true";var count=0;var intMode=0;if(mode.toLowerCase()=="browsing"){intMode=0;}else{intMode=1;}var num=$("#slider > li").length;for(var ii=0;ii<n_recs&&count<15;ii++){var rec_prod_id=a_product_ids[ii];var short_desc=cleanPath(rec_attributes[ii][0]);var smsrp_price=rec_attributes[ii][1];var ssale_price=rec_attributes[ii][2];var rating=rec_attributes[ii][3];var image_name=rec_attributes[ii][4];var uom=rec_attributes[ii][5];var msrp_price=0;var sale_price=0;var product_url="/"+short_desc+"-"+"a2"+"-"+rec_prod_id.replace("/","_").replace("-","+")+"-"+demandPrefix+"-"+intMode+".fltr?xsaleSku="+target_id;try{msrp_price=parseFloat(smsrp_price);}catch(e){msrp_price=0;}if(ssale_price!="NA"){try{sale_price=parseFloat(ssale_price);}catch(e){sale_price=0;}}if(!isNaN(msrp_price)&&msrp_price==999){continue;}else{if(isNaN(msrp_price)){continue;}else{count=count+1;}}lines.push("<li>");lines.push('<div class="ymal-content-wrapper">');lines.push('<a class="quickView quickLookEnabled" data-quickitemmodal= "'+rec_prod_id+'" manual_cm_sp="Cross Sell-_-Quick View-_-Quick View" href="'+product_url+'" alt="'+short_desc+'">');lines.push('<img height="150" width="150" onerror="this.src=noThumb.src" src="'+image_url+image_name+'?$CROSS_SIZE$" alt="'+short_desc+'"/><span class="quickLook"></span></a>');lines.push("<p>");lines.push('<a manual_cm_sp="Cross Sell-_-Quick View-_-Quick View" href="'+product_url+'" alt="'+short_desc+'">');lines.push(rec_attributes[ii][0]);lines.push("</a></p>");if(uom!="NA"){lines.push("<p>"+uom+"</p>");}if(sale_price==0||msrp_price<=sale_price){lines.push('<p><span class="ymal-regular-price">$'+msrp_price.toFixed(2)+"</span></p>");}else{if(!isNaN(msrp_price)&&msrp_price>0){lines.push('<p><span class="ymal-was-price">$'+msrp_price.toFixed(2)+"</span>");lines.push('<span class="ymal-now-price">Now $'+sale_price.toFixed(2)+"</span></p>");}else{flag="false";break;}}if(rating!=null&&rating!="0.0"&&rating!="NA"){lines.push('<p><img src="/images/rating-'+rating.replace(".","_")+'.gif" class="ratingStars">');lines.push("<br/>");lines.push("<b>"+rating+"</b> out of <b>5</b></p>");}lines.push("</div>");lines.push("</li>");}if(count<num){flag="false";}var bxsl=$("ul#slider").size();if(bxsl==0){$("#widget-ymal-qv").append('<h2 class="pd-subhead">You May Also Like:</h2><div id="qv-bx-pager"></div><ul id="slider"></ul>');$("#slider").html(lines.join("\n"));var slider=$("#widget-ymal-qv ul#slider").bxSlider({displaySlideQty:3,moveSlideQty:3,infiniteLoop:false,pager:true,pagerSelector:"#widget-ymal-qv div#bx-pager",controls:false,onAfterSlide:function(currentSlide,totalSlides){if($("ul#slider li.pager").size()<=this.displaySlideQty){$("#widget-ymal-qv a.bx-next").attr("style","display:none;");$("#widget-ymal-qv a.bx-prev").attr("style","display:none;");$("#widget-ymal-qv div#bx-pager").attr("style","display:none;");}else{if(currentSlide+this.displaySlideQty==totalSlides){$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 0px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 -72px;");}else{if(currentSlide+this.displaySlideQty==this.moveSlideQty){$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 -72px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 0px;");}else{$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 -72px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 -72px;");}}}},buildPager:function(slideIndex,slideHtmlObject){return'<a href="" class="pager-link pager-'+slideIndex+'"></a>';}});}else{if(flag=="true"){$("#slider").html(lines.join("\n"));}var slider=$("#widget-ymal-qv ul#slider").bxSlider({displaySlideQty:3,moveSlideQty:3,infiniteLoop:false,pager:true,pagerSelector:"#widget-ymal-qv div#bx-pager",controls:false,onAfterSlide:function(currentSlide,totalSlides){if($("ul#slider li.pager").size()<=this.displaySlideQty){$("#widget-ymal-qv a.bx-next").attr("style","display:none;");$(".#widget-ymal-qv a.bx-prev").attr("style","display:none;");$("#widget-ymal-qv div#bx-pager").attr("style","display:none;");}else{if(currentSlide+this.displaySlideQty==totalSlides){$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 0px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 -72px;");}else{if(currentSlide+this.displaySlideQty==this.moveSlideQty){$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 -72px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 0px;");}else{$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 -72px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 -72px;");}}}},buildPager:function(slideIndex,slideHtmlObject){return'<a href="" class="pager-link pager-'+slideIndex+'"></a>';}});}$("#widget-ymal-qv a.bx-prev").click(function(){slider.goToPreviousSlide();return false;});$("#widget-ymal-qv a.bx-next").click(function(){slider.goToNextSlide();return false;});showDivContent("widget-ymal-qv");}else{var bxsl=$("ul#slider").size();if(bxsl!=0){var slider=$("#widget-ymal-qv ul#slider").bxSlider({displaySlideQty:3,moveSlideQty:3,infiniteLoop:false,pager:true,pagerSelector:"#widget-ymal-qv div#bx-pager",controls:false,onAfterSlide:function(currentSlide,totalSlides){if($("ul#slider li.pager").size()<=this.displaySlideQty){$("#widget-ymal-qv a.bx-next").attr("style","display:none;");$("#widget-ymal-qv a.bx-prev").attr("style","display:none;");$("#widget-ymal-qv div#bx-pager").attr("style","display:none;");}else{if(currentSlide+this.displaySlideQty==totalSlides){$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 0px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 -72px;");}else{if(currentSlide+this.displaySlideQty==this.moveSlideQty){$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 -72px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 0px;");}else{$("#widget-ymal-qv a.bx-next").attr("style","background-position:0 -72px;");$("#widget-ymal-qv a.bx-prev").attr("style","background-position:0 -72px;");}}}},buildPager:function(slideIndex,slideHtmlObject){return'<a href="" class="pager-link pager-'+slideIndex+'"></a>';}});$("#widget-ymal-qv a.bx-prev").click(function(){slider.goToPreviousSlide();return false;});$("#widget-ymal-qv a.bx-next").click(function(){slider.goToNextSlide();return false;});showDivContent("widget-ymal-qv");}else{hideDivContent("widget-ymal-qv");}}}function showDivContent(divName){var thisDiv=document.getElementById(divName);if(thisDiv){thisDiv.style.display="block";thisDiv.style.visibility="visible";}else{}}function hideDivContent(divName){var thisDiv=document.getElementById(divName);if(thisDiv){thisDiv.style.visibility="hidden";}else{}}function getElementValuebyId(idName,defaultValue){var thisDiv=document.getElementById(idName);if(thisDiv&&thisDiv!=null){thisDiv=thisDiv.value;}else{thisDiv=defaultValue;}return thisDiv;}function cleanPath(inPath){var outPath=new String();outPath=inPath.toLowerCase();outPath=outPath.replace('"',"");outPath=outPath.replace("'","");outPath=outPath.replace("#8220;","");outPath=outPath.replace("#8221;","");outPath=outPath.replace("&#44;","");outPath=outPath.replace("&#174;","");outPath=outPath.replace("&#8482;","");outPath=outPath.replace("&#8217;","");outPath=outPath.replace("&amp;","and");outPath=outPath.replace("&","and");outPath=outPath.replace(/[^a-z- ]/gi,"");outPath=outPath.replace(/^\s+/,"");outPath=outPath.replace(/\s+$/,"");outPath=outPath.replace(/\s{2,}/g,"");outPath=outPath.replace(/^\s+/,"");outPath=outPath.replace(/\s+$/,"");outPath=outPath.replace(/ /g,"-");return outPath;}
