function page_init(){MM_preloadImages("http://www.fitnessblowout.com/images/nb02b.jpg","http://www.fitnessblowout.com/images/nb03b.jpg","http://www.fitnessblowout.com/images/nb04b.jpg","http://www.fitnessblowout.com/images/nb05b.jpg","http://www.fitnessblowout.com/images/nb06b.jpg","http://www.fitnessblowout.com/images/nb07b.jpg","http://www.fitnessblowout.com/images/nt02b.jpg","http://www.fitnessblowout.com/images/nt03b.jpg","http://www.fitnessblowout.com/images/nt04b.jpg","http://www.fitnessblowout.com/images/nt05b.jpg",
"http://www.fitnessblowout.com/images/nt06b.jpg","http://www.fitnessblowout.com/images/nt07b.jpg","http://www.fitnessblowout.com/images/nt08b.jpg","http://www.fitnessblowout.com/images/nt09b.jpg");setupZoom()}function tgl_vis(a,b){document.getElementById(b).className=document.getElementById(b).className=="desc_hide"?"desc_show":"desc_hide";a.appendChild(document.createTextNode("Hide"))}function start_clock(a,b){setTimeout("increment("+a+","+b+")",1000)}
function increment(a,b){a++;b=a>=b?b+86400:b;var e=b-a;document.getElementById("countdown").innerHTML="Today's Sale Ends in "+get_clock(e)+", Order Now!";setTimeout("increment("+a+","+b+")",1000)}function get_clock(a){var b=a%60,e=(a-b)/60;a=e%60;e=(e-a)/60;b=b>0?b:0;a=a>0?a:0;e=e>0?e:0;return b=e+" hours, "+a+" minutes, "+b+" seconds"}
function submit_sort_form(a){var b="results_"+a,e="order_"+a;a="sc_"+a;document.sort_form.results.value=document.getElementById(b).value;document.sort_form.order.value=document.getElementById(e).value;document.sort_form.sc.value=document.getElementById(a)?document.getElementById(a).value:0;document.sort_form.submit()}function go_to_page(a){document.sort_form.page.value=a;document.sort_form.submit()}
function submit_manufacturer_form(){document.manufacturer_form.manufacturer.value=document.getElementById("manufacturer").value;document.manufacturer_form.submit()}function view_manufacturer(){window.location="http://www.fitnessblowout.com/brand/"+document.getElementById("manufacturer").value}
function brand_subcategory(a){window.location=a.value?"http://www.fitnessblowout.com/brand/"+document.getElementById("brand").value+"/"+a.value:"http://www.fitnessblowout.com/brand/"+document.getElementById("brand").value}function commercial_subcategory(a){window.location="http://www.fitnessblowout.com/commercial/"+a.value}function submit_search_form(){document.search_form.q.value=document.getElementById("search_text").value;document.search_form.submit()}
function submit_mailing_list_form(){document.getElementById("Email Address").value=document.getElementById("email").value;document.mailing_list_form.submit()}function add_to_cart(a){document.cart_form.add.value=a;document.cart_form.submit()}
function switch_img(a,b){container=document.getElementById("pri");container.innerHTML="";var e="../../images/products/large/"+a+".jpg";a="../../images/products/enlarge/"+a+".jpg";if(b==1){enlnk=container.appendChild(document.createElement("a"));enlnk.href=a;image=enlnk.appendChild(document.createElement("img"));image.src=e;image.border=0;setupZoom()}else{image=container.appendChild(document.createElement("img"));image.src=e;image.border=0}}var comp=[];
function comp_select(a){document.getElementById(a).checked==true&&comp.unshift(a)}function index_to_video(){window.location+="#tabs";document.getElementById("tab_container").innerHTML=document.getElementById("Demo Video").innerHTML}function is_checked(a,b,e){return document.getElementById(a).checked}var compare=[];
function viewComparison(a){a=a;var b=document.getElementsByName("compare"),e=0;for(i=0;i<b.length;i++)if(b[i].checked==true&&e<5){a+="-"+b[i].value;e++}e>1?window.open("http://www.fitnessblowout.com/compare-units/"+a,"comparison","width=800,height=600,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes"):alert("You must select at least two units to compare")}
function open_new_window(a,b,e){b="width="+b+",height="+e+",scrollbars=yes";window.open(a,"help_window",b)}var title=[];
function init_tabs(){container=document.getElementById("container_cel");header=container.appendChild(document.createElement("div"));header.className="tab_head";for(t=d=0;t<init_tabs.arguments.length;t++)if(document.getElementById(init_tabs.arguments[t])){title[d]=init_tabs.arguments[t];tab=header.appendChild(document.createElement("div"));tab.className=d>0?"tab":"tab_up";tab.id="tab_"+d;tab_left=tab.appendChild(document.createElement("div"));tab_left.className="tab_left";tab_title=tab.appendChild(document.createElement("div"));
tab_title.className="tab_title";tab_title.appendChild(document.createTextNode(title[d]));tab_right=tab.appendChild(document.createElement("div"));tab_right.className="tab_right";tab.onmouseover=function(){this.className=this.className=="tab"?"tab_over":this.className};tab.onmouseout=function(){this.className=this.className=="tab_over"?"tab":this.className};tab.onmousedown=function(){if(this.className!="tab_up"){pt=this.id.split("_");index=pt[1];content.innerHTML=document.getElementById(title[index]).innerHTML;
this.className="tab_up";for(c=0;c<title.length;c++){tab_id="tab_"+c;document.getElementById(tab_id).className=tab_id!=this.id?"tab":document.getElementById(tab_id).className}}};d++}content=container.appendChild(document.createElement("div"));content.id="tab_container";content.className="tab_container";content.innerHTML=document.getElementById(title[0]).innerHTML}
function init_tabs_new(){container=document.getElementById("container_cel");header=container.appendChild(document.createElement("div"));header.className="tab_head_new";for(t=d=0;t<init_tabs_new.arguments.length;t++)if(document.getElementById(init_tabs_new.arguments[t])){title[d]=init_tabs_new.arguments[t];tab=header.appendChild(document.createElement("div"));tab.className=d>0?"tab":"tab_up";tab.id="tab_"+d;tab_left=tab.appendChild(document.createElement("div"));tab_left.className="tab_left";tab_title=
tab.appendChild(document.createElement("div"));tab_title.className="tab_title";tab_title.appendChild(document.createTextNode(title[d]));tab_right=tab.appendChild(document.createElement("div"));tab_right.className="tab_right";tab.onmouseover=function(){this.className=this.className=="tab"?"tab_over":this.className};tab.onmouseout=function(){this.className=this.className=="tab_over"?"tab":this.className};tab.onmousedown=function(){if(this.className!="tab_up"){pt=this.id.split("_");index=pt[1];content.innerHTML=
document.getElementById(title[index]).innerHTML;this.className="tab_up";for(c=0;c<title.length;c++){tab_id="tab_"+c;document.getElementById(tab_id).className=tab_id!=this.id?"tab":document.getElementById(tab_id).className}}};d++}content=container.appendChild(document.createElement("div"));content.id="tab_container";content.className="tab_container_new";content.innerHTML=document.getElementById(title[0]).innerHTML}
function MM_swapImgRestore(){var a,b,e=document.MM_sr;for(a=0;e&&a<e.length&&(b=e[a])&&b.oSrc;a++)b.src=b.oSrc}function MM_preloadImages(){var a=document;if(a.images){if(!a.MM_p)a.MM_p=[];var b,e=a.MM_p.length,f=MM_preloadImages.arguments;for(b=0;b<f.length;b++)if(f[b].indexOf("#")!=0){a.MM_p[e]=new Image;a.MM_p[e++].src=f[b]}}}
function MM_findObj(a,b){var e,f;b||(b=document);if((e=a.indexOf("?"))>0&&parent.frames.length){b=parent.frames[a.substring(e+1)].document;a=a.substring(0,e)}if(!(f=b[a])&&b.all)f=b.all[a];for(e=0;!f&&e<b.forms.length;e++)f=b.forms[e][a];for(e=0;!f&&b.layers&&e<b.layers.length;e++)f=MM_findObj(a,b.layers[e].document);if(!f&&b.getElementById)f=b.getElementById(a);return f}
function MM_swapImage(){var a,b=0,e,f=MM_swapImage.arguments;document.MM_sr=[];for(a=0;a<f.length-2;a+=3)if((e=MM_findObj(f[a]))!=null){document.MM_sr[b++]=e;if(!e.oSrc)e.oSrc=e.src;e.src=f[a+2]}}function toggleLayer(a){var b;if(document.getElementById)b=document.getElementById(a);else if(document.all)b=document.all[a];else if(document.layers)b=document.layers[a];a=b.style;a.display=a.display==""||a.display=="block"?"none":"block"};