    var _info = navigator.userAgent; 
    var _ns = false; 
    var _ns6 = false;
    var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT><COMMENT> <SCRIPT LANGUAGE="JavaScript1.1"><!--
        var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0     && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0 )));
        var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
//--></SCRIPT></COMMENT> <SCRIPT LANGUAGE="JavaScript"><!--
    if (_ie == true) document.writeln('\
        <OBJECT \
            classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" \
            width = "800" \
            height = "680"  \
            codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0.0"> \
            <PARAM NAME = "code" \
                   VALUE = "VisualSim.actor.gui.MoMLApplet" > \
	    <PARAM NAME = "codebase"   VALUE = "../../.." > \
	    <PARAM NAME = "archive" \
                   VALUE = "VSsupport.jar,ModelBuilderApplet.jar,diva.jar,simulators.jar" > \
            <PARAM NAME = "type" \
                   VALUE = "application/x-java-applet;jpi-version=1.4" > \
            <PARAM NAME = "scriptable" VALUE = "false" > \
            <PARAM NAME = "NAME" VALUE = "Traffic Management" > \
	    <PARAM NAME = "background" VALUE = "#faf0e6" > \
		<PARAM NAME = "controls" VALUE = "buttons, topParameters" > \
	    <PARAM NAME = "orientation" VALUE = "horizontal" > \
	    <PARAM NAME = "modelURL" VALUE = "Router_w_Resource_N.xml" > \
            <a href="Router_w_Resource_N.xml">MoML specification for this model.</a> \
        </OBJECT> \
        ');
    else if (_ns == true && _ns6 == false)
         document.writeln('\
        <COMMENT> \
          <EMBED \
            type = "application/x-java-applet;jpi-version=1.4" \
            code = "VisualSim.actor.gui.MoMLApplet" \
            codebase = "../../.." \
            archive = " VSsupport.jar, ModelBuilderApplet.jar,diva.jar,simulators.jar" \
            width = "800" \
            height = "680" \
            NAME = "Traffic Management" background = "#faf0e6" modelURL = "Router_w_Resource_N.xml" controls = "buttons, topParameters" orientation = "horizontal" \
            scriptable = "false" \
            pluginspage = "http://java.sun.com/j2se/1.4.2/download.html"> \
              <NOEMBED> \
              <a href="Router_w_Resource_N.xml">MoML specification for this model.</a> \
              </NOEMBED> \
           </EMBED> \
        <COMMENT> \
        ');
    else document.writeln('\
        <APPLET \
            code = "VisualSim.actor.gui.MoMLApplet" \
            codebase = "../../.." \
            archive = " VSsupport.jar,ModelBuilderApplet.jar,diva.jar,simulators.jar" \
            width = "800" \
            height = "680" \
            > \
            <PARAM NAME = "NAME" VALUE = "Traffic Management" > \
	    <PARAM NAME = "background" VALUE = "#faf0e6" > \
		<PARAM NAME = "controls" VALUE = "buttons, topParameters" > \
	    <PARAM NAME = "orientation" VALUE = "horizontal" > \
	    <PARAM NAME = "modelURL" VALUE = "Router_w_Resource_N.xml" > \
            <a href="Router_w_Resource_N.xml">MoML specification for this model.</a> \
        </APPLET> \
        ');
