

function brillar(x, y){
	document.images[x].src=eval(y+'.src');
}
var orderForm = '';
	orderForm += '<form name="OrderItemAddForm" action="OrderItemAdd" method="post" id="OrderItemAddForm">';
	orderForm += '<input type="hidden" name="langId" value="-1" />';
	orderForm += '<input type="hidden" name="storeId" value="14201" />';
	orderForm += '<input type="hidden" name="orderId" value="." />';
	orderForm += '<input type="hidden" name="catalogId" value="16002" />';
	orderForm += '<input type="hidden" name="URL" value="" />';
	orderForm += '<input type="hidden" name="errorViewName" value="ProductDisplayErrorView" />';
	orderForm += '<input type="hidden" name="catEntryId" value="133803" />';
	orderForm += '<input type="hidden" name="productId" value="133803" />';
	orderForm += '<input type="hidden" name="calculationUsageId" value="-1" />';
	orderForm += '<input type="hidden" name="shouldCachePage" value="false" />';
	orderForm += '<input type="hidden" name="quantity" value="1" />';
	orderForm += '</form>';
	document.write(orderForm);

var busy = false;
function Add2ShopCartProduct(form) {
	if (!busy) {
		busy = true;
		form.action = 'http://www.proform.com/webapp/wcs/stores/servlet/OrderItemAdd';
		form.URL.value = 'OrderCalculate?doPrice=Y&updatePrices=1&calculationUsageId=-1&calculationUsageId=-2&calculationUsageId=-3&calculationUsageId=-4&calculationUsageId=-5&calculationUsageId=-6&calculationUsageId=-7&orderItemId*=&quantity*=&URL=OrderItemDisplay';
		form.submit();
	}
}

// POPUP WINDOW FUNCTION
function popWindow (url,myWidth,myHeight,myScrollbars,myTop,myLeft,myMenubar,myResize) {
window.open (url, "name","width="+myWidth+",height="+myHeight+",scrollbars="+myScrollbars+",top="+myTop+",left="+myLeft+",menubar="+myMenubar+",resizable="+myResize+",bgcolor=#ffffff");
}


// HEADER
var header = '';
	header += '<div id="top">';
		header += '<div id="header">';
			header += '<h1><a class="logo" title="ProForm" href="http://www.proform.com/webapp/wcs/stores/servlet/TopCategories_-1_14201_16002"><span>ProForm&reg;</a></h1>';
		header += '</div>';
		
		header += '<div id="info">';
			header += '<div id="search">&nbsp;';
			header += '</div>';
			header += '<div id="sales"><h3>Sales: 1.888.742.0128</h3></div>';
		header += '</div>';	
			
		header += '<ul id="nav">';
		header += '<li id="n_TREADMILLS"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29509_Y" title="Treadmills"><span>Treadmills</span></a></li>';
		header += '<li id="n_ELLIPTICALS"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29510_Y"><span>Ellipticals</span></a></li>';
		header += '<li id="n_INCLINE_on"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_58508_Y"><span>Incline</span></a></li>';
		header += '<li id="n_EXERCISE"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29511_Y"><span>Exercise Bikes</span></a></li>';
		header += '<li id="n_STRENGTH"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29512_Y"><span>Strength Equipment</span></a></li>';
		header += '<li id="n_IFITLIVE"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_58507_Y"><span>Vibration</span></a></li>';
//		header += '<li id="n_AB_MACHINES"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29514_Y"><span>Ab Machines</span></a></li>';
		header += '<li id="n_ACCESSORIES"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29515_Y"><span>Fitness Accessories</span></a></li>';		
//		header += '<li id="n_IFIT_CARDS"><a href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_49501_Y"><span>iFit Cards</span></a></li>';
		header += '</ul>';	
	header += '</div>';

//page Navigation
var pageNav = '';
	pageNav += '<div id="page-nav">';
		pageNav += '<ul id="pg-nav">';
		pageNav += '<li id="sn_DETAILS"><a href="index.html" title="Treadmills"><span>Product Details</span></a></li>';
		pageNav += '<li id="sn_INCLINE"><a href="incline.html"><span>Incline</span></a></li>';
		pageNav += '<li id="sn_CUSHIONING"><a href="cushion.html"><span>Cushioning</span></a></li>';
	//	pageNav += '<li id="n_COMPARE"><a href="compare.html"><span>Competitor Compare</span></a></li>';
		pageNav += '<li id="sn_IFIT"><a href="ifit.html"><span>iFit Live</span></a></li>';
		pageNav += '<li id="sn_TESTIMONIAL"><a href="testimonials.html"><span>Testimonials</span></a></li>';
		pageNav += '</ul>';	
	pageNav += '</div>';

