﻿<!--//start Browser.js
var agt=navigator.userAgent.toLowerCase();

if (agt.indexOf("ie 6") > -1 )
{
//	alert("ie 6");
	document.write("<link rel='stylesheet' href='css/ie6.css' type='text/css' media='screen' />"); 
}
else if (agt.indexOf("ie 7") > -1 )
{
//	alert("ie 7");
	document.write("<link rel='stylesheet' href='css/ie7.css' type='text/css' media='screen' />"); 
}
else if (agt.indexOf("safari") > -1 )
{
	//alert("safari");
	document.write("<link rel='stylesheet' href='css/safari.css' type='text/css' media='screen' />"); 
}
else if (agt.indexOf("opera") > -1 )
{
	//alert("safari");
	document.write("<link rel='stylesheet' href='./css/opera.css' type='text/css' media='screen' />"); 
}
else
{
	//alert(agt);
	document.write("<link rel='stylesheet' href='css/moz.css' type='text/css' media='screen' />"); 
}


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 Browser.js-->