<!--
var browserName = navigator.appName;

var browserProducerMicrosoft = browserName.indexOf("Microsoft") != -1;
var browserProducerNetscape = browserName.indexOf("Netscape") != -1;

var browserVersion = navigator.appVersion;

var ieVersion = 
	browserProducerMicrosoft ? 
	parseFloat(browserVersion.substring(browserVersion.indexOf("MSIE") + 4)) : 0;

var platform = navigator.platform;

// this code check against browser compatibility
	if (
		((platform.indexOf("MacPPC") != -1) && (browserProducerNetscape)) 
		|| 
		(
		(platform.indexOf("Win32") != -1) && 
		((browserProducerMicrosoft) && (ieVersion >= 5))
		)
		||
		(
		(platform.indexOf("Win32") != -1) && 
		((browserProducerNetscape))
		)
	) {
		// here if all ok
		//window.location.href=indexPage;
	}
	else {
		// here if not ...
		
	// for MAC
		if (platform.indexOf("MacPPC") != -1) {
			window.location.href=unsupportedBrowserPage;
		}
	// for Win 32 (Internet Explorer)
		else if ((platform.indexOf("Win32") != -1) && browserProducerMicrosoft) {
			window.location.href=upgradeBrowserPage;
		}
	// for Win 32 (Netscape Navigator)
		//else if ((platform.indexOf("Win32") != -1) && browserProducerNetscape) {
		//	window.location.href=indexPage;
		//}
	// for something else
		//else {
		//	window.location.href=unsupportedBrowserPage;
		//}
	}



// this code control the index page function
var armaniWindow = null;
var popupWindow = null;

function openWindow(location) {
	if (screen.availHeight < 500 || screen.availWidth < 750) {
		window.alert("Sorry, you need a minimum of 800x600 resolution to view this site");
	}
	else {
		if (armaniWindow && !armaniWindow.closed) {
			armaniWindow.location.href = docsDirectory + "/" + location;
		}
		else {
			var width = 750;
			var height = 500;
			var xPos = 
				(screen.availWidth - width - ((screen.availWidth > 800) ? 50 : 10));
			var yPos = 4*(screen.availHeight - height)/8;
			var winAttr = 
				"width=" + width + ",height=" + height + 
				",left=" + xPos + ",top="  + yPos + 
				",resizable=false,status=1";
		
			armaniWindow = window.open(docsDirectory + "/" + location,"armaniMain",winAttr);
		}

		// close the pop up		
		setTimeout('javascript: closePopupWindow()', 100);
		
		// move focus on the target
		armaniWindow.focus();
	}
}

function openPopupWindow(location) {
	if (popupWindow && !popupWindow.closed) {
		popupWindow.location.href = location;
	}
	else {
		var width =800;
		var height =600;
		var xPos = (screen.availWidth - width - 200);
		var yPos = (screen.availHeight - height -400);
		var winAttr = "width=" + width + ",height=" + height + ",left=" + xPos + ",top="  + yPos;
		popupWindow = window.open(location, "popupWindow", winAttr);
	}
	popupWindow.opener = parent;
	//armaniWindow.focus();
}

function closePopupWindow() {
	if (popupWindow && popupWindow.open && !popupWindow.closed) {
		popupWindow.close();
	}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
//-->

