 if (ip.indexOf("24.172.50.3") == 0)
 {
  document.write('<applet CODEBASE="http://172.16.1.9/-wvdoc-01-/LiveApplet/" CODE="LiveApplet.class" archive="LiveApplet.zip" WIDTH="790" HEIGHT="640">');
  document.write('<param name=cabbase value="LiveApplet.cab">');
  document.write('<param name=url value="http://172.16.1.9/">');
  document.write('<param name=image_offset value="327,8">');
  document.write('<param name=show_fps value="off">');
  document.write('<param name=bg_color value="#DFFCFF">');
  document.write('<param name=show_panobutton value="no">');
  document.write('<param name=hostname value="Grande Shores Resort">');
  document.write('<param name=comment value="www.grandeshores.com">');
  document.write('<param name=show_comment value="off">');
  document.write('<param name=show_logo value="off">');
  document.write('<param name=image_offset value="0,0">');
  document.write('<param name="locale" value="english">');
  document.write('<param name="disconnect_msg" value="max-time exceeded">');
  document.write('<param name=superimpose value="/local/gstext.GIF,001,456">');
  document.write('<PARAM NAME="capture_size"    VALUE="640x480">');
  document.write('<PARAM NAME="video_width"     VALUE="640">');
  document.write('</applet>');
 }
 else
 {
  document.write('<applet CODEBASE="http://24.172.50.3/-wvdoc-01-/LiveApplet/" CODE="LiveApplet.class" archive="LiveApplet.zip" WIDTH="790" HEIGHT="640" ALT="Oops!  You do not seem to have JAVA installed!>');
  document.write('<a href="http://www.java.com">Oops!  You do not seem to have JAVA installed.  Go to www.java.com to get it.</a><br>&nbsp<br>');
  document.write('<param name=cabbase value="LiveApplet.cab">');
  document.write('<param name=bg_color value="#DFFCFF">');
  document.write('<param name=show_panobutton value="no">');
  document.write('<param name=url value="http://24.172.50.3/">');
  document.write('<param name=image_offset value="327,8">');
  document.write('<param name=show_fps value="off">');
  document.write('<param name=hostname value="Grande Shores Resort">');
  document.write('<param name=comment value="www.grandeshores.com">');
  document.write('<param name=show_comment value="off">');
  document.write('<param name=show_logo value="off">');
  document.write('<param name=image_offset value="0,0">');
  document.write('<param name="locale" value="english">');
  document.write('<param name="disconnect_msg" value="max-time exceeded">');
  document.write('<param name=superimpose value="/local/gstext.GIF,001,456">');
  document.write('<PARAM NAME="capture_size"	VALUE="640x480">');
  document.write('<PARAM NAME="video_width"	VALUE="640">');
  document.write('</applet>');
 }
