function toggleSub(submenu) {
    if (document.getElementById(submenu).style.display == 'none') {
        document.getElementById(submenu).style.display = 'block'
    } else {
        document.getElementById(submenu).style.display = 'block'
    }
}


function toggleSub2(submenu) {
    if (document.getElementById(submenu).style.display == 'block') {
        document.getElementById(submenu).style.display = 'none'
    } else {
        document.getElementById(submenu).style.display = 'none'
    }
}


var commercial2X = (screen.width/2)-176;
var commercial2Y = (screen.height/2)-144;
var pos = "left="+commercial2X+",top="+commercial2Y;

function commercial2(){
commercial2Window = window.open("commercial2.html","Commercial","width=352,height=288,"+pos);
}

var commercial1X = (screen.width/2)-176;
var commercial1Y = (screen.height/2)-144;
var pos = "left="+commercial1X+",top="+commercial1Y;

function commercial1(){
commercial1Window = window.open("commercial1.html","Commercial","width=352,height=288,"+pos);
}

var SlipPopX = (screen.width/2)-400;
var SlipPopY = (screen.height/2)-300;
var pos = "left="+SlipPopX+",top="+SlipPopY;

function SlipPop(){
SlipPopWindow = window.open("slip_diagram.html","SlipRental","scrollbars=yes,width=800,height=600,"+pos);
}


var ComingSoonX = (screen.width/2)-125;
var ComingSoonY = (screen.height/2)-125;
var pos = "left="+ComingSoonX+",top="+ComingSoonY;

function ComingSoon(){
ComingSoonWindow = window.open("coming_soon.html","WebCam","width=250,height=250,"+pos);
}

var CouponX = (screen.width/2)-125;
var CouponY = (screen.height/2)-125;
var pos = "left="+CouponX+",top="+CouponY;

function Coupon(){
CouponWindow = window.open("coupon.html","Coupon","width=350,height=175,"+pos);
}

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 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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function ImageSwap(imgName)
    {
    document ['ChangingImage'].src = imgName ;
    }

whichbrowser = navigator.appName;
Ver = parseInt(navigator.appVersion);
if (whichbrowser == "Netscape" && Ver >= 3 || whichbrowser == "Microsoft Internet Explorer" && Ver > 3) version = "3";
else version = "2";
if (version == "3") {
    image_default = new Image();
    image_default.src = "img/hpnav_all.gif";
    image1 = new Image();
    image1.src = "img/hpnav_home.gif";
    image2 = new Image();
    image2.src = "img/hpnav_marina_services.gif";
	image3 = new Image();
    image3.src = "img/hpnav_winter_storage.gif";
	image4 = new Image();
    image4.src = "img/hpnav_hours.gif";
	image5 = new Image();
    image5.src = "img/hpnav_meet_mckee.gif";
	image6 = new Image();
    image6.src = "img/hpnav_directions.gif";
	image7 = new Image();
    image7.src = "img/hpnav_contact_us.gif";

}






