<%@ Page language="c#" AutoEventWireup="false" %>
<!-- copied from Sonali Kale's [PSPL] original perl by wil-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
<%
string pbase = Request.Url.GetLeftPart(System.UriPartial.Authority)+Request.ApplicationPath;
string APPLET_CODEBASE=pbase+"/output/voplot/";
string VOTABLE_PREFIX=pbase;
string USER_GUIDE_URL=pbase+"/output/voplot/UserGuide/VOPlot_UserGuide_1_2_1.htm"; 
string APPLET_HEIGHT ="550";    
string APPLET_WIDTH ="850";      
string APPLET_CODE="com.jvt.applets.PlotVOApplet";
string PARAMETERS="/output/VODataClean.aspx?type=votable";
%>
<html>
<head>
	<title>VOTable Plot</title>
  </head>
<body bgcolor="#faf0e6">
    <center>
    <SCRIPT LANGUAGE="JavaScript">
    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 );
  if (_ie == true) document.writeln(' \
          <OBJECT \
                  classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" \
                  ID = "PlotVOApplet" \
                  width = <%=APPLET_WIDTH%> \
                  height = <%=APPLET_HEIGHT%> \
                  codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0"> \
          <PARAM NAME ="code" VALUE ="<%=APPLET_CODE%>"> \
                  codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0">  \
          <PARAM NAME = "archive"   VALUE = "voplot.jar"> \
          <PARAM NAME = "parameters" VALUE = "<%=PARAMETERS%>" > \
          <PARAM NAME = "codebase" VALUE = "<%=APPLET_CODEBASE%>" > \
          <PARAM NAME = "votablepath" VALUE = "<%=VOTABLE_PREFIX%>" > \
          <PARAM NAME = "userguideURL" VALUE = "<%=USER_GUIDE_URL%>" > \
          <PARAM NAME = "MAYSCRIPT" VALUE = "true" > \
          <PARAM NAME = "scriptable" VALUE = "true" > \
          <PARAM NAME = "background" VALUE = "#faf0e6"> \
          No Java Plug-in support for applet, see <a href="http://java.sun.com/products/plugin/"> \
		<code>http://java.sun.com/products/plugin/</code></a> \
          </OBJECT>  \
          ');
  else if (_ns == true && _ns6 == false)
           document.writeln(' \
          <COMMENT>  \
            <EMBED  \
                  type = "application/x-java-applet;version=1.3" \
                  code = "<%=APPLET_CODE%>" \
                  codebase = "<%=APPLET_CODEBASE%>" \
                  votablepath = "<%=VOTABLE_PREFIX%>" \
                  userguideURL = "<%=USER_GUIDE_URL%>" \
                  archive = "voplot.jar" \
                  width = "<%=APPLET_WIDTH%>" \
                  height = "<%=APPLET_HEIGHT%>" \
                  parameters ="<%=PARAMETERS%>" \
                  MAYSCRIPT = "true"; \
                  background = "#faf0e6" \
                  scriptable = "true" \
                  pluginspage = "http://java.sun.com/products/plugin/1.3.1/plugin-install.html">  \
            <NOEMBED>  \
                    No Java Plug-in support for applet, see <a href="http://java.sun.com/products/plugin/"> \
		<code>http://java.sun.com/products/plugin/</code></a> \
            </NOEMBED>  \
            </EMBED>  \
          <COMMENT> \
          ');
  else document.writeln(' \
          <APPLET \
                  code = "<%=APPLET_CODE%>" \
                  codebase = "<%=APPLET_CODEBASE%>"\
                  votablepath = "<%=VOTABLE_PREFIX%>"\
                  userguideURL = "<%=USER_GUIDE_URL%>"\
                  archive = "voplot.jar" \
                  width = "<%=APPLET_WIDTH%>"\
                  height = "<%=APPLET_HEIGHT%>"\
                  parameters ="<%=PARAMETERS%>"\
                  background = "#faf0e6"\
                  MAYSCRIPT="true"\
                  >\
                  <PARAM NAME = "background" VALUE = "#faf0e6" >\
                  No Java Plug-in support for applet, see <a href="http://java.sun.com/products/plugin/">\
			<code>http://java.sun.com/products/plugin/</code></a>\
          </APPLET> \
         ' )
</SCRIPT>
<br>
</center>
Powered by <a href=\"http://www.persistent.co.in\">Persistent</a>, 
<a href=\"http://www.iucaa.ernet.in\">IUCAA</a> and <a href="http://cdsweb.u-strasbg.fr/">CDS</a>
  </body>
</html>
