/*  start static upsell */
        
	var isCartPage = false;
	var reqQString = document.getElementById('reqQueryString').value;

	if (
			(
				(reqQString.indexOf("sc=3&buyNow") != -1) ||
		 		(reqQString.indexOf("sc.3/.f") != -1) || 
		 		(reqQString.indexOf("sc=3&whence=") != -1) ||
		 		(reqQString.indexOf("sc=3&") != -1)
		 	)
		 && reqQString.indexOf("category") == -1) isCartPage = true;

  
  	if (isCartPage) {
  		/* css for upsell */
  		document.write('<style type="text/css">');
  		document.write('.upsellHeading {text-align:left; text-decoration:none; font-weight: bold; font-family:arial, verdana, sans-serif; font-size: 28px; color:#2866b1;}');
		document.write('.upsellItemHeading {text-align:left; text-decoration:none; font-weight: bold; font-family:arial, verdana, sans-serif; font-size: 17px; color:#2866b1;}');
		document.write('.upsellDescription {text-align:left; text-decoration:none; font-weight: normal; font-family:arial, verdana, sans-serif; font-size: 11px; color:#828181;}');
		document.write('.upsellOriginalPrice {text-align:left; text-decoration:none; font-weight: bold; font-family:arial, verdana, sans-serif; font-size: 14px; color:#000000; }');
		document.write('.upsellSTOriginalPrice {text-align:left; text-decoration:line-through; font-weight: bold; font-family:arial, verdana, sans-serif; font-size: 14px; color:#000000; }');
		document.write('.upsellOSOriginalPrice {text-align:left; text-decoration:none; font-weight: bold; font-family:arial, verdana, sans-serif; font-size: 14px; color:red; }');
  		document.write('</style>');
  		
  		
  		document.write('<table border="0" style="width:954px; margin-left: auto; margin-right: auto;">');
  			document.write('<tr>');
  				document.write('<td colspan="5" class="upsellHeading">');
  					document.write('Exclusive Offers Available with Your Order!');
  				document.write('</td>');
  			document.write('</tr>');
  			
  			document.write('<tr>');
  				document.write('<td valign="top" width="24%" style="padding:10px;">');
  					/* speaker ball */
						document.write('<form method="post" name="form1703" id="form1703" onsubmit="pageTracker._linkByPost(this);return checkmandatory1703();" action="/app/site/backend/additemtocart.nl">');
						document.write('<input type="hidden" name="buyid" id="buyid" value="1703"/>');
						document.write('<input type="hidden" name="category" value="354"/>');
						document.write('<input type="hidden" name="itemid" value=""/>');
						document.write('<input type="hidden" name="qty" value="1"/>');
  					
  					document.write('<div style="text-align:center;">');
  					document.write('<a href="http://www.marware.com/products/Accesories/Speaker-Ball">');
  					document.write('<img src="/core/media/media.nl?id=39451&amp;c=631249&amp;h=d507b44b926fd8a77f78&amp;resizeid=-1&amp;resizeh=150&amp;resizew=150" border="0" alt="speakerball_open_closed-350.jpg" title="speakerball_open_closed-350.jpg">');
  					document.write('</a>');
  					document.write('</div>');
  					document.write('<p class="upsellItemHeading">');
					document.write('<a href="http://www.marware.com/products/Accesories/Speaker-Ball">');  					
  					document.write('Speaker Ball');
  					document.write('</a>');
  					document.write('<span class="upsellDescription">');
  					document.write('<br>Amplify your iPhone, iPod, mobile phone, media player or laptop experience with this portable universal Speaker Ball by Marware.<br>');
  					document.write('</span>');
  					document.write('</p>');
  					document.write('<a>');
  					document.write('<span  class="upsellOriginalPrice">');
  					document.write('Price: ');
  					document.write('</span>');
  					document.write('<span class="upsellSTOriginalPrice">');
  					document.write('$24.99');
  					document.write('</span>');
  					document.write('<span class="upsellOSOriginalPrice"">');
  					document.write(' On Sale $17.99');
  					document.write('</span>');
  					document.write('<span class="upsellDescription">');
  					document.write('<br/>');
  					document.write('<br/>');
  					document.write('</span>');
  					document.write('</a>');
  					/* add to cart stuff */
  					document.write('<div class="" style="text-align:right; margin:0px; padding:0px;">');
						document.write('<input id="addtocart" name="addtocart" class="bgbutton" style="border-style:none;" type="image" src="./images/addtocartbuttonSmall.jpg" onkeypress="window.event.cancelBubble=true;" onClick="if (document.forms[\'form1703\'].onsubmit()) document.forms[\'form1703\'].submit();" name="addtocart" value="Add to Cart "/>');
					document.write('</div>');
	
				document.write('</form>');
  				document.write('</td>');
				/* divider line */
  				document.write('<td valign="center"  width="1%" style="padding:0px;">');
					document.write('<div style="height:320px; border-left:2px solid #ebebeb; background:url(/images/blank.gif) 0% 0% no-repeat; display: block;" </div>');
  				document.write('</td>');

  				document.write('<td valign="top" width="24%" style="padding:10px;">');
  				 	/* Power Charger */
					document.write('<form method="post" name="form1624" id="form1624" onsubmit="pageTracker._linkByPost(this);return checkmandatory1624();" action="/app/site/backend/additemtocart.nl">');
					document.write('<input type="hidden" name="buyid" id="buyid" value="1624"/>');
					document.write('<input type="hidden" name="category" value="354"/>');
					document.write('<input type="hidden" name="itemid" value=""/>');
					document.write('<input type="hidden" name="qty" value="1"/>');
  				 	
  				 	
  					document.write('<div style="text-align:center;">');
					document.write('<a href="http://www.marware.com/products/Accesories/Marware-USB-Car-Charger">');  					
  					document.write('<img src="/core/media/media.nl?id=14312&amp;c=631249&amp;h=89b65bffd89290e14c41&amp;resizeid=-1&amp;resizeh=150&amp;resizew=150" border="0" alt="CHARGER_MAIN_150.jpg" title="CHARGER_MAIN_150.jpg">');
  					document.write('</a>');
  					document.write('</div>');
  					
  					document.write('<p class="upsellItemHeading">');
					document.write('<a href="http://www.marware.com/products/Accesories/Marware-USB-Car-Charger">');  					
  					document.write('Power Charger');
  					document.write('</a>');
  					document.write('<span class="upsellDescription"><br>');
  					document.write('This convenient, universal, Dual-USB charging device plugs right into your car or boat lighter or DC power jack.<br><br>');
  					document.write('</span>');
  					document.write('</p>');
  					document.write('<a class="upsellOriginalPrice">');
  					document.write('Price: ');
  					document.write('<span style="text-decoration: line-through;">');
  					document.write('$19.99');
  					document.write('</span>');
  					document.write('<span style="text-decoration: none; color:#ff0000;">');
  					document.write(' On Sale $9.99');
  					document.write('</span>');
  					document.write('<span class="upsellDescription">');
  					document.write('<br/>');
  					document.write('<br/>');
  					document.write('</span>');
  					document.write('</a>');
  					
  					/* add to cart stuff */
  					document.write('<div class="" style="text-align:right; margin:0px; padding:0px;">');
						document.write('<input id="addtocart" name="addtocart" class="bgbutton" style="border-style:none;" type="image" src="./images/addtocartbuttonSmall.jpg" onkeypress="window.event.cancelBubble=true;" onClick="if (document.forms[\'form1624\'].onsubmit()) document.forms[\'form1624\'].submit();" name="addtocart" value="Add to Cart "/>');
					document.write('</div>');
  					
				document.write('</form>');

  				document.write('</td>');

				/* divider line */
  				document.write('<td valign="center"  width="1%" style="padding:0px;">');
					document.write('<div style="height:320px; border-left:2px solid #ebebeb; background:url(/images/blank.gif) 0% 0% no-repeat; display: block;" </div>');
  				document.write('</td>');
  				
  				
  				document.write('<td valign="top" width="24%" style="padding:10px;">');
  					/* tripod */
						document.write('<form method="post" name="form1687" id="form1687" onsubmit="pageTracker._linkByPost(this);return checkmandatory1687();" action="/app/site/backend/additemtocart.nl">');
						document.write('<input type="hidden" name="buyid" id="buyid" value="1687"/>');
						document.write('<input type="hidden" name="category" value="354"/>');
						document.write('<input type="hidden" name="itemid" value=""/>');
						document.write('<input type="hidden" name="qty" value="1"/>');
  					
  					document.write('<div style="text-align:center;">');
  					document.write('<a href="http://www.marware.com/products/Accesories/Mini-Tripod">');
  					document.write('<img src="/core/media/media.nl?id=38529&amp;c=631249&amp;h=b6047f55893d6c601733&amp;resizeid=-1&amp;resizeh=150&amp;resizew=150" border="0" alt="tripod_landscape_feature-350.jpg" title="tripod_landscape_feature-350.jpg">');
  					document.write('</a>');
  					document.write('</div>');
  					document.write('<p class="upsellItemHeading">');
					document.write('<a href="http://www.marware.com/products/Accesories/Mini-Tripod">');  					
  					document.write('Marware Mini-Tripod');
  					document.write('</a>');
  					document.write('<span class="upsellDescription">');
  					document.write('<br>Marware Mini-Tripod features a removable mount, a 360° rotating adjustable swivel, and durable, lightweight  three-legged structure.<br>');
  					document.write('</span>');
  					document.write('</p>');
  					document.write('<a>');
  					document.write('<span  class="upsellOriginalPrice">');
  					document.write('Price: ');
  					document.write('</span>');
  					document.write('<span class="upsellSTOriginalPrice">');
  					document.write('$24.99');
  					document.write('</span>');
  					document.write('<span class="upsellOSOriginalPrice"">');
  					document.write(' On Sale $9.99');
  					document.write('</span>');
  					document.write('<span class="upsellDescription">');
  					document.write('<br/>');
  					document.write('<br/>');
  					document.write('</span>');
  					document.write('</a>');
  					/* add to cart stuff */
  					document.write('<div class="" style="text-align:right; margin:0px; padding:0px;">');
						document.write('<input id="addtocart" name="addtocart" class="bgbutton" style="border-style:none;" type="image" src="./images/addtocartbuttonSmall.jpg" onkeypress="window.event.cancelBubble=true;" onClick="if (document.forms[\'form1687\'].onsubmit()) document.forms[\'form1687\'].submit();" name="addtocart" value="Add to Cart "/>');
					document.write('</div>');
	
				document.write('</form>');
  				document.write('</td>');
  				
				/* divider line */
  				document.write('<td valign="center"  width="1%" style="padding:0px;">');
					document.write('<div style="height:320px; border-left:2px solid #ebebeb; background:url(/images/blank.gif) 0% 0% no-repeat; display: block;" </div>');
  				document.write('</td>');

  				document.write('<td  valign="top" width="24%" style="padding:10px;">');
  				 	// Squid Stand
					
					document.write('<form method="post" name="form1686" id="form1686" onsubmit="pageTracker._linkByPost(this);return checkmandatory1686();" action="/app/site/backend/additemtocart.nl">');
					document.write('<input type="hidden" name="buyid" id="buyid" value="1686"/>');
					document.write('<input type="hidden" name="category" value="354"/>');
					document.write('<input type="hidden" name="itemid" value=""/>');
					document.write('<input type="hidden" name="qty" value="1"/>');

  					document.write('<div style="text-align:center;">');
					document.write('<a href="http://www.marware.com/products/Accesories/Squidstand">');  					
  					document.write('<img src="/core/media/media.nl?id=38728&amp;c=631249&amp;h=bef323eaadebe0d1141e&amp;resizeid=-1&amp;resizeh=150&amp;resizew=150" border="0" alt="squidstand_front_views-350.jpg" title="squidstand_front_views-350.jpg">');
  					document.write('</div>');
  					
  					document.write('<p class="upsellItemHeading">');
					document.write('<a href="http://www.marware.com/products/Accesories/Squidstand">');  					
  					document.write('SquidStand');
  					document.write('</a>');
  					document.write('<span class="upsellDescription"><br>');
  					document.write('From using FaceTime to watching movies or photography, the SquidStand makes for a fun and simple hands-free mobile experience. Colors are random.');
  					document.write('</span>');
  					document.write('</p>');
  					document.write('<a class="upsellOriginalPrice">');
  					document.write('Price: ');
  					document.write('<span style="text-decoration: line-through;">');
  					document.write('$12.99');
  					document.write('</span>');
  					document.write('<span style="text-decoration: none; color:#ff0000;">');
  					document.write(' On Sale $4.99');
  					document.write('</span>');
  					document.write('<span class="upsellDescription">');
  					document.write('<br/>');
  					document.write('<br/>');
  					document.write('</span>');
  					document.write('</a>');
  					
  					// add to cart stuff
  					document.write('<div class="" style="text-align:right; margin:0px; padding:0px;">');
						document.write('<input id="addtocart" name="addtocart" class="bgbutton" style="border-style:none;" type="image" src="./images/addtocartbuttonSmall.jpg" onkeypress="window.event.cancelBubble=true;" onClick="if (document.forms[\'form1686\'].onsubmit()) document.forms[\'form1686\'].submit();" name="addtocart" value="Add to Cart "/>');
					document.write('</div>');
  					
  				
				document.write('</form>');
  				document.write('</td>');

  				
  			
  			document.write('</tr>');
  			
  			
  		document.write('</table>');
  	}
  
  
