<!-- 
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer >= 3) ||
    (bName == "Microsoft Internet Explorer" && bVer >= 4)) br ="n3";
        
else br = "n2";

if (br == "n3") {
  image1on = new Image();   image1on.src = "/html/assets/images/navInteriorHomeOn.gif";  
  image1off = new Image();  image1off.src = "/html/assets/images/navInteriorHome.gif";
  image2on = new Image();   image2on.src = "/html/assets/images/navInteriorFindUsOn.gif";
  image2off = new Image();  image2off.src = "/html/assets/images/navInteriorFindUs.gif";
  image3on = new Image();   image3on.src = "/html/assets/images/navInteriorEventsOn.gif";
  image3off = new Image();  image3off.src = "/html/assets/images/navInteriorEvents.gif";
  image4on = new Image();   image4on.src = "/html/assets/images/navInteriorPhotosOn.gif";
  image4off = new Image();  image4off.src = "/html/assets/images/navInteriorPhotos.gif";
  image5on = new Image();   image5on.src = "/html/assets/images/navInteriorCarolOn.gif";  
  image5off = new Image();  image5off.src = "/html/assets/images/navInteriorCarol.gif";
  image6on = new Image();   image6on.src = "/html/assets/images/navInteriorShopOn.gif";
  image6off = new Image();  image6off.src = "/html/assets/images/navInteriorShop.gif";
  image7on = new Image();   image7on.src = "/html/assets/images/navInteriorContactOn.gif";
  image7off = new Image();  image7off.src = "/html/assets/images/navInteriorContact.gif";  
}

function imgAct(imageName) {
  if (br =="n3") {
  document[imageName].src = eval(imageName + "on.src");
  }
}


function imgInact(imageName) {
   if (br == "n3") {
   document[imageName].src = eval(imageName + "off.src");
   }
}

function toggleVisibility(id, NNtype, IEtype, WC3type) {
    if (document.getElementById) {
        eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
    } else {
        if (document.layers) {
            document.layers[id].visibility = NNtype;
        } else {
            if (document.all) {
                eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
            }
        }
    }
}

function WM_imageSwap(daImage, daSrc){
  var objStr,obj;

  if(document.images){
    if (typeof(daImage) == 'string') {
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}

function formHandler(brandShopper){
var URL = document.brandShopper.brand.options[document.brandShopper.brand.selectedIndex].value;
window.location.href = URL;
}

function openLargePhoto(URL) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=330,left=0,top=0');");
}

function openContent(URL) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=375,left=0,top=0');");
}

function openShippingPromoWindow(URL) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=250,left=0,top=0');");
}

function openUSStateCodes(URL) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=360,height=475,left=0,top=0');");
}

function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=670,height=450');
self.name = "mainWin";
}

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function clearField()
	{
	if (document.mailList.email.value == "email address")
		{
		document.mailList.email.value = ""
		}
}

var currentdate = 0;
var core = 0;

function initArray() {

this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
}
}

url = new initArray(
"",
"",
"",
"",
"",
"",
"",
"",
"",
"" 
);

image = new initArray(
"http://www.newmoonbar.com/images_dynamic/front/homeLarge1.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge2.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge3.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge4.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge5.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge6.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge7.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge8.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge9.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeLarge10.jpg" 
);

text = new initArray(
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranurl = url[core];
var ranimage = image[core];
var rantext = text[core];


var currentdateSmall = 0;
var coreSmall = 0;

function initArraySmall() {

this.length = initArraySmall.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArraySmall.arguments[i];
}
}

url = new initArraySmall(
"",
"",
"",
"",
"",
"",
"",
"",
"",
"" 
);

image = new initArraySmall(
"http://www.newmoonbar.com/images_dynamic/front/homeSmall1.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeSmall2.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeSmall3.jpg",
"http://www.newmoonbar.com/images_dynamic/front//homeSmall4.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeSmall5.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeSmall6.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeSmall7.jpg",
"http://www.newmoonbar.com/images_dynamic/front//homeSmall8.jpg",
"http://www.newmoonbar.com/images_dynamic/front//homeSmall9.jpg",
"http://www.newmoonbar.com/images_dynamic/front/homeSmall10.jpg" 
);

text = new initArraySmall(
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar",
"Welcome to New Moon Bar"
);

var currentdateSmall = new Date();
var coreSmall = currentdateSmall.getSeconds() % image.length;
var ranurlSmall = url[coreSmall];
var ranimageSmall = image[coreSmall];
var rantextSmall = text[coreSmall];

// -->
