﻿function DetectUnityWebPlayerActiveX()
{
    try
    {
	    var tControl;
	    var res;
	    res = 0;
	    tControl = new ActiveXObject("UnityWebPlayer.UnityWebPlayer.1");
	    if (tControl)
	    {
	    	res = 1;
	    }
	    return res;
	 }
	 catch(er)
	 {
	 	// Something went wrong
	 	return null;
	 }
}
