newimage0 = new Image();
newimage0.src = "../Images/Backgrounds/blank.gif";
newimage1 = new Image();
newimage1.src = "Images/stock_over.gif";
newimage2 = new Image();
newimage2.src = "Images/store.gif";
newimage3 = new Image();
newimage3.src = "Images/service.gif";
newimage4 = new Image();
newimage4.src = "Images/rental.gif";
newimage5 = new Image();
newimage5.src = "Images/search.gif";
newimage6 = new Image();
newimage6.src = "Images/destinations.gif";

 Stocka=new Image
 Stocka.src= "Images/stock_over.gif"
 Stockb=new Image
 Stockb.src= "Images/stock_over.gif"

 Storea=new Image
 Storea.src= "Images/store.gif"
 Storeb=new Image
 Storeb.src= "Images/store_over.gif"

 Servicea=new Image
 Servicea.src= "Images/service.gif"
 Serviceb=new Image
 Serviceb.src= "Images/service_over.gif"

 Rentala=new Image
 Rentala.src= "Images/rental.gif"
 Rentalb=new Image
 Rentalb.src= "Images/rental_over.gif"

 Searcha=new Image
 Searcha.src= "Images/search.gif"
 Searchb=new Image
 Searchb.src= "Images/search_over.gif"

 Destinationa=new Image
 Destinationa.src= "Images/destinations.gif"
 Destinationb=new Image
 Destinationb.src= "Images/destinations_over.gif"

 function SwapStock(){
	document.Stock.src=Stockb.src;return true;
 	}
 function SwapStore(){
 	document.Store.src=Storeb.src;return true;
 	}	
 function SwapService(){
 	document.Service.src=Serviceb.src;return true;
 	}
 function SwapRental(){
 	document.Rental.src=Rentalb.src;return true;
 	}
 function SwapSearch(){
 	document.Search.src=Searchb.src;return true;
 	}
 function SwapDestination(){
 	document.Destination.src=Destinationb.src;return true;
 	}
	
 function SwapBackStock(){
 	document.Stock.src=Stocka.src;return true;
 	}
 function SwapBackStore(){
 	document.Store.src=Storea.src;return true;
 	}	
 function SwapBackService(){
 	document.Service.src=Servicea.src;return true;
 	}
 function SwapBackRental(){
 	document.Rental.src=Rentala.src;return true;
 	}
 function SwapBackSearch(){
 	document.Search.src=Searcha.src;return true;
 	}
 function SwapBackDestination(){
 	document.Destination.src=Destinationa.src;return true;
 	}

imgNames = new Array(
"Images/stock.gif",
"Images/store_over.gif",
"Images/service_over.gif",
"Images/rental_over.gif",
"Images/search_over.gif",
"Images/destinations_over.gif"
)

loadImgs = new Array()

