// function for launching various pop-up windows
//==============================================

	function ashayWin( windowURL, windowName, windowFeatures ) { 
		return window.open( windowURL, windowName, windowFeatures ) ; 
	} 

// End Of function
//==============================================


// function for closing up windows
//==============================================

function fetch(url) {
             opener.location = url;
             }
function fetch2(url) {
			 onClick=self.close();
             }

// End Of function
//==============================================


// Code Block for launching the Main Interface
//==============================================

function detectVersion() {
	version = parseInt(navigator.appVersion);
	return version;
}

function detectOS() {
	if(navigator.userAgent.indexOf('Win') == -1) {
		OS = 'Macintosh';
	} else {
		OS = 'Windows';
	}
		return OS;
	}

function detectBrowser() {
	if(navigator.appName.indexOf('Netscape') == -1) {
		browser = 'IE';
	} else {
		browser = 'Netscape';
	}
		return browser;
	}

function ashayOpener(url){
	var adjWidth;
	var adjHeight;
	var WindowName = "queenaaminah";

	if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
		var adjWidth = screen.availWidth - 20;
		var adjHeight = screen.availHeight - 35;
		var thewindow = window.open(url, WindowName, "width=" + adjWidth + ",height=" + adjHeight);
		thewindow.moveTo(0,0);
	}
	if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
		var adjWidth = screen.availWidth - 20;
		var adjHeight = screen.availHeight - 35;
		var thewindow = window.open(url, WindowName, "width=" + adjWidth + ",height=" + adjHeight);
		thewindow.moveTo(0,0);
	}
	if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
		adjWidth = screen.width-8;
		adjHeight = screen.height-47;
		window.open (url, WindowName, "left=0,top=0,width=" + adjWidth + ",height=" + adjHeight);
	}
	if ((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
		adjWidth = screen.width;
		adjHeight = screen.height;
		window.open(url, WindowName, "screenX=0,screenY=0,outerWidth=" + adjWidth + ",outerHeight=" + adjHeight);
	}
	if(detectVersion() < 4) {
		self.location.href = 'launcher.htm';
	}
}

// End Of Code Block
//==============================================


