var IS_NN = (document.all) ? false : true;
var IS_IE = !IS_NN;

function showGeoNavigatorWnd(pointType,pattern) {
        if (IS_IE) {
                geoNavDiv.style.posTop = 200;
                geoNavDiv.style.posLeft = document.body.scrollLeft + (document.body.clientWidth - 260)/2;
                // 260 - ширина всплывающего iframe в geoNavDiv
                geoNavDiv.style.display = "block";
                geoNavFrame.location.href = "geonavigator.asp?pointType=" + pointType
                        + "&pattern=" + escape(pattern);
                return;
        }
        if (IS_NN) {
                var wndFeatures = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,width=300,height=217";
                var wndObj = window.open("","geoNavWnd",wndFeatures);
                wndObj.focus();
                wndObj = window.open("geonavigator.asp?pointType=" + pointType
                        + "&pattern=" + escape(pattern),"geoNavWnd",wndFeatures);
        }
}


function hideGeoNavigatorWnd(wndObj) {
	if (wndObj != null) {
		wndObj.close();
	} else if (IS_IE) {
		geoNavDiv.style.display = "none";
		geoNavFrame.location.href = "about:blank";
	}
}

var geoNavHTML = "";
if (IS_IE) {
	geoNavHTML = "<div id=\"geoNavDiv\" style=\"position: absolute; display: none; z-index: 3;\"><iframe name=\"geoNavFrame\" src=\"\" scrolling=\"No\"  frameborder=\"0\" width=\"260\" height=\"185\"></iframe></div>";
} 
else if (IS_NN) {
	//geoNavHTML = "<layer bgcolor=\"white\" id=\"searchSplash\" src=\"/common/searchsplash.asp\" z-index=\"5\" left=\"0\" top=\"0\" width=\"0\" height=\"0\" visibility=\"hide\"> </layer>";
}
//var splashHTML = "<span style=\"background-color: black; color: white; width: 349px; height: 200px; font-size: 32pt;\">Now searching... Now searching... Now searching... Now searching... Now searching...</span>";
document.writeln(geoNavHTML);

