// JavaScript Document
/*
Static menu script (By maXimus, maximus@nsimail.com, http://maximus.ravecore.com/)
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=210
var offsetleft=10
var offsettop=90

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="4" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="#80FF00" bgcolor="white">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><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 BGCOLOR="#80FF00" BORDERCOLORDARK="#80FF00" BORDERCOLORLIGHT="#80FF00"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL COLOR="BLACK">Click <B>Menu</B> Below</FONT></TD></TR>')

var menui = new Array();
var menul = new Array();

//configure below for menu items. Extend list as desired

menui[0]="<B>VIDEOS</B>";
menui[1]="<B>HOME</B> COMPANIONS";
menui[2]="<B>PAGE 2</B> COMPANIONS";
menui[3]="<B>PEDIGREE\'S</B>";
menui[4]="<B>AKC TITLES</B> Obedience";
menui[5]="<B>AKC RANKINGS</B> Obedience";
menui[6]="<B>Hip X-RAYS</B> OFA Certified";

menul[0]="companionslaire_videos.html";
menul[1]="companionslaire.html";
menul[2]="companionslaire_puppies.html";
menul[3]="companionslaire_pedigree1.html";
menul[4]="companionslaire_titles.html";
menul[5]="companionslaire_toptenterri.html";
menul[6]="companionslaire_ofa.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\'"><CENTER><U><FONT COLOR=BLUE>'+menui[i]+'</FONT></U></TD></TR>')}
else if (ns4){document.write('<TR><TD BGCOLOR="white"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'yellow\'" onmouseout="bgColor=\'white\'"><CENTER><A HREF="'+menul[i]+'" class=menulinks>'+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
