// setup test for Nav 4.0
var isIE = false;
var isNav = (navigator.appName.indexOf("Netscape")>=0);
var isNav4 = false;
var isIE4 = false;
var is5up = false;
//alert(navigator.appVersion);
if (isNav) {
	
	if (parseFloat(navigator.appVersion)<5) {
		isNav4=true;
		//alert("Netscape 4.x or older");
	} else {
		is5up = true;
	}
} else {
	isIE4=true;
	isIE=true;
	if ((navigator.appVersion.indexOf("MSIE 5")>0) || (navigator.appVersion.indexOf("MSIE 6")>0)) {
		isIE4 = false;
		is5up = true;
		//alert("IE5");
	}
}	

//
// HYPERLINK FUNCTION FOR RESULT WINDOW
//

function openHyperlink(layer, fldName, fldValue) {
    
    switch(layer) {
        case 'cities':
            //if (fldName == 'CITY_NAME') {
                window.open('http:/' + '/en.wikipedia.org/wiki/' + fldValue, 'wikiquery');
            //}
            break;
            
        default:
            alert ('See function openHyperlink in custom.js: ' + layer + ' - ' + fldName + ' - ' + fldValue);
    }
}


function showCategoryInfo(cat) {
    alert('Info about category: ' + cat);
}


function showGroupInfo(group) {
    alert('Info about group: ' + group);
}




