function NWLConfig() {
	this.resolution	  			= '320x240';
	this.refresh_rate			= '3';
	this.timeout				= 600;
	this.minflashver			= 7;
	this.type         			= 'basic';
	this.context                = 'tb';
	this.allow_video = false;
  this.camera					= 'e962cc761908e823872a84273d4e8968';
		this.relay = false;
	this.address				= '92.54.155.69:2220';
	this.username				= '';
	this.password				= '';
	this.manufacturer           = 'Panasonic';
	this.model                  = 'BL-C10A';
	this.firmware     			= '';
	this.apiversion   			= '1';
		  this.snapshot_url = 'http://liveimages.networkwebcams.co.uk/tb_emt01-small.jpg';
		this.stream_url = 'http://92.54.155.69:2220/nphMotionJpeg?Resolution=320x240&Quality=Standard&_nocache=1493120665';
	var _regexp = new RegExp('^http://([^/]+)(/.*)$');
	var _strmre = _regexp.exec(this.stream_url);
	var _snpre  = _regexp.exec(this.snapshot_url);
	if (this.stream_url) {
	  _strmre = _regexp.exec(this.stream_url);
		this.stream_address = _strmre[1];
		this.stream_path = _strmre[2];
	}
	this.snapshot_address  = _snpre[1];
	this.snapshot_path 	   = _snpre[2];
  this.truestream = false;
	this.truestream_url = '';
	this.allow_relay_fallback_viewer = false;
}
// Panasonic viewer
var PanasonicViewer = Class.extend( NWLViewer, {
	
		initialize: function(options) {
			this.superInit(options);
			
			if (!this.browser.isIE || (this.model == 'WV-NP472')) {
				if (!this.relay) {
					this.snapshot_url = this.hostspec(this.snapshot_address, this.snapshot_path, false);
				}
				this.allow_switch = false;
			}
			if (this.model == 'WV-NM100') {
				this.allow_switch = false;
			}
		}
	
});

var myViewer = new PanasonicViewer(new NWLConfig());


// panasonic blc10a
if (myViewer) {
   // document.write('<pre>MJPEGRender is installed? ' + detectMJPEGRender() + '</pre>');
   Event.observe(window, 'load', function() { 
		setTimeout('myViewer.draw(myViewer.getHTML());', 200)
	 }, true);
	 	 
	 if(typeof renderPresetsArea == 'function') {
	   Event.observe(window, 'load', function() { 
		setTimeout(renderPresetsArea, 300)
	 }, true);
	 }
	 
} else {
	document.write("Sorry, there is currently no driver available for this camera");
}



