/**
 * @author Rafal
 */

function wysokoscstrony()
{
	if( typeof( window.innerWidth ) == 'number' )
		myHeight = window.innerHeight;
	else
		if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
			myHeight = document.documentElement.clientHeight;
		else
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
			        myHeight = document.body.clientHeight;
	return myHeight;
}

function setcenter()
{
	document.getElementById('flash').style.marginTop=Math.round((wysokoscstrony()-500)/2)+'px';
}
