var tabs=[];var ind=0;var inter;function change(a){$(".tab:not(#"+a+")").hide();if(jQuery.browser.msie&&jQuery.browser.version.substr(0,3)=="6.0"){$(".tab#"+a).show()}else{$(".tab#"+a).fadeIn()}$(".htabs h2:not(#"+a+"t)").removeClass("selected");$(".htabs h2#"+a+"t").addClass("selected")}function next(){change(tabs[ind++]);if(ind>=tabs.length){ind=0}}function tabGoto(b,a){change(b);if($(a).length==1){$.scrollTo($(a),1000,{axis:"y"})}}$(document).ready(function(){if($(".htabs").length==0){$(".ProductBottomBlock").append("<ul class='htabs'></ul>");$(".tab").each(function(){header=$("h2.temph2",$(this)).removeClass("temph2");if(header.length==1){$(".ProductBottomBlock .htabs").append($("<li>").append(header.clone()));$(header).remove()}})}if($(".htabs").length!=0){$(".tab").map(function(){tabs[ind++]=$(this).attr("id")});ind=1;var b=document.location.toString();if(b.match("#")){var a=b.split("#")[1];if($("#"+a).hasClass("tab")){change(a)}}else{change(tabs[0])}$(".htabs a").click(function(){stringref=$(this).attr("href").split("#")[1];if(stringref=="mounting_partners"&&typeof _gaq!=="undefined"){_gaq.push(["_trackEvent","ProductPage","ZipCode","Tab"])}change(stringref);return false});$(".TabLink").click(function(){stringref=$(this).attr("href").split("#")[1];change(stringref);return true});if($(".tab.active").length>0){change($(".tab.active").attr("id"))}}});
