function mmLoadMenus() {
  if (window.mm_menu_1102130918_0) return;
  window.mm_menu_1102130918_0 = new Menu("root",190,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#eeeeee","#cc192c","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102130918_0.addMenuItem("Concierge&nbsp;Service","location='/concierge.html'");
  mm_menu_1102130918_0.addMenuItem("RallyPark","location='/rallypark.html'");
  mm_menu_1102130918_0.addMenuItem("RV&nbsp;Driver&nbsp;Confidence&nbsp;Course","location='/rvdrivecourses.html'");
  mm_menu_1102130918_0.addMenuItem("RV&nbsp;Seminars","location='/SeminarsCalendar.aspx'");
  mm_menu_1102130918_0.addMenuItem("Build&nbsp;Your&nbsp;Own&nbsp;RV","location='/BuildYourOwn/BuildYourOwnRV.aspx'");
  mm_menu_1102130918_0.addMenuItem("RV&nbsp;Scout","location='/RVScout/ScoutList.aspx'");
   mm_menu_1102130918_0.hideOnMouseOut=true;
   mm_menu_1102130918_0.menuBorder=1;
   mm_menu_1102130918_0.menuLiteBgColor='#cccccc';
   mm_menu_1102130918_0.menuBorderBgColor='#eeeeee';
   mm_menu_1102130918_0.bgColor='#cccccc';
  window.mm_menu_1102131454_1 = new Menu("root",183,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#eeeeee","#cc192c","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102131454_1.addMenuItem("Lazydays&nbsp;Advantage","location='/ldadvantage.html'");
  mm_menu_1102131454_1.addMenuItem("How&nbsp;Much&nbsp;RV&nbsp;Can&nbsp;I&nbsp;Afford?","location='/howmuchcanIafford.aspx'");
  mm_menu_1102131454_1.addMenuItem("How&nbsp;Much&nbsp;Is&nbsp;My&nbsp;RV&nbsp;Worth?","location='/howmuchismyrvworth.aspx'");
  mm_menu_1102131454_1.addMenuItem("Your&nbsp;Perfect&nbsp;RV&nbsp;Match","location='/rvmatch.aspx'");
  mm_menu_1102131454_1.addMenuItem("RV&nbsp;Financing","location='/financing.html'");
  mm_menu_1102131454_1.addMenuItem("Loan&nbsp;Calculator","location='/loancalculator.aspx'");
  mm_menu_1102131454_1.addMenuItem("RV&nbsp;Insurance","location='/insurance.html'");
  mm_menu_1102131454_1.addMenuItem("Tips&nbsp;For&nbsp;New&nbsp;Buyers","location='/tipsnewbuyers.html'");
   mm_menu_1102131454_1.hideOnMouseOut=true;
   mm_menu_1102131454_1.menuBorder=1;
   mm_menu_1102131454_1.menuLiteBgColor='#cdcdcd';
   mm_menu_1102131454_1.menuBorderBgColor='#cdcdcd';
   mm_menu_1102131454_1.bgColor='#cdcdcd';
  window.mm_menu_1102132024_2 = new Menu("root",123,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#eeeeee","#cc192c","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102132024_2.addMenuItem("Club&nbsp;Lazydays","location='/clubLazydays.html'");
  mm_menu_1102132024_2.addMenuItem("CrownClub","location='/crownclub.html'");
  mm_menu_1102132024_2.addMenuItem("Customer&nbsp;For&nbsp;Life","location='/customers4life.html'");
  mm_menu_1102132024_2.addMenuItem("Friends&nbsp;&amp;&nbsp;Family","location='/friendsandfamily.html'");
   mm_menu_1102132024_2.hideOnMouseOut=true;
   mm_menu_1102132024_2.menuBorder=1;
   mm_menu_1102132024_2.menuLiteBgColor='#cccccc';
   mm_menu_1102132024_2.menuBorderBgColor='#eeeeee';
   mm_menu_1102132024_2.bgColor='#cccccc';
  window.mm_menu_1102132445_3 = new Menu("root",214,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#eeeeee","#cc192c","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102132445_3.addMenuItem("Summer's coming...got vacation?","location='/vacay.html'");
  mm_menu_1102132445_3.addMenuItem("TV&nbsp;Ad&nbsp;Promotion","location='http://www.lazydays.tv'");
  mm_menu_1102132445_3.addMenuItem("Internet&nbsp;Specials","location='/AdvancedSearchResults.aspx?Specials=Y'");
  mm_menu_1102132445_3.addMenuItem("$1,000&nbsp;Swipe&nbsp;to&nbsp;Win","location='/1000swipe2win.html'");
   mm_menu_1102132445_3.hideOnMouseOut=true;
   mm_menu_1102132445_3.menuBorder=1;
   mm_menu_1102132445_3.menuLiteBgColor='#cccccc';
   mm_menu_1102132445_3.menuBorderBgColor='#eeeeee';
   mm_menu_1102132445_3.bgColor='#cccccc';
  window.mm_menu_1102133021_4 = new Menu("root",141,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#eeeeee","#cc192c","right","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102133021_4.addMenuItem("Lazydays&nbsp;Advantage","location='/ldadvantage.html#Service'");
  mm_menu_1102133021_4.addMenuItem("Service&nbsp;Overview","location='/serviceoverview.html'");
  mm_menu_1102133021_4.addMenuItem("Collision&nbsp;Center","location='/collision.html'");
  mm_menu_1102133021_4.addMenuItem("RV&nbsp;Parts","location='/rvparts.html'");
  mm_menu_1102133021_4.addMenuItem("Cabinets&nbsp;&amp;&nbsp;Flooring","location='/cabinetsflooringshop.html'");
  mm_menu_1102133021_4.addMenuItem("Windshield&nbsp;&amp;&nbsp;Glass","location='/windshieldshop.html'");
  mm_menu_1102133021_4.addMenuItem("Extended&nbsp;Warranties","location='/extwarranty.html'");
  mm_menu_1102133021_4.addMenuItem("Manufacturer&nbsp;Reps","location='/manufactreps.html'");
   mm_menu_1102133021_4.hideOnMouseOut=true;
   mm_menu_1102133021_4.menuBorder=1;
   mm_menu_1102133021_4.menuLiteBgColor='#cccccc';
   mm_menu_1102133021_4.menuBorderBgColor='#eeeeee';
   mm_menu_1102133021_4.bgColor='#cccccc';
  window.mm_menu_1102133816_5 = new Menu("root",144,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#eeeeee","#cc192c","right","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102133816_5.addMenuItem("Lazydays&nbsp;Photos","location='/supercenterphotos.html'");
  mm_menu_1102133816_5.addMenuItem("Lazydays&nbsp;Film","location='/ldmovie.html'");
  mm_menu_1102133816_5.addMenuItem("Press&nbsp;Releases","location='/pressreleases.html'");
  mm_menu_1102133816_5.addMenuItem("Marketing&nbsp;Team","location='/marketingteam.html'");
  mm_menu_1102133816_5.addMenuItem("Company&nbsp;History","location='/companyhist.html'");
  mm_menu_1102133816_5.addMenuItem("Industry&nbsp;Links","location='/industrylinks.html'");
  mm_menu_1102133816_5.addMenuItem("Location&nbsp;&amp;&nbsp;Directions","location='/directions.html'");
  mm_menu_1102133816_5.addMenuItem("Site&nbsp;Map","location='/sitemap.html'");
   mm_menu_1102133816_5.hideOnMouseOut=true;
   mm_menu_1102133816_5.menuBorder=1;
   mm_menu_1102133816_5.menuLiteBgColor='#cccccc';
   mm_menu_1102133816_5.menuBorderBgColor='#eeeeee';
   mm_menu_1102133816_5.bgColor='#cccccc';
  window.mm_menu_1102134021_6 = new Menu("root",197,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#ffffff","#eeeeee","#cc192c","right","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1102134021_6.addMenuItem("Phone&nbsp;Numbers&nbsp;&amp;&nbsp;Email&nbsp;Links","location='/directory.html'");
  mm_menu_1102134021_6.addMenuItem("Hours&nbsp;of&nbsp;Operation","location='/bizhours.html'");
  mm_menu_1102134021_6.addMenuItem("Location&nbsp;&amp;&nbsp;Directions","location='/directions.html'");
  mm_menu_1102134021_6.addMenuItem("Career&nbsp;Opportunities","location='/careeropportunities.aspx'");
   mm_menu_1102134021_6.hideOnMouseOut=true;
   mm_menu_1102134021_6.menuBorder=1;
   mm_menu_1102134021_6.menuLiteBgColor='#cccccc';
   mm_menu_1102134021_6.menuBorderBgColor='#eeeeee';
   mm_menu_1102134021_6.bgColor='#cccccc';

  mm_menu_1102134021_6.writeMenus();
} // mmLoadMenus()


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	    MM_preloadImages('/images/header_rvlifestyle_f2.jpg','/images/header_owninganrv_f2.jpg','/images/header_membership_f2.jpg','/images/header_promotions_f2.jpg','/images/header_service_f2.jpg','/images/header_aboutus_f2.jpg','/images/header_contactus_f2.jpg');
	    MM_preloadImages('/images/americancoach_f2.jpg','/images/holidayrambler_f2.jpg','/images/beaver_f2.jpg', '/images/itasca_f2.jpg');
	    MM_preloadImages('/images/carriage_f2.jpg', '/images/keystone_f2.jpg', '/images/monaco_f2.jpg', '/images/damon_f2.jpg');
	    MM_preloadImages('/images/countrycoach_f2.jpg', '/images/nationalrv_f2.jpg', '/images/safari_f2.jpg', '/images/fleetwood_f2.jpg');
	    MM_preloadImages('/images/forestriver_f2.jpg', '/images/winnebago_f2.jpg', '/images/fourwinds_f2.jpg', '/images/tiffin_f2.jpg','/images/glendale_f2.jpg');
	    MM_preloadImages('/images/inventoryinterface/makeofferROLLOVER.jpg','/images/inventoryinterface/moreinfoROLLOVER.jpg','/images/inventoryinterface/purchaseestimatorROLLOVER.jpg');
	    MM_preloadImages('/images/inventoryinterface/viewfloorplanROLLOVER.jpg','/images/inventoryinterface/enlargephotoROLLOVER.jpg','/images/inventoryinterface/printableflyerROLLOVER.jpg');
	    preloadFlag = true;
}



function OpenBigPic()
{
	var imageFile = document.all.bigpic.src;
	var pos = imageFile.lastIndexOf('/') + 1;
	imageFile = imageFile.substr(pos);

	for(var i=imageFile.length-1;i>0;i--)
	{
		if(imageFile.charAt(i) == "L")
		{
			imageFile = imageFile.substr(0, i) + "H" + imageFile.substr(i+1);	
			break;
		}
	}
	window.open('/DisplayLargePhoto.aspx?StockNumber=' + imageFile,'_blank','width=764,height=624,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,scrollbars=no,top=0,left=0,alwaysRaised=yes');
}

function checkForm(formType)
{

	var errMsg = '';
        var bPhoneNumberPresent = false
        if (document.InformationForm.FName.value == '') {errMsg = errMsg + 'Please enter your first name.\n'}
        if (document.InformationForm.LName.value == '') {errMsg = errMsg + 'Please enter your last name.\n'}

	if(formType == "AltEmail")
	{
        	// Check that a complete Phone Number
	        if (document.InformationForm.Phone.value == '') {errMsg = errMsg  + 'Please enter a valid phone number.\n'}
	}
	else if(formType != "ContactUs")
	{
        	// Check that a complete contact number was given
	        if ((document.InformationForm.hPhone_ac.value.length + document.InformationForm.hPhone_pre.value.length + document.InformationForm.hPhone_suf.value.length) > 9) {bPhoneNumberPresent = true}
        	if ((document.InformationForm.cPhone_ac.value.length + document.InformationForm.cPhone_pre.value.length + document.InformationForm.cPhone_suf.value.length) > 9) {bPhoneNumberPresent = true}
	        if ((document.InformationForm.wPhone_ac.value.length + document.InformationForm.wPhone_pre.value.length + document.InformationForm.wPhone_suf.value.length) > 9) {bPhoneNumberPresent = true}
        	if (bPhoneNumberPresent == false)
	        {errMsg = errMsg  + 'Please enter at least one valid phone number.\n'}
	}


        // Check if e-mail is present and valid
        if (document.InformationForm.email.value == '')
        {errMsg = errMsg + 'Please enter your email address.\n'}
        else {if (!checkEmailAddress(document.InformationForm.email.value)) {errMsg = errMsg + 'Please enter a valid email address.\n'}}



	if(formType == "Career")
	{
	        if (document.InformationForm.address.value == '') {errMsg = errMsg + 'Please enter your address.\n'}
	        if (document.InformationForm.city.value == '') {errMsg = errMsg + 'Please enter your city.\n'}
	        if (document.InformationForm.state.value == '') {errMsg = errMsg + 'Please enter your state.\n'}
	        if (document.InformationForm.zip.value == '') {errMsg = errMsg + 'Please enter your zip.\n'}
	        if (document.InformationForm.employer_address_1.value == '') {errMsg = errMsg + 'Please enter your Employer name, address and telephone number.\n'}
	        if (document.InformationForm.hs_name_1.value == '') {errMsg = errMsg + 'Please enter your high school.\n'}

	}


        // Check if there were any errors
        if (errMsg == '') { return true; } else {alert(errMsg);return false;}
}

// Checks that the entered e-mail address is valid
function checkEmailAddress(field)
{
	// Note: The next expression must be all on one line...
        //       allow no spaces, linefeeds, or carriage returns!
        if (/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi.test(field))
        {
		return true
	}
        else
        {
		return false
	}
}

function Country_OnChange()
{

	var CountryValue = document.InformationForm.Country.value;
	var StateOptions;
	var oOption = new Array(52);

	var SelectBox = document.createElement("<select name='state' size='1'></select>");
	document.InformationForm.state.replaceNode(SelectBox);
	SelectBox.name = "state";

	StateOptions = document.InformationForm.state.options;
	StateOptions.length = 0;

	if(CountryValue == "US" )
	{
		for(i=0;i<52;i++)
		{
			oOption[i] = document.createElement("OPTION");
			StateOptions.add(oOption[i]);
		}

		oOption[0].Value = "";
		oOption[0].innerText="Select a state...";
		oOption[1].value="AL";
		oOption[1].innerText="Alabama";
		oOption[2].value="AK";
		oOption[2].innerText="Alaska";
		oOption[3].value="AZ";
		oOption[3].innerText="Arizona";
		oOption[4].value="AR";
		oOption[4].innerText="Arkansas";
		oOption[5].value="CA";
		oOption[5].innerText="California";
		oOption[6].value="CO";
		oOption[6].innerText="Colorado";
		oOption[7].value="CT";
		oOption[7].innerText="Connecticut";
		oOption[8].value="DE";
		oOption[8].innerText="Delaware";
		oOption[9].value="DC";
		oOption[9].innerText="District of Columbia";
		oOption[10].value="FL";
		oOption[10].innerText="Florida";
		oOption[11].value="GA";
		oOption[11].innerText="Georgia";
		oOption[12].value="HI";
		oOption[12].innerText="Hawaii";
		oOption[13].value="ID";
		oOption[13].innerText="Idaho";
		oOption[14].value="IL";
		oOption[14].innerText="Illinois";
		oOption[15].value="IN";
		oOption[15].innerText="Indiana";
		oOption[16].value="IA";
		oOption[16].innerText="Iowa";
		oOption[17].value="KS";
		oOption[17].innerText="Kansas";
		oOption[18].value="KY";
		oOption[18].innerText="Kentucky";
		oOption[19].value="LA";
		oOption[19].innerText="Louisiana";
		oOption[20].value="ME";
		oOption[20].innerText="Maine";
		oOption[21].value="MD";
		oOption[21].innerText="Maryland";
		oOption[22].value="MA";
		oOption[22].innerText="Massachusetts";
		oOption[23].value="MI";
		oOption[23].innerText="Michigan";
		oOption[24].value="MN";
		oOption[24].innerText="Minnesota";
		oOption[25].value="MS";
		oOption[25].innerText="Mississippi";
		oOption[26].value="MO";
		oOption[26].innerText="Missouri";
		oOption[27].value="MT";
		oOption[27].innerText="Montana";
		oOption[28].value="NE";
		oOption[28].innerText="Nebraska";
		oOption[29].value="NV";
		oOption[29].innerText="Nevada";
		oOption[30].value="NH";
		oOption[30].innerText="New Hampshire";
		oOption[31].value="NJ";
		oOption[31].innerText="New Jersey";
		oOption[32].value="NM";
		oOption[32].innerText="New Mexico";
		oOption[33].value="NY";
		oOption[33].innerText="New York";
		oOption[34].value="NC";
		oOption[34].innerText="North Carolina";
		oOption[35].value="ND";
		oOption[35].innerText="North Dakota";
		oOption[36].value="OH";
		oOption[36].innerText="Ohio";
		oOption[37].value="OK";
		oOption[37].innerText="Oklahoma";
		oOption[38].value="OR";
		oOption[38].innerText="Oregon";
		oOption[39].value="PA";
		oOption[39].innerText="Pennsylvania";
		oOption[40].value="RI";
		oOption[40].innerText="Rhode Island";
		oOption[41].value="SC";
		oOption[41].innerText="South Carolina";
		oOption[42].value="SD";
		oOption[42].innerText="South Dakota";
		oOption[43].value="TN";
		oOption[43].innerText="Tennessee";
		oOption[44].value="TX";
		oOption[44].innerText="Texas";
		oOption[45].value="UT";
		oOption[45].innerText="Utah";
		oOption[46].value="VA";
		oOption[46].innerText="Virginia";
		oOption[47].value="VT";
		oOption[47].innerText="Vermont";
		oOption[48].value="WA";
		oOption[48].innerText="Washington";
		oOption[49].value="WI";
		oOption[49].innerText="Wisconsin";
		oOption[50].value="WV";
		oOption[50].innerText="West Virginia";
		oOption[51].value="WY";
		oOption[51].innerText="Wyoming";
	}
        else if(CountryValue == "CA")
        {
		for(i=0;i<14;i++)
		{
			oOption[i] = document.createElement("OPTION");
			StateOptions.add(oOption[i]);
		}
		oOption[0].value="";
		oOption[0].innerText="Select a province...";
		oOption[1].value="AB";
		oOption[1].innerText="Alberta";
		oOption[2].value="BC";
		oOption[2].innerText="British Columbia";
		oOption[3].value="MB";
		oOption[3].innerText="Manitoba";
		oOption[4].value="NB";
		oOption[4].innerText="New Brunswick";
		oOption[5].value="NF";
		oOption[5].innerText="Newfoundland";
		oOption[6].value="NT";
		oOption[6].innerText="Northwest Territory";
		oOption[7].value="NS";
		oOption[7].innerText="Nova Scotia";
		oOption[8].value="NU";
		oOption[8].innerText="Nunavut Territory";
		oOption[9].value="ON";
		oOption[9].innerText="Ontario";
		oOption[10].value="PE";
		oOption[10].innerText="Prince Edward Island";
		oOption[11].value="QC";
		oOption[11].innerText="Quebec";
		oOption[12].value="SK";
		oOption[12].innerText="Saskatchewan";
		oOption[13].value="YT";
		oOption[13].innerText="Yukon Territory";
        }
        else
        {
		if (((CountryValue != "US") && (CountryValue != "CA")))
		{
			var NewBox = document.createElement("<input MAXLENGTH='20' ID='state' Size='20' NAME='state' TYPE='TEXT' Value=''>");
			document.InformationForm.state.replaceNode(NewBox);
		}
	}
}
   

function RetrieveUnitInformation()
{
	var keywords;
	var params;
	var queryParams;

	keywords = window.location.search;
	queryParams = window.location.search;

	if(queryParams != null)
	{
		queryParams = queryParams.substr(1);
		params = queryParams.split("&");
		
		document.InformationForm.LDStockNumber.value = params[0].substring(params[0].indexOf('=')+1);
		document.InformationForm.ModelYear.value = params[1].substring(params[1].indexOf('=')+1);
		document.InformationForm.MakeName.value = params[2].substring(params[2].indexOf('=')+1);
		document.InformationForm.ModelName.value = params[3].substring(params[3].indexOf('=')+1);
	}
}


function RetrieveTradeSell()
{
	var keywords;
	var params;
	var queryParams;

	keywords = window.location.search;
	queryParams = window.location.search;

	if(queryParams != null)
	{
		queryParams = queryParams.substr(1);
		params = queryParams.split("&");
		
		document.InformationForm.TradeSell.value = params[0].substring(params[0].indexOf('=')+1);
		document.InformationForm.ClassType.value = params[1].substring(params[1].indexOf('=')+1);
	}
}

function RetrieveFFMemberInfo()
{
	var keywords;
	var params;
	var queryParams;

	keywords = window.location.search;
	queryParams = window.location.search;

	if(queryParams != null)
	{
		queryParams = queryParams.substr(1);
		params = queryParams.split("&");
		
		document.InformationForm.MemberNumber.value = params[0].substring(params[0].indexOf('=')+1);
		document.InformationForm.MemberFirstName.value = params[1].substring(params[1].indexOf('=')+1);
		document.InformationForm.MemberLastName.value = params[2].substring(params[2].indexOf('=')+1);
		document.InformationForm.MemberState.value = params[3].substring(params[3].indexOf('=')+1);
		document.InformationForm.MemberZip.value = params[4].substring(params[4].indexOf('=')+1);
		document.InformationForm.MemberEMail.value = params[5].substring(params[5].indexOf('=')+1);
		document.InformationForm.MemberPhone.value = params[6].substring(params[6].indexOf('=')+1);
	}
}

function RetrievePromoInfo()
{
	var keywords;
	var params;
	var queryParams;

	keywords = window.location.search;
	queryParams = window.location.search;

	if(queryParams != null)
	{
		queryParams = queryParams.substr(1);

		document.InformationForm.PromoInfo.value = queryParams.substring(queryParams.indexOf('=')+1);
	}
}

function BuildAjaxMemberNavigation()
{
    var isAuthenticated = LazydaysDotCom.MembershipAjaxMethods.IsRequestIsAuthenticated();
    var user = "Guest";
    var img = document.getElementById("navStateImage");        
        
    document.getElementById("linksHolder").style.visibility = 'hidden';
        
    if (isAuthenticated != null && isAuthenticated.value != null)
    {
        if (isAuthenticated.value == true)
        {
            var username = LazydaysDotCom.MembershipAjaxMethods.RetrieveUsername();                
            if (username != null && username.value != null)
            {
                document.getElementById("linksHolder").style.visibility = 'visible';
                user = username.value;                    
            }
                
            var scoutCount = LazydaysDotCom.MembershipAjaxMethods.RetrieveRVScoutCount();
            if (scoutCount != null && scoutCount.value != null)
            {
               document.getElementById("scoutCountLink").innerHTML = scoutCount.value;
            }
               
            document.getElementById("memberNavLink").href = "/Membership/Logoff.aspx";
            document.getElementById("memberNavImage").src = "/images/logout.jpg";
            document.getElementById("welcomeMessage").className = "bodytextred10";            
        }
	else 
	{
		document.getElementById("linksHolder").innerHTML = "";
	}
    }
    document.getElementById("welcomeMessage").innerHTML = "Welcome " + user + "!";
}


function clearDefault(el)
{
	if (el.value=="Enter search words or stock #") el.value = ""
}

function swapOptionTabs(tabName)
{
	var tabImg;
	if (tabName == "STANDARD") {
		tabImg = document.getElementById("standardequipment");
		tabImg.src = "/images/inventoryinterface/options_standardequipment_UP.jpg";

		tabImg2 = document.getElementById("optionalequipment");
		tabImg2.src = "/images/inventoryinterface/options_equipment_DOWN.jpg";
	} 
	else
	{
		tabImg = document.getElementById("standardequipment");
		tabImg.src = "/images/inventoryinterface/options_standardequipment_DOWN.jpg";

		tabImg2 = document.getElementById("optionalequipment");
		tabImg2.src = "/images/inventoryinterface/options_equipment_UP.jpg";
	}
}

	function setInternetSpecialIcon() {
		if(document.getElementById) {	
		    var invImage = document.getElementById("inventoryImage");
		    var icon = document.getElementById("inetSpecialIcon");
	    } else if (document.all) {
		    var invImage = document.all["inventoryImage"];
		    var icon = document.all["inetSpecialIcon"];
	    }
	    	    
	    xPos = invImage.offsetLeft;
	    tempEl = invImage.offsetParent;
	    while (tempEl != null) {
		    xPos += tempEl.offsetLeft;
  		    tempEl = tempEl.offsetParent;
	    }
  		    
	    yPos = invImage.offsetTop;	    
	    tempEl = invImage.offsetParent;
	    while (tempEl != null) {
		    yPos += tempEl.offsetTop;
  		    tempEl = tempEl.offsetParent;
	    }
	    
	    icon.style.left = xPos;
	    icon.style.top = yPos;
	}
