var queryString = String(window.parent.document.location);
var m_PlayerMode = "Html";

m_PlayerMode = SetPlayerMode();

function SetPlayerMode()
{
	var boolSilverlight = isSilverlightInstalled();
	if(boolSilverlight==true)
	{
		return "SilverLight";
	}
	else
	{
		return "Html";
	}
}




		 
		 
    function isSilverlightInstalled()
        {
            var isSilverlightInstalled = false;
            
            try
            {
                //check on IE
                try
                {
                    var slControl = new ActiveXObject('AgControl.AgControl');
                    isSilverlightInstalled = true;
                }
                catch (e)
                {
                    //either not installed or not IE. Check Firefox
                    if ( navigator.plugins["Silverlight Plug-In"] )
                    {
                        isSilverlightInstalled = true;
                    }
                }
            }
            catch (e)
            {
                //we don't want to leak exceptions. However, you may want
                //to add exception tracking code here.
            }
            return isSilverlightInstalled;
        }

//        function ExpandSilverInfo() {
//            document.getElementById('getSilverlighControlHost').style.height = '50px';
//        }

//        function CloseSilverInfo() {
//            document.getElementById('getSilverlighControlHost').style.height = '15px';
//        }