

image1 = new Image();
image1.src = "http://media.washingtonpost.com/wp-adv/shopping/images/shop-bgGr-exclusiveTop.gif";

image2 = new Image();
image2.src = "http://media.washingtonpost.com/wp-adv/shopping/images/shop-bgGr-exclusiveBot.gif";





function shpTabSwitch(tabType){
		
			if( tabType == 'used') {
			  	document.usedTab.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-tab-usedOn.gif";
			  	document.newTab.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-tab-newOff.gif";
				


document.shopBtn.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-btnGr-shop.gif";
				
			  	document.researchBtn.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-btnGr-research.gif";

				document.getElementById('mainSearchBox').className = "usedSearchBack";
				document.getElementById('mainBecomeLogo').className = "div_off";
				
				document.getElementById('shp_searchUsedDesc').className = "div_on";
				document.getElementById('shp_searchNewDesc').className = "div_off";

				// Browse Box
				document.getElementById('shp_usedBrowseBox').className = "div_on";
				document.getElementById('shp_newBrowseBox').className = "div_off";
				
				// Sell Box Items
				document.getElementById('shp_sellBox').className = "shp_usedBoxBorder";
				document.getElementById('shp_sellBoxBackground').className = "shp_usedSellBoxBack";
				document.createAd.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-btnGr-sell.gif";
				document.getElementById('shp_sellBottom').className = "shp_usedGarageBottom";
				
				//Most Viewed
				document.mostViewed.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-hdrGr-mostViewed.gif";
				document.getElementById('shp_newMostViewed').className = "div_off";
				document.getElementById('shp_usedMostViewed').className = "div_on";

				// Free Stuff Banner 
				document.getElementById('shp_freeStuffBanner').className = "div_on";
				
				// Garage Box
				document.getElementById('shp_garageBox').className = "shp_usedBoxBorder";
				document.getElementById('shp_garageBoxBackground').className = "shp_usedGarageBoxBack";
				document.getElementById('shp_GarageBottom').className = "shp_usedGarageBottom";
				document.garageBtn.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-btnGr-garage.gif";
					
				// Exclusive Box
				document.getElementById('shp_exclusiveDealsBox').className = "shp_usedExclusiveDealsBox";
				document.getElementById('shp_exclusiveDealsBoxBottom').className = "shp_usedExclusiveDealsBoxBottom";

				// Shopping Deals Box
				document.getElementById('specialDealsMasterTABLE').className = "specialDealsMasterTABLEUsed";
				document.leftArrow.src="http://www.washingtonpost.com/wp-adv/shopping/images/left-arrow-Gr.jpg";
				document.rightArrow.src="http://www.washingtonpost.com/wp-adv/shopping/images/right-arrow-Gr.jpg";

				// Nice to have Box
				document.getElementById('niceToHaveBox').className = "used";
				
				shp_searchType= "used";
		
			
				
			} else {
				document.usedTab.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-tab-usedOff.gif";
			  	document.newTab.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-tab-newOn.gif";

				document.shopBtn.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-btnBl-shop.gif";


			  	document.researchBtn.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-btnBl-research.gif";
				
				document.getElementById('mainSearchBox').className = "newSearchBack";
				document.getElementById('mainBecomeLogo').className = "div_on";
				
				document.getElementById('shp_searchUsedDesc').className = "div_off";
				document.getElementById('shp_searchNewDesc').className = "div_on";
				
				
				// Browse Box
				document.getElementById('shp_usedBrowseBox').className = "div_off";
				document.getElementById('shp_newBrowseBox').className = "div_on";
				
				
				// Sell Box Border
				document.getElementById('shp_sellBox').className = "shp_newBoxBorder";
				document.getElementById('shp_sellBoxBackground').className = "shp_newSellBoxBack";
				document.createAd.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-btnBl-sell.gif";
				document.getElementById('shp_sellBottom').className = "shp_newSellBottom";
				
				//Most Viewed
				document.mostViewed.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-hdrBl-mostViewed.gif";
				document.getElementById('shp_newMostViewed').className = "div_on";
				document.getElementById('shp_usedMostViewed').className = "div_off";

				// Free Stuff Banner 
				document.getElementById('shp_freeStuffBanner').className = "div_off";
				
							// Garage Box
				document.getElementById('shp_garageBox').className = "shp_newBoxBorder";
				document.getElementById('shp_garageBoxBackground').className = "shp_newGarageBoxBack";
				document.getElementById('shp_GarageBottom').className = "shp_newGarageBottom";
					document.garageBtn.src="http://media.washingtonpost.com/wp-adv/shopping/images/shop-btnBl-garage.gif";
					
			// Exclusive Box
				document.getElementById('shp_exclusiveDealsBox').className = "shp_newExclusiveDealsBox";
				document.getElementById('shp_exclusiveDealsBoxBottom').className = "shp_newExclusiveDealsBoxBottom";

				// Shopping Deals Box
				document.getElementById('specialDealsMasterTABLE').className = "specialDealsMasterTABLE";
				document.leftArrow.src="http://www.washingtonpost.com/wp-adv/shopping/images/left-arrow-Bl.jpg";
				document.rightArrow.src="http://www.washingtonpost.com/wp-adv/shopping/images/right-arrow-Bl.jpg";

				// Nice to have Box
				document.getElementById('niceToHaveBox').className = "new";
				
				shp_searchType= "new";
				
		
				
			}
		
		}
		
		
		
			function shp_Search() {
		
			if(shp_searchType == "new"){
				document.topsearch.action = "http://commerce.washingtonpost.com/cgi-bin/WPclass/shopping/shopSearchNew";
			} else {
				document.topsearch.action = "http://commerce.washingtonpost.com/cgi-bin/WPclass/shopping/shopSearchUsed";
			}
		document.topsearch.submit();
		return true;
		}
		
		function shp_Research() { 
		
		
		}
		
		
	
		
