<!--
//variables for browser ID and mini-api
var isNav, isIE, isDCOM, isLame
var coll = ""
var styleObj = ""
var getel = ""
var getelcls = ""
var isMac
var isMacIE5
var isMacIE4
var livePush = 0
var vsp = 0
var tO = null
var good2go = false;
var toolbarHeight
var thisLayer
var thatLayer
var longMenuFlag
var longMenuMod = 50;
if (document.images){

        // T O P    M E N U
        
        // Active Images
        over1 = new Image();
        over1.src = "../images/navBrowseOver.gif";
        over2 = new Image();
        over2.src = "../images/navSpecialsOver.gif";
        over3 = new Image();
        over3.src = "../images/navEventsOver.gif";
		over4 = new Image();
        over4.src = "../images/navMarketingOver.gif";
		over5 = new Image();
        over5.src = "../images/navAboutOver.gif";
		over6 = new Image();
        over6.src = "../images/navOrderOver.gif";

        // Inactive Images
        out1 = new Image();                                                     
        out1.src = "../images/navBrowse.gif";
        out2 = new Image();                                                     
        out2.src = "../images/navSpecials.gif";
        out3 = new Image();                                                     
        out3.src = "../images/navEvents.gif";
		out4 = new Image();                                                     
        out4.src = "../images/navMarketing.gif";
		out5 = new Image();                                                     
        out5.src = "../images/navAbout.gif";
		out6 = new Image();                                                     
        out6.src = "../images/navOrder.gif";
		}

function onoff(x, y) {
        if(document.images) {
                document.images[x].src=eval(y+'.src');
		     }
        }

//browser sniff 
if (parseInt(navigator.appVersion) >= 4) {
	isMac = navigator.platform.indexOf('Mac') != -1 ? true : false;
	if(document.layers){
		isNav = true;
		origWidth = innerWidth;
        origHeight = innerHeight;
	} else if(document.all){
		isIE = true;					 
		coll = "all.";
		styleObj = ".style";
		if(isMac){
			isMacIE5 = navigator.appVersion.indexOf('MSIE 5') != -1 ? true : false;
			isMacIE4 = navigator.appVersion.indexOf('MSIE 4') != -1 ? true : false;			
		}
	} else if(document.getElementById){
		isDCOM = true;
		styleObj = "\").style";
		getel = "getElementById(\"";
		getelcls = "\")"
	}
} else {
	isLame = true;
}

//layer positioning insurance workaround for Navigator 4.x
function NetscapeSux(){
	if(!isLame){
      if(innerWidth != origWidth || innerHeight != origHeight){
		origWidth = innerWidth;
		origHeight = innerHeight;
		location.reload()
		return false
	  }
	}
}

if(isNav){
	window.captureEvents(Event.RESIZE)
	window.onresize = NetscapeSux
}

//takes layer name as an argument, returns object
function fixLayer(lname){
	var fixedLayer
	fixedLayer = eval("document." + coll + getel + lname + styleObj);
	return fixedLayer;
}

//controls linking from the left nav
//allows links that would trigger menus in 4.x + browsers to go to a URL in 3.x browsers
function menuLink(earl,stSec,men){
	men_u = men
	if(!isLame){
		doCollapse(men_u)
	}
	else if(isLame){
		location.href = earl
	}
}

//pop-up window function
function popWin(wURL,params){
	var theWin = window.open(wURL,'popup',params);
//	theWin.focus()
}

//Turns off all top-nav menus.  Is only called by other functions.
function popOff(){
	if(thisLayer){
		thisLayer.visibility = "hidden";
		//setBack()
	}
}

//prevents top nav menu layer from disappearing while user is making selection, 
//turns off any visible layers immediately in favor of new selection
function clearTo(whichL){
	if(good2go == true){
		if(!isLame){
			if(tO != null){
				clearTimeout(tO);
				if(whichL != thatLayer){
					popOff();
				}
			}
		} else {
			return true
		}
	}
}

//waits half a second before turning layer off  
//Gives user time to select a sub-menu before layer vanishes on mouse out.
function rollOut(){
	if(good2go == true){
		if(!isLame){
			tO = setTimeout("popOff()", 500);
		} else {
			return true
		}
	}
}

//turns navigation layer named in argument on, and rolls over appropriate image. 
function popOn(lName){
	if(good2go == true){
		if(!isLame){
			clearTo(lName);
			thisLayer = eval("document." + coll + getel + lName + styleObj);
			thisLayer.visibility = "visible";	
			// toImg = lName + "Box";
			// swap(toImg,'1','gblImg','');	
			thatLayer = lName;
		} else {
			return true
		}
	}
}

//-->