// $Id: ahs-menu.js,v 1.1 2003/09/18 19:45:28 ahs Exp $
// Get out of frames
if (top.frames.length != 0) {
    if (window.location.href.replace)
        top.location.replace (self.location.href) ;
    else
        top.location.href = self.document.href ;
}


if (navigator.appName == "Netscape"
 && parseFloat (navigator.appVersion) <= 2.0) {
    roll = 'false' ;
}
else {
    roll = 'true' ;
}

if (roll == 'true') {
    art0 = new Image(90,25);
    art0.src = "img/ahs-specials-off.gif";
    art0_h = new Image(90,25);
    art0_h.src = "img/ahs-specials-on.gif";

    art1 = new Image(90,19);
    art1.src = "img/ahs-hotels-off.gif";
    art1_h = new Image(90,19);
    art1_h.src = "img/ahs-hotels-on.gif";

    art2 = new Image(90,19);
    art2.src = "img/ahs-map-off.gif";
    art2_h = new Image(90,19);
    art2_h.src = "img/ahs-map-on.gif";

    art3 = new Image(90,19);
    art3.src = "img/ahs-email-off.gif";
    art3_h = new Image(90,19);
    art3_h.src = "img/ahs-email-on.gif";
}


var HuidigImg = "" ;

function hiLite (imgDocID1, imgObjName1) {
    if (imgDocID1 != HuidigImg) {
        if (roll == 'true') {
	    document.images[imgDocID1].src=eval(imgObjName1 + ".src") ;
        }
    }
}

function hiLite2 (imgDocID1, imgObjName1) {
    if (imgDocID1 != HuidigImg) {
        if (roll == 'true') {
	    document.images[imgDocID1].src=eval(imgObjName1 + ".src") ;
        }
    }
}

function Locker (imgDocID1, imgObjName1) {
    if (HuidigImg != "") {
        if (roll == 'true') {
	    document.images[HuidigImg].src=eval(HuidigImg + ".src") ;
        }
    }

    HuidigImg = imgDocID1 ;

    if (roll == 'true') {
	document.images[imgDocID1].src=eval(imgObjName1 + ".src") ;
    }
}
