	//var q_str = location.search;
	
	var q_str = new String(document.location);
	q_str = q_str.substr(q_str.indexOf("?"));
	//q_str = newq_str;
	
	switch(location.hostname) {
		case 'www.flypentop.com':
			var serverbaseurl = 'http://www.flypentop.com/';
		break;
		case 'flypentop.com':
			var serverbaseurl = 'http://www.flypentop.com/';
		break;
		case 'staging.flypentop.com':
			var serverbaseurl = 'http://staging.flypentop.com/';
		break;
		default:
			var serverbaseurl = 'http://staging.flypentop.com/';
		break;
	}
	
serverbaseurl - 'http://fly.evb-archive.com/';
	
	if (q_str.indexOf("?") > -1) {
		pass_str = q_str + '&bu=' + assetbaseurl + '&su=' + serverbaseurl;
	} else {
		pass_str ='?bu='+assetbaseurl + '&su=' + serverbaseurl;
	}


	if (MM_FlashCanPlay) {
		document.write('<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">');
		document.write('<tr>');
		document.write('<td width="100%" height="100%" align="center" style="vertical-align:top;">');
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,6,5" width="100%" height="100%" id="flyshell" align="middle">');
		document.write('<param name="allowScriptAccess" value="always" />');
		document.write('<param name="movie" value="'+assetbaseurl+'media/swf/flyshell.swf" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="menu" value="false" />');
		document.write('<param name="FlashVars" value="'+pass_str.substr(1)+'" />');
		document.write('<param name="bgcolor" value="#2C63B5" />');
		document.write('<embed src="'+assetbaseurl+'media/swf/flyshell.swf" flashvars="'+pass_str.substr(1)+'" menu="false" quality="high" bgcolor="#2C63B5" width="100%" height="100%" name="flyshell" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
		document.write('</td><td style="vertical-align:middle;"><img src="media/images/bl.gif" width="1" height="700" alt=""/></td></tr>')
		document.write('<tr><td><img src="media/images/bl.gif" width="765" height="1" alt=""/></td><td></td></tr>');
		document.write('</table>');
		document.close();
	} else {
		document.write('<div align="center"><img src="media/images/no_flash.jpg" width="783" height="635" border="0" usemap="#map_nf" alt="" title="" /></div>');
		document.write('<map name="map_nf">');
		document.write('<area shape="rect" coords="262,578,335,600" href="javascript:openRules();">');
		document.write('<area shape="rect" coords="344,577,421,601" href="javascript:openPrivacy();">');
		document.write('<area shape="rect" coords="430,577,532,601" href="javascript:openTerms();">');
		document.write('<area shape="rect" coords="40,122,747,554" href="http://www.macromedia.com/go/getflashplayer" target="_blank">');
		document.write('</map>');
		document.close();
	}
	
