   //INZOMIA.JS 2002-03-15. Created by Zoom Studio 2. http://www.inzomia.com
  Inzomia.prototype.filename = "";
 Inzomia.prototype.width = 640;
 Inzomia.prototype.height = 480;
 Inzomia.prototype.serial = 200000000;
 Inzomia.prototype.altfilename = "";
 Inzomia.prototype.altfilewidth = 0;
 Inzomia.prototype.altfileheight = 0;

 Inzomia.prototype.posx = 0.000;
 Inzomia.prototype.posy = 0.000;
 Inzomia.prototype.posz = 1.000;
 Inzomia.prototype.maxzoom = 10.000000;
 Inzomia.prototype.minzoom = 0.100000;
 Inzomia.prototype.zoomspeed = 1;
 Inzomia.prototype.panspeed = 1;
 Inzomia.prototype.bgcolor = 0xffffff;
 Inzomia.prototype.canvascolor = 0xffffff;
 Inzomia.prototype.bordercolor = 0x0;
 Inzomia.prototype.borderwidth = 1;
 Inzomia.prototype.borderheight = 1;
 Inzomia.prototype.fit = 0x130;
 Inzomia.prototype.userinterfacelock = 0x0;
 Inzomia.prototype.created = false;

 Inzomia.prototype.NextID = 0;

 function Inzomia(file, w, h, altfile, altw, alth){
	this.Create(file, w, h, altfile, altw, alth, this.serial, this.posx, this.posy, this.posz, this.maxzoom, this.minzoom, this.zoomspeed, this.panspeed, this.bgcolor, this.canvascolor, this.bordercolor, this.borderwidth, this.borderheight, this.fit, this.userinterfacelock);
 }

 Inzomia.prototype.Create = function(file,width,height,altfile,altwidth,altheight,serial,posx,posy,posz,maxzoom,minzoom,zoomspeed,panspeed,bgcolor,canvascolor,bordercolor,borderwidth,borderheight,fit,userinterfacelock){
	this.version = "";
	this.altfile = altfile;
	this.altfilewidth = altwidth;
	this.altfileheight = altheight;

	path = "";
	browserName = navigator.appName;
	browserVer = parseFloat(navigator.appVersion);
	
	
	// Generate a unique id for this object
	this.ID = "theInzomia" + Inzomia.prototype.NextID;
	Inzomia.prototype.NextID++;

	html = "";

	if (browserName == "Netscape" && browserVer >= 4.0)
	{
		this.version = "N";
		if(!navigator.mimeTypes["application/x-inzomia-plugin"])
		{
			//No Inzomia plug-in
		}
		else if ( screen.pixelDepth > 8)
		{
			path = location.href.substring(0,location.href.lastIndexOf('/'));
			if(file != ""){
				// Is filepath relative or not, ie is "http" in the string?
				if ( file.indexOf("http") == -1)
				{
					if ( file.indexOf("file") == -1)
					{
						if (file[0] == '/')
							file = path + file;
						else
							file = path + '/' + file;
					}
				}
			}
			else
				file = '""';
	
			html = '<EMBED type="application/x-inzomia-plugin" name=' + this.ID + ' ';
 	 		html += 'width=' + width + ' ';
 	 		html += 'height=' + height + ' ';
			html += 'param_Serial=' + serial + ' ';
			html += 'param_Filename="' + file + '" ';
			html += 'param_PosX=' + posx + ' ';
			html += 'param_PosY=' + posy + ' ';
			html += 'param_PosZ=' + posz + ' ';
			html += 'param_MaxZoom=' + maxzoom + ' ';
			html += 'param_MinZoom=' + minzoom + ' ';
			html += 'param_ZoomSpeed=' + zoomspeed + ' ';
			html += 'param_PanSpeed=' + panspeed + ' ';
			html += 'param_BgColor=' + bgcolor + ' ';
			html += 'param_CanvasColor=' + canvascolor + ' ';
			html += 'param_BorderColor=' + bordercolor + ' ';
			html += 'param_BorderWidth=' + borderwidth + ' ';
			html += 'param_BorderHeight=' + borderheight + ' ';
			html += 'param_Fit=' + fit + ' ';
			html += 'param_UserInterfaceLock=' + userinterfacelock + ' ';
			html += 'event_ChangedPos="'+ this.ID +'_ChangedPos" ';
			html += 'event_OnChangeMode="'+ this.ID +'_OnChangeMode" ';
			html += 'event_OnCursor="'+ this.ID +'_OnCursor" ';
			html += 'event_OnLoad="'+ this.ID +'_OnLoad" ';
			html += 'event_OnTime="'+ this.ID +'_OnTime" ';
			html += 'event_ZoomedToGoal="'+ this.ID +'_ZoomedToGoal" ';
			html += '></EMBED>';
			this.created = true;
		}
	}	
	else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4)
	{
		if ( screen.colorDepth > 8)
		{
			this.version = "IE";
			html = '<object ID=' + this.ID + ' ';
			html += 'width=2 '; 
			html += 'height=2 ';
			html += 'classid="clsid:F0B63C6D-4CDB-11D3-8CE6-CA9CFC28F360">';
			html += '<param name="Serial" value=' + serial +'>';
			html += '<param name="Filename" value="' + file + '">';
			html += '<param name="PosX" value=' + posx + '>';
			html += '<param name="PosY" value=' + posy + '>';
			html += '<param name="PosZ" value=' + posz + '>';
			html += '<param name="MaxZoom" value=' + maxzoom + '>';
			html += '<param name="MinZoom" value=' + minzoom + '>';
			html += '<param name="ZoomSpeed" value=' + zoomspeed + '>';
			html += '<param name="PanSpeed" value=' + panspeed + '>';
			html += '<param name="BgColor" value=' + bgcolor + '>';
			html += '<param name="CanvasColor" value=' + canvascolor + '>';
			html += '<param name="BorderColor" value=' + bordercolor + '>';
			html += '<param name="BorderWidth" value=' + borderwidth + '>';
			html += '<param name="BorderHeight" value=' + borderheight + '>';
			html += '<param name="Fit" value=' + fit + '>';
			html += '<param name="UserInterfaceLock" value=' + userinterfacelock + '>';
			html += '<img src="" width=0 height=0>';
			html += '</object>';
		}
	}
	document.writeln(html);

	var RetrievedName = 0;
	if (this.version == "IE")
		eval( "RetrievedName = document." + this.ID + ".Filename");

	if ( (RetrievedName == file) || this.created ) 
	{
		this.created = true;
		if(this.version == "IE")
		{
  			var Command;
  			Command = "document."+ this.ID +".width="+ width;
   			eval(Command);
   			Command = "document."+ this.ID +".height="+ height;
   			eval(Command);
   		}
	}
	else 
	{
		if (this.altfilewidth == 0)
			html = '<img src=' + this.altfile + ' name="altimagebig">';
		else
			html = '<img src=' + this.altfile + ' width=' + this.altfilewidth + ' height=' + this.altfileheight + ' name="altimagebig">';
		document.writeln(html);
	}
	document.close(); // Update the document content.
 }

 Inzomia.prototype.setfilename = function( file ){
 	if ( this.created )
	{
		var Command;
   		if ( this.version == "N" )
		{
     			file = path + '/' + file;
    			Command = "document." + this.ID + ".setFilename('" + file + "');";
   		}
		else if ( this.version == "IE" )
    			Command = "document." + this.ID + ".Filename = file";
   		eval( Command );
  	}
 }

 

 Inzomia.prototype.setProperty = function( method, value){
 	if( this.created )
	{
   		var Command;
   		if ( this.version=="N" )
    			Command = "document."+ this.ID +".set"+ method +"("+ value +");";
   		else if ( this.version == "IE" )
    			Command = "document."+ this.ID +"."+ method +"="+ value;
   		eval ( Command );
 	}
 }

 Inzomia.prototype.getProperty=function(method){
  	if( this.created )
	{
   		var Command;
   		var value;
   		if( this.version == "N" )
    			Command = "value"+"=document."+ this.ID +".get"+ method +"()";
   		else if ( this.version == "IE" )
    			Command = "value"+"=document."+ this.ID +"."+ method;
   		eval ( Command );
   		return value;
  	}
 }