rem: var applicationName = navigator.vendor; if (applicationName == "Mozilla" || applicationName == "Firebird" || applicationName == "") 
add: var applicationName=""; if (Components.classes["@mozilla.org/xre/app-info;1"]) { var appInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo); applicationName = appInfo.name; } if (applicationName == "SeaMonkey" || applicationName == "") 
context: function launchPreferences(){    var applicationName = navigator.vendor;    if (applicationName == "Mozilla" || applicationName == "Firebird" || applicationName == "")        goPreferences( "calendarPanel", "chrome://calendar/content/pref/calendarPref.xul", "calendarPanel" );    else        window.openDialog("chrome://calendar/content/pref/prefBird.xul", "PrefWindow", "chrome,titlebar,resizable,modal");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4e3a8ac6d5f5c934084cd8fbc8f138380bb76b78/calendar.js/clean/calendar/resources/content/calendar.js