﻿<!--//start Flash.js
function flashFix(file, width,height,url)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + file + '" align="middle">'+
		'<param name="allowScriptAccess" value="sameDomain" />' +
		'<param name="movie" value="' + file + '" />' +
		'<param name="quality" value="high" />'+
		'<param name="wmode" value="transparent" />'+
		'<embed src="' + file + '" quality="high" width="' + width +
		'" height="' + height + '" name="Flash" wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}

function flashFixLowRes(file, width,height,url)
{
    if(screen.availWidth > 1149)
    {
	    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + file + '" align="middle">'+
		    '<param name="allowScriptAccess" value="sameDomain" />' +
		    '<param name="movie" value="' + file + '" />' +
		    '<param name="quality" value="high" />'+
		    '<param name="wmode" value="transparent" />'+
		    '<embed src="' + file + '" quality="high" width="' + width +
		    '" height="' + height + '" name="Flash" wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}
}

function movieFix(file, width, height)
{
    document.write('<object id="MediaPlayer1" '+
	    'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '+
	    'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" '+
	    'standby="Loading Microsoft Windows® Media Player components..." '+
	    'type="application/x-oleobject" '+
	    'width="' + width + '" '+
	    'height="' + height + '" '+
	    'VIEWASTEXT> '+
	    '<param name="fileName" value="' + file + '"  /> '+
	    '<param name="animationatStart" value="true" /> '+
	    '<param name="transparentatStart" value="true" /> '+
	    '<param name="autoStart" value="true" /> '+
	    '<param name="showControls" value="true" /> '+
	    '<param name="Volume" value="-300" /> '+
	    '<param name="autosize" value="true" /> '+
	    '<embed type="application/x-mplayer2" '+
		    'pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" '+
		    'src="' + file + '" '+
		    'name="MediaPlayer1" '+
		    'width="' + width + '" '+
		    'height="' + height + '" '+ 
		    'autostart=1 '+
		    'showcontrols=1 '+
		    'autosize="true" '+
		    'volume=-300> '+
	    '</embed> '+
    '</object>');
}
//end of Flash.js-->
