function ShowWebcam2(w,h) {
// Set the BaseURL to the URL of your camera
//var BaseURL = "http://lniamalfi2.dnsalias.com/";
var BaseURL = "http://93.149.70.254/";

// DisplayWidth & DisplayHeight specifies the displayed width & height of the image.
// You may change these numbers, the effect will be a stretched or a shrunk image
var DisplayWidth = w; //"320";
var DisplayHeight = h; //"240";

var File = "axis-cgi/mjpg/video.cgi?resolution="+w+"x"+h+"&clock=1&date=1&text=1&textstring=Lniamalfi.it - Piazza Duomo -";

  // No changes required below this point

var output = "";

  if ((navigator.appName == "Microsoft Internet Explorer") &&
     (navigator.platform != "MacPPC") && (navigator.platform != "Mac68k"))
  {
   //If Internet Explorer under Windows then use ActiveX
  output =  '<a href="webcam2.asp" target="_top"><object ID="Player" width='
  output += DisplayWidth;
  output += ' height=';
  output += DisplayHeight;
  output += ' CLASSID="CLSID:745395C8-D0E1-4227-8586-624CA9A10A8D" ';
  output += 'CODEBASE="';
  output += BaseURL;
  output += '/activex/AMC.cab#version=3,11,0,1">';
  output += '<PARAM NAME="MediaURL" VALUE="';
  output += BaseURL;
  output += File + '">';
  output += '<param name="MediaType" value="mjpeg-unicast">';
  output += '<param name="ShowStatusBar" value="0">';
  output += '<param name="ShowToolbar" value="0">';
  output += '<param name="AutoStart" value="1">';
  output += '<param name="StretchToFit" value="1">';
  output += '<BR><B>Amalfi Webcam 2</B><br><br>'
  output += '<BR><B>Axis Media Control</B><BR>';
<%Select case lingua
 case 1%>
  output += 'Non è stato possibile registrare in Internet Explorer';
  output += 'il controllo Active-X AXIS Media Control, che permette ';
  output += 'la visualizzazione della webcam.';
  output += '<span style="display:block;font-weight:bold;color:#fff;margin:60px 0 70px;">Si consiglia di consultare la pagina di aiuto presente in alto!</span>';
<%case else%>
  output += 'The AXIS Media Control, which enables you ';
  output += 'to view live image streams in Microsoft Internet';
  output += ' Explorer, could not be registered on your computer.';
  output += '<span style="display:block;font-weight:bold;color:#fff;margin:60px 0 70px;">Please visit the help page linked at the top!</span>';
<%End Select%>
  output += '<BR></OBJECT></a>';

} else {
  // If not IE for Windows use the browser itself to display
  theDate = new Date();
  output = '<IMG SRC="';
  output += BaseURL;
  output += File;
  output += '&dummy=' + theDate.getTime().toString(10);
  output += '" HEIGHT="';
  output += DisplayHeight;
  output += '" WIDTH="';
  output += DisplayWidth;
  output += '" ALT="Camera Image">';

}

document.write(output);
document.Player.ToolbarConfiguration = "play,+snapshot,+fullscreen";
}
