var isNS = (document.layers);
var isNS6=(document.getElementById && (! document.all));
var isIE=(document.getElementById && document.all);

var pltfrm = navigator.userAgent.toLowerCase();
var isMac = (pltfrm.indexOf("mac")>-1);

var useCSS;
if (isMac) {
	if (isNS) {useCSS = "mac_ns"}
	else {useCSS = "mac_ie"}
}
else {
	if (isNS) {useCSS = "win_ns"}	
	else if (isNS6) {useCSS = "win_ns6"}
	else { useCSS = "win_ie"}
}

document.write('<link href="/yum.css" rel="stylesheet" type="text/css">');

csspage = '<link href="/' + useCSS + '.css" rel="stylesheet" type="text/css">'
document.write(csspage);

 // to fix bug with NS4.0X and the onresize event handler
if ((isNS)||(isNS6)) {
	origWidth=innerWidth;
	origHeight=innerHeight;
	onresize=function(){
		if (innerWidth!=origWidth||innerHeight!=origHeight) location.reload()
	}
}

function openDir( form ) { 
	var newIndex = form.fieldname.selectedIndex; 
	if ( newIndex == 0 ) { 
		alert( "Please select a location!" ); 
	} else { 
		cururl = form.fieldname.options[ newIndex ].value; 
		window.location.assign( cururl ); 
	} 
} 