// FOOTER
var footer = '';
		footer += '<div id="bottom">';
			footer += '<div id="promo">';
				footer += '<img src="images/freeshipping.jpg" alt="Free Shipping"/>';
				footer += '<div id="bml-footer">';
					footer += '<span class="title">No Wallet, No Wait, No Worries&reg;</span>';
					footer += '<a href="javascript:popWindow(\'https://www.securecheckout.billmelater.com/paycapture-content/fetch?hash=48B27T8B&content=/bmlweb/coreiw.html\',\'520\',\'400\',\'yes\',\'0\',\'20\',\'no\',\'yes\');"><img src="images/BMLhomepage.jpg" alt="Bill Me Later" /></a>';
					footer += '<span class="small">Minimum purchase required. Subject to credit approval. <a href="javascript:popWindow(\'https://www.securecheckout.billmelater.com/paycapture-content/fetch?hash=48B27T8B&content=/bmlweb/coreiw.html\',\'520\',\'400\',\'yes\',\'0\',\'20\',\'no\',\'yes\');">Details&gt;</a></span>';										
				footer += '</div>';
			footer += '</div>';
			
				footer += '<div class="spot" id="support">';
					footer += '<p>Media Support</p>';
					footer += '<ul class="color-text media-support">';
					footer += '<li><a href="http://twitter.com/ProFormFitness"><img src="images/twitter.jpg" alt="Twitter" /><span class="underline color-text">Follow us on Twitter</span></a></li>';
					footer += '</ul><p>Product Support</p>';
					footer += '<ul>';
					footer += '<li><a href="https://www.iconservice.com/prodreg/ProFormProdReg.jsp">Register you product</a></li>';
					footer += '<li><a href="http://www.iconservice.com/proform/">Help with your product</a></li>';
					footer += '<li class="bold"><a href="http://www.proform.com/webapp/wcs/stores/servlet/BuyersGuideDisplayView?langId=-1&amp;storeId=17551&amp;catalogId=18052&amp;pageName=BuyersGuideTreadmill">Buyers guide</a></li>';
					footer += '</ul>';
				footer += '</div>';
				
																																				
				footer += '<div class="spot" id="sale-spot">';
					footer += '<a href="http://www.proform.com/webapp/wcs/stores/servlet/Product_-1_14201_16002_29515_93203"><img src="images/abs-footer.jpg" alt="Technology!" /></a>';
				footer += '</div>';
				
				footer += '<div id="email-exclusive">';
					footer += '<a id="media" href="http://www.proform.com/webapp/wcs/stores/servlet/EmailSubscribe_-1_14201_16002">&nbsp;</a>';
				footer += '</div>';
				
			footer += '<div class="clear">&nbsp;</div>';
		footer += '</div>';
			footer += '<div id="footer">';
				footer += '<ul>';
					footer += '<li><a href="http://www.proform.com/webapp/wcs/stores/servlet/AboutUs_-1_14201_16002">About Us</a></li>';
					footer += '<li><a href="http://www.proform.com/webapp/wcs/stores/servlet/PrivacyPolicy_-1_14201_16002">Policies</a></li>';
					footer += '<li><a href="http://www.proform.com/webapp/wcs/stores/servlet/MediaRelationsDisplay?langId=-1&amp;storeId=14201&amp;catalogId=16002">Media Relations</a></li>';
					footer += '<li><a href="http://www.proform.com/webapp/wcs/stores/servlet/SiteMap_-1_14201_16002">Site Map</a></li>';
					footer += '<li><a href="http://www.proform.com/webapp/wcs/stores/servlet/AffiliatesSignUp_-1_14201_16002">Affiliate Program</a></li>';
					footer += '<li><a href="http://www.iconservice.com/proform/">Customer Service</a></li>';
					footer += '<li><a href="http://www.proform.com/webapp/wcs/stores/servlet/EmailSubscribe_-1_14201_16002">Register for Special Deals</a></li>';
				footer += '</ul>';
				
				footer += '<div style="clear: right;"></div>';
				
				footer += '<div id="footer-copyright" class="color-text>';
					footer += 'Copyright<sup class="color-text">&copy;</sup>2009 ProForm.com All Rights Reserved.';
					footer += 'Pricing valid only in the Continental U.S.';
				footer += '</div>';
			footer += '</div>';	
	
	

