<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 45;
// -----------------------------------------------------------------------------
	// ------- Private vars -------
	var jsReady = false;

	// ------- functions called by ActionScript -------
	// called to check if the page has initialized and JavaScript is available
	function isReady() {
		return jsReady;
	}

	function openPopUp(adres, width, height, top, lft, scrlleft, scrltop, res)
	{
		if (navigator.appName.indexOf("Microsoft") != -1) {
			iAwatarWindowWnd = 
			  window.open(adres,"iAwatarWindow", "location=1,status=1,scrollbars="+scrlleft+",resizable="+res+",width="+width+",height="+height);
			iAwatarWindowWnd.moveTo(top,lft);
		} else {
			iAwatarWindowWnd = 
			  document.open(adres,"iAwatarWindow", "location=1,status=1,scrollbars="+scrlleft+",resizable="+res+",width="+width+",height="+height);
			iAwatarWindowWnd.moveTo(top,lft);		
		}
	}

	function onOpener(adres)
	{
	if (adres=="Show google") 
	{
	window.open( "http://www.google.com/", "myWindow", "status = 1, height = 300, width = 300, resizable = 0" );
	}
	else
	if (adres=="show calculator") 
	{
	window.open( "http://www.intelmind.pl/calculator.html", "myWindow", "status = 1, height = 300, width = 300, resizable = 0" );
	}
	else
	{
		if (navigator.appName.indexOf("Microsoft") != -1) {
			window.location.replace(adres);
		} else {
			document.location.replace(adres);
		}
	}
	}
	// ------- event handling -------
	// called by the onload event of the <body> tag
	function pageInit() {
		// record that JavaScript is ready to go.
		jsReady = true;
	}

	// Gets a reference to the specified SWF file by checking which browser is
	// being used and using the appropriate JavaScript.
	// Unfortunately, newer approaches such as using getElementByID() don't
	// work well with Flash Player/ExternalInterface.
	function getSWF(movieName) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[movieName];
		} else {
			return document[movieName];
		}
	}

// -->




