var jpxIELauncher = function() {}
jpxIELauncher.prototype.errorMessage    = "";
jpxIELauncher.prototype.isCompatibleVar = true;
jpxIELauncher.prototype.swfobject       = {};
jpxIELauncher.prototype.sniffer         = {};
jpxIELauncher.prototype.setTimeOutAutloadInt = 500;

jpxIELauncher.prototype.canLaunch = function ()
{
	if (this.getLauncher())
	{
		return true;
	}
	else
	{
		this.errorMessage = "notcompatible_MSN";
		return false;
	}
}

jpxIELauncher.prototype.getLauncher = function ()
{
	try {
		return new ActiveXObject("MSNMessenger.P4QuickLaunch");
	}
	catch(e)
	{
		return false;
	}
}

jpxIELauncher.prototype.launchActivityWith = function (appId, strEmail)
{
	var launcher = this.getLauncher();
	
	if (launcher)
	{
		launcher.LaunchApp(appId, strEmail);
		return true;
	}
	
	return false;
}

jpxIELauncher.prototype.getErrorMessage = function ()
{
	return this.errorMessage;
}

jpxIELauncher.prototype.isCompatible = function ()
{
	
	// Check if the version state is valid
	if (!(Math.abs(this.sniffer.version) < 6) && this.isCompatibleVar == true )
	{
		this.isCompatibleVar = true;
	}
	else
	{
	    // older version FF
		this.isCompatibleVar = false;
		if (this.errorMessage == '')
		{
		    this.errorMessage = 'notcompatible_IE';
		}
		
	}
	return this.isCompatibleVar;
}

jpxIELauncher.prototype.preFilter = function ()
{
	// Optional code
	
	return true;
}

//launchActivity
jpxIELauncher.prototype.launchActivity = function (appId)
{
	return this.launchActivityWith(appId, '');
}

	
				