var bInitialized = false;
var bExplorer	= ((''+navigator.appName ).indexOf('Explorer') != -1);
var bWindows	= ((''+navigator.platform).indexOf('Win'     ) != -1);
var bActiveX	= (bExplorer && bWindows);
var hh	= 27;							//header height
var hfs	= 18;							//header font size
var htt	= "京丹後市防災マップ　大宮２";	//header text
var hbc	= '2a2a2a';						//header background color
var hfc	= '#ffffff';						//header foreground color
var mbc	= '000000';						//ZOOMA background color  RRGGBB

function windowonload()
{
	if(bActiveX) fitview();
	setTimeout("nomalize_zooma()", 100 , "JavaScript");
}

function nomalize_zooma()
{
	if(!bInitialized){
		setTimeout("nomalize_zooma()", 100 , "JavaScript");
		return;
	}
	CMiViewer1.ScaleFactor = 0.0;
	CMiViewer1.UpdateImage();
}

function w(s)
{
	document.write(s);
}

function fitview()
{
	if(bActiveX) {
		MyTable.width = MyBody.clientWidth;
		MyTable.height = MyBody.clientHeight;
	}
}

function FormPrint()
{
	if(bActiveX) {
		ZoomaPP1.ImageURL = CMiViewer1.ImageURL;
		ZoomaPP1.DoPrint();
	}
}