for(i=0; i < imgNames.length; i++) {
  loadImgs[i] = new Image;
  loadImgs[i].src = imgNames[i];
}

	var NoOffFirstLineMenus=6;
	var LowBgColor="#E6E9F5";
	var HighBgColor="#E6E9F5";
	var FontLowColor="#29425A";
	var FontHighColor="#FF0000";
	var BorderColor="";
	var BorderWidthMain=0;
	var BorderWidthSub=1;
	var BorderBtwnMain=0;
	var BorderBtwnSub=1;
	var FontFamily="Arial"
	var FontSize=11;
	var FontBold=1;
	var FontItalic=0;
	var MenuTextCentered="center";
	var MenuCentered="left";
	var MenuVerticalCentered="top";
	var ChildOverlap=0;
	var ChildVerticalOverlap=0;
	var StartTop=22;
	var StartLeft=2;
	var VerCorrect=-8;
	var HorCorrect=-2;
	var DistFrmFrameBrdr=0;
	var LeftPaddng=0;
	var TopPaddng=0;
	var FirstLineHorizontal=0;			
	var MenuFramesVertical=1;
	var DissapearDelay=500;
	var UnfoldDelay=0;
	var TakeOverBgColor=1;
	var FirstLineFrame="Navigation";
	var SecLineFrame="Main";
	var DocTargetFrame="Main";
	var TargetLoc="";
	var MenuWrap=1;
	var RightToLeft=0;
	var BottomUp=0;
	var UnfoldsOnClick=0;
	var BaseHref="";
	var Arrws=["",2,10,"",10,5,"",5,10];
	var MenuUsesFrames=1;
	var RememberStatus=0;
	var OverFormElements=1;
	var BuildOnDemand=1;
	var BgImgLeftOffset=5;
	var ScaleMenu=0;
	var HooverBold=0;
	var HooverItalic=0;
	var HooverUnderLine=0;
	var HooverTextSize=0;
	var HooverVariant=0;
	var MenuSlide="";
	var MenuShadow="";
	var MenuOpacity="";
	
	function BeforeStart(){return}
	function AfterBuild(){return}
	function BeforeFirstOpen(){return}
	function AfterCloseAll(){return}

	Menu1=new Array("pop-ups","javascript:parent.location='http://www.SeacoastRV.com/RV_Stock.asp?Stock=rv_stock_sales.asp?cat=pop'","",0,13,100,"#E6E9F5","#E6E9F5","#29425A","#CC0000","#FFFFFF","Arial",11,1,0,"","Seacoast RVs Pop Up Camping Trailer Listings");
	Menu2=new Array("towables","javascript:parent.location='http://www.SeacoastRV.com/RV_Stock.asp?Stock=rv_stock_sales.asp?cat=tow'","",0,12,100,"#E6E9F5","#E6E9F5","#29425A","#CC0000","#FFFFFF","Arial",11,1,0,"","Seacoast RVs Towable Trailer Listings");
	Menu3=new Array("fifth wheels","javascript:parent.location='http://www.SeacoastRV.com/RV_Stock.asp?Stock=rv_stock_sales.asp?cat=fifth'","",0,12,100,"#E6E9F5","#E6E9F5","#29425A","#CC0000","#FFFFFF","Arial",11,1,0,"","Seacoast RVs Fifth Wheel Trailer Listings");
	Menu4=new Array("motor homes","javascript:parent.location='http://www.SeacoastRV.com/RV_Stock.asp?Stock=rv_stock_sales.asp?cat=motor'","",0,12,100,"#E6E9F5","#E6E9F5","#29425A","#CC0000","#FFFFFF","Arial",11,1,0,"","Seacoast RVs Motor Home Listings");
	Menu5=new Array("park models","","",2,12,100,"#E6E9F5","#E6E9F5","#29425A","#CC0000","#FFFFFF","Arial",11,1,0,"","Seacoast RVs Park Model Home Listings");
		Menu5_1=new Array("park models - 12 ft.","javascript:parent.location='http://www.SeacoastRV.com/RV_Stock.asp?Stock=rv_stock_sales.asp?cat=park_12'","",0,14,120,"#FFFFFF","#E6E9F5","#29425A","#CC0000","#A0C0D5","Arial",11,1,0,"","Seacoast RVs 12 ft. Park Model Listings");	
		Menu5_2=new Array("park models - 102 in.","javascript:parent.location='http://www.SeacoastRV.com/RV_Stock.asp?Stock=rv_stock_sales.asp?cat=park_102'","",0,14,120,"#FFFFFF","#E6E9F5","#29425A","#CC0000","#A0C0D5","Arial",11,1,0,"","Seacoast RVs 102 in. Park Model Listings");
	Menu6=new Array("other","javascript:parent.location='http://www.SeacoastRV.com/RV_Stock.asp?Stock=rv_stock_sales.asp?cat=other'","",0,12,100,"#E6E9F5","#E6E9F5","#29425A","#CC0000","#FFFFFF","Arial",11,1,0,"","Seacoast RVs Other Car, Truck and Utility Trailer Listings");
	
	

var menu_search=new Array()
menu_search[0]='<div align="center"><a href="http://www.SeacoastRV.com/RV_Stock.asp?Stock=RV_Stock/search_rv.asp" target="_parent" onMouseOver="window.status=&#39;Search Seacoast RV Lot Inventory&#39;; return true" onMouseOut="window.status=&#39;SeacoastRV.com&#39;; return true">rv listings</a></div>'
menu_search[1]='<div align="center"><a href="http://www.SeacoastRV.com/Super_Store.asp?Store=RV_Store/search.asp" target="_parent" onMouseOver="window.status=&#39;Search Seacoast RV Store Inventory&#39;; return true" onMouseOut="window.status=&#39;SeacoastRV.com&#39;; return true">store products</a></div>'
menu_search[2]='<div align="center"><a href="http://www.SeacoastRV.com/RV_Sale.asp?Sale=RV_Sale/search.asp" target="_parent" onMouseOver="window.status=&#39;Search Seacoast RV Clearance Items&#39;; return true" onMouseOut="window.status=&#39;SeacoastRV.com&#39;; return true">clearance items</a></div>'
menu_search[3]='<div align="center"><a href="http://www.SeacoastRV.com/RV_Sale.asp?Sale=RV_Sale/Auctions/search.asp" target="_parent" onMouseOver="window.status=&#39;Search Seacoast RV User Auctions&#39;; return true" onMouseOut="window.status=&#39;SeacoastRV.com&#39;; return true">user auctions</a></div>'
		
var menuwidth='100px'
var menubgcolor='#E6E9F5'
var disappeardelay=500
var hidemenu_onclick="no"

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
