function redirect(page)
{
    window.location.href = page
}

function open_window(page,params)
{
    window.open(page,"popup",params)
}

function detect_flash_redirect(redirect_page)
{
	if( !document.flashDetected ) 
	{
		redirect(redirect_page)
	}
}

function loadSWF(movieName, h, w, flashVars)
{
	document.writeln('<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=' + h + ' width=' + w + ' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 VIEWASTEXT>')
	document.writeln('<PARAM NAME="_cx" VALUE="18785">')
	document.writeln('<PARAM NAME="_cy" VALUE="14817">')
	document.writeln('<PARAM NAME="FlashVars" VALUE="' + flashVars + '">')
	document.writeln('<PARAM NAME="Movie" VALUE="' + movieName + '">')
	document.writeln('<PARAM NAME="Src" VALUE="' + movieName + '">')
	document.writeln('<PARAM NAME="Play" VALUE="1">')
	document.writeln('<PARAM NAME="Menu" VALUE="False">')
	document.writeln('<PARAM NAME="Quality" VALUE="High">')
	document.writeln('<PARAM NAME="SAlign" VALUE="">')
	document.writeln('<embed src="' + movieName + '" menu="false" FlashVars="' + flashVars + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '">')
	document.writeln('</embed>')
	document.writeln('</OBJECT>')
}