function getFlashMovieObject(movieName)
{
if (window.document[movieName]) 
{
return window.document[movieName];
}
if (navigator.appName.indexOf("Microsoft Internet") == -1)
{
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName]; 
}
else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
{
return document.getElementById(movieName);
}
}


function focusflash() {

//ftarget = document.getElementById('dwcvx');
//ftarget = document.embeds['dwcvx'];
ftarget = getFlashMovieObject('dwcvx');
ftarget.focus();
}

function embedflash(w, h, src, sor) {

if (screen.height > 767 && screen.width > 1023 || sor == "ors") {

//document.write('<object type="application/x-shockwave-flash" data="' + src + '" width="' + w + '" height="' + h + '" id="dwcvx" name="dwcvx"><param name="movie" value="' + src + '" id="dwcvx" name="dwcvx" /></object>');


	var fdiv = document.getElementById("fcont");
	finsert = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + w + '" height="' + h + '" id="dwcvx" name="dwcvx" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + src + '" /><param name="quality" value="high" /><embed src="' + src + '" quality="high" width="' + w + '" height="' + h + '" name="dwcvx" id="dwcvx" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	//finsert = "HELLO!";
	fdiv.innerHTML = finsert;
	
	//var texttime = document.getElementById('fcont');
	//texttime.innerHTML = "HELLO!";
	//alert('hello');

} //else {
 //document.write('<p><b>Sorry, this resource is designed for screen resolutions of 1024*768 or greater. This script has detected your screen resolution as: ' + screen.width + ' (width) * ' + screen.height + ' (height)</b></p><p>If you believe this script has acted incorrectly and you are in fact using a suitable resolution, please <a href="index_ors.html">select this link</a> as this page has been tested on windows with Internet Explorer 7 and Firefox 2 only.</p>');
//}

//var ff=setTimeout("focusflash()",1000);

}
