////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	flash.js : flash javascript functions
//
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//	browser functions
////////////////////////////////////////////////////////////////////////////////////////////////////

function flashApp_BrowserType ()
{
	var pollenBrowser = ' ' + navigator.userAgent.toLowerCase ();

	this.OP	 = true	     && (pollenBrowser.indexOf ('opera') > 0);
	this.IE  = !this.OP  && (pollenBrowser.indexOf ('msie')  > 0);
	this.NS  = !this.OP  && !this.IE;

	this.OP6 = true	     && ((pollenBrowser.indexOf ('opera 6')   > 0) || (pollenBrowser.indexOf ('opera/6')    > 0));
	this.OP6 = this.OP6  || ((pollenBrowser.indexOf ('opera 7')   > 0) || (pollenBrowser.indexOf ('opera/7')    > 0));
	this.IE6 = !this.OP6 && (pollenBrowser.indexOf ('msie 6')     > 0);
	this.NS6 = true	     && ((pollenBrowser.indexOf ('netscape6') > 0) || (pollenBrowser.indexOf ('netscape/7') > 0));

	this.DOM = true      && document.getElementById;

	return this;
}

////////////////////////////////////////////////////////////////////////////////////////////////////
//	hack functions
////////////////////////////////////////////////////////////////////////////////////////////////////

function flashApp_HackActiveX ()
{
	document.writeln ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="600" height="450" id="intro" align="middle">');
	document.writeln ('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln ('<param name="movie" value="intro.swf" />');
	document.writeln ('<param name="quality" value="high" />');
	document.writeln ('<param name="bgcolor" value="#000000" />');
	document.writeln ('<embed src="intro.swf" quality="high" bgcolor="#000000" width="600" height="450" name="intro" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln ('</object>');
}

////////////////////////////////////////////////////////////////////////////////////////////////////
//	global variables
////////////////////////////////////////////////////////////////////////////////////////////////////

var flashBrowser = new flashApp_BrowserType;

////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	flash.js : flash javascript functions
//
////////////////////////////////////////////////////////////////////////////////////////////////////



