salve, sto cercando di creare un oggetto, ma pare che sia errata questa sintassi:

codice:
function EFX()
{
		
	this.brow$er = function()
	{
		brow$ = navigator.userAgent.toLowerCase();

		return
		{
			IE:function()	 	{return (brow$.match("msie") 	!= null);},
			FF:function() 		{return (brow$.match("firefox") != null);},
			SAFARI:function() 	{return (brow$.match("safari") 	!= null);},
			OPERA:function() 	{return (brow$.match("opera") 	!= null);},
			CHROME:function()	{return (brow$.match("chrome") 	!= null);}
		}

	}


........
.....
....
}
insomma, la funzione brow$er mi deve tornare dei valori booleani in base al browser, dov'è che sbaglio?
mi torna un errore di sintassi nel punto "IE:function()"