//App.js

var app = new function()
{
	this.path = function()
	{
		var	lp;
		var	szT;
		var szPath = new String();
		var szW = new String("");

		szPath	= window.location.pathname;
		szPath	= szPath.substr(1);
		szT		= szPath.split("\\");
		szPath	= "";
		for(lp=0;lp<szT.length-1;lp++){
			szPath = szPath + szW + unescape(szT[lp]);
			szW = "\\";
		}
		return(szPath);
	}

	this.chkIE = function()
	{

		var bExplorer = ( (''+navigator.appName ).indexOf('Explorer') != -1 );
		var bWindows  = ( (''+navigator.playform).indexOf('Win'     ) != -1 );
		return( (bExplorer && bWindows) );

	}
}

//Const.js

var	ZPConst	= new function()
{
	//ZOOMA Plus’è‹`Ï‚Ý•Ï”
	this.PROGRESS = 0;
	this.DRAW_COMPLETED = 1;
	this.LBUTTON_DOWN = 2;
	this.LBUTTON_UP = 3;
	this.LBUTTON_DBLCLK = 4;
	this.MOUSE_MOVE = 5;
	this.END_INITIALIZE = 6;
	this.VIEW_CHANGED = 7;

	//y ƒx[ƒXƒJƒ‰[ z
	this.nEBgColor="#BCF056";
	this.nSBgColor="#54ACFF";
	this.nBBgColor="#ECECEC";
	this.nETextColor="#222222";
	this.nDTextColor="#E0E0FF";


	//Layer
	//”wŒiƒŒƒCƒ„”Ô†
	this.BK_LAYER = 1;
	//ZOOMAƒŒƒCƒ„”Ô†
	this.ZOOMA_LAYER = 20;
	//•ÒWƒŒƒCƒ„
	this.EDIT_LAYER = 100;
}

//DB.js

var db = new function()
{
	this.ZVno	= new Array();
	this.ZVImgName	= new Array();
	this.ZVImgURL	= new Array();
	this.ZVImgSamu	= new Array();

	this.initL	= 0;
	this.initR	= 1;

	this.ZVno[0]		= "0";
	this.ZVImgName[0]	= "–hÐ”ð“ï’n}[DM”Å]";
	this.ZVImgURL[0]	= "./bosai1/Bosai1";
	this.ZVImgSamu[0]	= "./bosai1/Bosai1/Bosai1.jpg";

	this.ZVno[1]		= "1";
	this.ZVImgName[1]	= "–hÐ”ð“ï’n}[q‹óŽÊ^”Å]";
	this.ZVImgURL[1]	= "./bosai2/Bosai2";
	this.ZVImgSamu[1]	= "./bosai2/Bosai2/Bosai2.jpg";
}

