LayerName='header';
w = 660;

NN4	= !!document.layers;
NN6	= !!(!document.all && document.getElementById);
IE4	= !!(document.all && !document.getElementById);
IE5	= !!(document.all && document.getElementById);

function setLayerStyleObject() {
	if (IE4 || IE5)	lay = document.all(LayerName).style;
	if (NN4)	lay = document.layers[LayerName];
	if (NN6)	lay = document.getElementById(LayerName).style;
}

function moveLayer() {
	if (IE4 || IE5) windowWidth = document.body.clientWidth;
	else if (NN4 || NN6) windowWidth = window.innerWidth;

	if (windowWidth < 703) x = 20;
	else if (IE4 || IE5 || NN6) x = (windowWidth-w)/2;
	else if (NN4) x = (windowWidth-w)/2-8;

	lay.left = x;
	if (IE5) lay.top = 8;
}

function init() {
	setLayerStyleObject();
	tid_lay = setInterval("moveLayer()",500);
	moveLayer();
	lay.visibility='visible';
}

/*************************************/

function reloadPage(ini) {
		if ( ini ) { pageW=window.outerWidth; pageH=window.outerHeight; }
		else if (window.outerWidth != pageW || window.outerHeight != pageH) { top.history.go(0); }
}

if (NN4) {
	reloadPage( true );
	tid_win = setInterval( "reloadPage()", 1000 );
}

/*************************************/

function openPop(url,w_name,w,h,sb,mb){
	if (url == '') url = 'http://www.nomotochikusan.com/contact/index.html';
	if (sb) {
		if ((navigator.appName.indexOf('Microsoft') != -1) && (navigator.appVersion.charAt(22) < 5)) w+=16;
		if ((navigator.appName.indexOf('Microsoft') != -1) && (navigator.userAgent.indexOf('Win') != -1)) w+=16;
		if (!(document.all) && (document.getElementById)) w+=17;
	}
	w_config="width="+w+",height="+h+",location=0,directories=0,status=1,resizable=0,toolbar=0,scrollbars="+sb+",menubar="+mb;
	window.open(url,w_name,w_config);
}

var E2=1;