<!--

/*
Static menu script II (By maXimus, maximus@nsimail.com, http://absolutegb.com/maximus/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

//configure below variable for menu width, position on page
var menuwidth=140
var offsetleft=10
var offsettop=10

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
setTimeout("makeStatic()",0);
}

if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" ><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}

if (ie4||ns6||ns4)
document.write('<TR><TD BORDERCOLORDARK="#99CCFF" BORDERCOLORLIGHT="#003399"><center><img SRC="images/Island_view_logo_sm.jpg" BORDER=0 height=86 width=150 align=CENTER><BR><BR><FONT SIZE="4" FACE=ARIAL>Menu</center></TD></TR>')

var menui = new Array();
var menul = new Array();

//configure below for menu items. Extend list as desired

menui[0]="* Home Page ";
menui[1]="* Cottages";
menui[2]="* Condos";
menui[3]="* Facilities";
menui[4]="* Location";
menui[5]="* Contact Us";
menui[6]="* Pictou";
menui[7]="* More Links";
menui[8]="* FOR SALE";

menul[0]="islandviewhome.html";
menul[1]="islandviewcottages.html";
menul[2]="islandviewsuites.html";
menul[3]="islandviewfacilities.html";
menul[4]="islandviewlocation.html";
menul[5]="islandviewcontact.html";
menul[6]="islandviewpictou.html";
menul[7]="islandviewlinks.html";
menul[8]="islandviewcottages4sale.html";

for (i=0;i<=menui.length-1;i++)
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="white" ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'"><FONT><B>'+menui[i]+'</B></FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD BGCOLOR="white" ><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'yellow\'" onmouseout="bgColor=\'white\'"><A HREF="'+menul[i]+'" class=menulinks><B>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')}

if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}

function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}

window.onload=menu3

//-->