function loadDevice() {
	var pfPrices = new Array();
	pfPrices["963"] = "2.49";
	pfPrices["967"] = "2.49";
	pfPrices["965"] = "2.49";
	pfPrices["961"] = "2.49";
	pfPrices["960"] = "6.99";
	pfPrices["1080"] = "6.99";
	pfPrices["1190"] = "6.99";
	pfPrices["1413"] = "6.99";
	pfPrices["1615"] = "14.99";
	pfPrices["1637"] = "9.99";
	pfPrices["1533"] = "24.99";
	
	var pfImgSrc = new Array();
	pfImgSrc["963"] = "/core/media/media.nl?id=9780&c=631249&h=2ff7dd93b4f7b6c43c6f&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["967"] = "/core/media/media.nl?id=9792&c=631249&h=2d3592513576de3298de&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["965"] = "/core/media/media.nl?id=9778&c=631249&h=c53ff72e7953e321117b&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["961"] = "/core/media/media.nl?id=16871&c=631249&h=5f4e3816b42c3a9f8e90&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["960"] = "/core/media/media.nl?id=11752&c=631249&h=1c29b01acdf873caee5a&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["1080"] = "/core/media/media.nl?id=11752&c=631249&h=1c29b01acdf873caee5a&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["1190"] = "/core/media/media.nl?id=25244&c=631249&h=39a59454c2aa5f2f57ff&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["1413"] = "/core/media/media.nl?id=25581&c=631249&h=7cd22c0414523c5e22e3&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["1615"] = "/core/media/media.nl?id=33357&c=631249&h=2bc54dec9be94b224a4a&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["1637"] = "/core/media/media.nl?id=37033&c=631249&h=b3ced9c7252f44746b58&resizeid=-1&resizeh=150&resizew=150";
	pfImgSrc["1533"] = "/core/media/media.nl?id=30820&c=631249&h=f31242f7f3175a442bc6&resizeid=-1&resizeh=150&resizew=150";
	
	var pfImgHref = new Array();
	pfImgHref["1615"] = "http://www.marware.com/products/iPhone-4/Protective-Film-for-iPhone-4";
	pfImgHref["1080"] = "http://www.marware.com/products/Accesories/protective-film";
	pfImgHref["1533"] = "http://www.marware.com/products/Accesories/Protective-Film-for-iPad";
	pfImgHref["1637"] = "http://www.marware.com/products/IPod-touch-4G_2/Protective-Film-for-iPod-touch-4G-2-Pack";
	pfImgHref["1190"] = "http://www.marware.com/products/iPod-touch/Protective-Film-for-iPod-touch-2G";
	pfImgHref["1413"] = "http://www.marware.com/products/iPod-nano-5G/Protective-Film-for-iPod-nano-5G";
	pfImgHref["967"] = "http://www.marware.com/products/Accesories/Clear-Film-for-iPod-nano";
	pfImgHref["963"] = "http://www.marware.com/products/Accesories/iPod-Classic-Protective-Film";
	pfImgHref["961"] = "http://www.marware.com/Home/iPhone-Products/iPhone-Protective-Film";
	pfImgHref["965"] = "http://www.marware.com/products/Accesories/Clear-Film-for-iPod-touch";
	
	
	
	
	
	
	
	
	var device = document.formProtecFilm.pfDevice.value;
	
	if (device) {
	
		document.forms['formProtecFilm'].buyid.value = device;
		
		document.getElementById('pfPrice').innerHTML="Price: "+pfPrices[device];
		document['pfImg'].src = pfImgSrc[device];
		document.getElementById('pfilm').href = pfImgHref[device];
		document.getElementById('addtocart_pf').disabled = false;
		document.getElementById('addtocart_pf').src = "./images/addtocartbuttonSmall.jpg";
	}
	else {
		document.getElementById('pfPrice').innerHTML="Price: $X.XX";
		document['pfImg'].src ="/core/media/media.nl?id=33357&c=631249&h=2bc54dec9be94b224a4a&resizeid=-1&resizeh=150&resizew=150";
		document.getElementById('pfilm').href = "";
		document.getElementById('addtocart_pf').disabled = true;
		document.getElementById('addtocart_pf').src = "./images/addtocartbuttonSmallGrey.jpg";
	}
}
  
/* end static upsell  */
