
function brillar(x, y){
	document.images[x].src=eval(y+'.src');
}

__compete_code = 'b65ef3e20dc7f9f2238e2e155e542f76';
(function () {
    var s = document.createElement('script'),
        d = document.getElementsByTagName('head')[0] ||
            document.getElementsByTagName('body')[0],
        t = 'https:' == document.location.protocol ?
            'https://c.compete.com/bootstrap/' :
            'http://c.compete.com/bootstrap/';
    s.src = t + __compete_code + '/bootstrap.js';
    s.type = 'text/javascript';
    s.async = 'async';
    if (d) { d.appendChild(s); }
}()); 

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"><img src="images/proform.png" alt="ProForm"></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 class="top-category" id="n_TREADMILLS"><a title="ProForm Treadmills" href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29509_Y"><h3>Treadmills</h3></a></li>';
		header += '<li class="top-category" id="n_ELLIPTICALS"><a title="ProForm Ellipticals" href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29510_Y"><h3>Ellipticals</h3></a></li>';
		header += '<li class="top-category" id="n_EXERCISE"><a title="ProForm Exercise Bikes" href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29511_Y"><h3>Exercise Bikes</h3></a></li>';
		header += '<li class="top-category" id="n_TOUR"><a title="Tour De France Indoor Cycling Bike" href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_69502_Y"><h3>Tour De France</h3></a></li>';
		header += '<li class="top-category" id="n_STRENGTH"><a title="strength equipment, home gyms, weight benches by ProForm.com" href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29512_Y"><h3>Strength</h3></a></li>';
		header += '<li class="top-category" id="n_ACCESSORIES"><a title="fitness accessories, exercise accessories, fitness equipment accessories, exercise equipment accessories" href="http://www.proform.com/webapp/wcs/stores/servlet/Category_-1_14201_16002_29515_Y"><h3>Accessories</h3></a></li>';		
		header += '<li class="top-category" id="n_IFITLIVE"><a href="http://ifit.proform.com/" live"="" title="iFit"><h3>iFit Live</h3></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_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="n_DETAILS"><a href="index.html" title="Details"><span>Product Details</span></a></li>';
		pageNav += '<li id="n_TRAINING"><a href="training.html"><span>Personal Training</span></a></li>';
		pageNav += '<li id="n_RUN"><a href="run.html"><span>Run Anywhere</span></a></li>';
	//	pageNav += '<li id="n_COMPETITION"><a href="competition.html"><span>Competition</span></a></li>';
		pageNav += '<li id="n_VIDEO" class="lightbox"><a href="iFitVideo.html" class="{frameWidth: 380, frameHeight: 306}" alt="video tour"><span>Video Tour</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/CustomerService/registrationStart.do?dr=PF">Register your product</a></li>';
					footer += '<li><a href="http://www.proform.com/webapp/wcs/stores/servlet/Help_-1_14201_16002">Help with your product</a></li>';
					footer += '<li class="bold"><a href="javascript:popWindow(\'/wcsstore/ProForm/StoreInfoArea/pop_BuyersGuideTreadmill.html\',\'1000\',\'620\',\'yes\',\'20\',\'20\',\'no\',\'no\');">Treadmill buyers guide</a></li>';
					footer += '<li class="bold"><a href="javascript:popWindow(\'/wcsstore/ProForm/StoreInfoArea/pop_BuyersGuideElliptical.html\',\'1000\',\'620\',\'yes\',\'20\',\'20\',\'no\',\'no\');">Elliptical 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/footer-special.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"><img src="images/sweepstakes.jpg" alt="Technology!" /></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.proform.com/webapp/wcs/stores/servlet/Help_-1_14201_16002">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>';	
	
	

