function launchApp(dir){
	if (screen.height < 768) {
		var width = screen.width;
		var height = screen.height;
		Sexy.alert('<h1>Insufficient Screen Resolution.</h1><br/><p>Your screen resolution is '+width+'x'+height+'. A screen resolution of 1024x768 or greater is required to view this app properly.</p><p>The folowing links provide information about changing your screen resolution. Choose your operating system:<br /><a href="http://www.microsoft.com/windowsxp/using/setup/personalize/resolution.mspx" target="_blank">Windows XP</a> | <a href="http://windowshelp.microsoft.com/windows/en-us/help/0386b009-5f30-45c7-80c8-ff0395cc24091033.mspx" target="_blank">Windows Vista</a> | <a href="http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1970.html" target="_blank">Mac OS X</a></p>');
	} else {
		var win;
		var width = (screen.width - 1000)/2;
		var height = Math.floor((screen.height/2.2)) - 350;
		win = window.open(dir+"app", "app","location=0, status=0, scrollbars=0, width=1000, height=680");
		win.moveTo( width,  height);
		win.focus();
	}
}
