/* * Simulated browser environment for Rhino * By John Resig * Copyright 2007 John Resig, under the MIT License */ // The window Object var window = this; (function(){ // Browser Navigator window.navigator = { get userAgent(){ return "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"; } }; var curLocation = (new java.io.File("./")).toURL(); window.__def