<!--

function openWin(url, identifier, width, height)
{
	var win = window.open(url, identifier, 'width=' + width + ', height=' + height + ', scrollbars=1, toolbar=0, menubar=0, status=0, location=0');

	if (!win)
	{
		alert('A popup was blocked. Please disable your popup blocker.');
	}
	win.focus();
	return win;
}

function initPage()
{
	handleScroll();

	if (getQueryParamValue('flasherror') == 1)
	{
		document.getElementById('content').style.display = 'none';
		document.getElementById('content_flasherror').style.display = 'block';
	}
	else
	{
		var flashcontent = new FlashObject('preloader.swf', "mainfl", 1000, 450, 8, "#000000" , false, 'high', '','index.html?flasherror=1', 'detectflash');

		flashcontent.addParam('quality', 'high');
		flashcontent.addParam('style', 'margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;');
		flashcontent.addParam('menu', 'false');
        flashcontent.addParam('allowscriptaccess', 'always');

		flashcontent.addVariable('lang', lang);
        flashcontent.addVariable('contentPath', contentPath);
        flashcontent.addVariable('customSendEvent', customSendEvent);

		flashcontent.write('flashcontent');
	}
}

function handleScroll()
{
	if (window.innerHeight > 0) 						{ var funcbarPos = window.innerHeight - 14; }
	else if (document.documentElement.clientHeight > 0) { var funcbarPos = document.documentElement.clientHeight - 14; }
	else if (document.body.clientHeight > 0) 			{ var funcbarPos = document.body.clientHeight - 14; }
	else 												{ return; } // noop

	if ( window.pageYOffset > 0) 						{ funcbarPos += window.pageYOffset; }
	else if (document.documentElement.scrollTop > 0)	{ funcbarPos += document.documentElement.scrollTop; }
	else if (document.body.scrollTop > 0)				{ funcbarPos += document.body.scrollTop; }

	if (funcbarPos < 550)
	{
		document.getElementById('funcnav').style.display = 'none';
	}
	else
	{
		document.getElementById('funcnav').style.display = 'block';
		document.getElementById('funcnav').style.top = funcbarPos + 'px';
	}
}

window.onscroll=handleScroll; // does not work with NS4.x,NS6 and OP
window.onresize=handleScroll;


/**
 * Instadia skeleton functions
 */
function Instadia_sendInfo()
{
}

function Instadia_sendEvent(a, b, c)
{
}

//-->
