// JavaScript Document

var msX;
var msY;
var tmrID;	
var hdlPopUp = null;

function openPopUp(strMsg){
	getMousePos(event);
	moveLayer("popup",msX+5,msY-25);
	strMsg='<table width="200" border="0" bgcolor="#eeeeee" cellspacing="0" cellpadding="2" style="border-left-width: 5px; border-left-style: solid; border-left-color: #BB0000;"><tr><td><font face="Arial, Helvetica, sans-serif" size="1">'+strMsg+'</font></td></tr></table>';
	outputLAYER("popup",strMsg);
	showLayer("popup");
}

function closePopUp(){
	if(hdlPopUp == null){
		return;
	}
	if ( document.getElementById )
		document.getElementById( hdlPopUp ).style.visibility = 'hidden' 
	else if ( document.all ) 
		document.all( hdlPopUp ).style.visibility = 'hidden' 
	else if ( document.layers )
		document.layers[ hdlPopUp ].visibility = 'hide' 
	hdlPopUp = null;
}

function outputLAYER(layName,html){
	if(document.getElementById){
		document.getElementById(layName).innerHTML=html
	} else if(document.all){
		document.all(layName).innerHTML=html
	} else if(document.layers) {
		document.layers[layName].document.open()
		document.layers[layName].document.write(html)
		document.layers[layName].document.close()
    }

}

function showLayer(objName){ 
	if ( document.getElementById )
		document.getElementById( objName ).style.visibility = 'visible' 
	else if ( document.all )
		document.all( objName ).style.visibility = 'visible' 
	else if ( document.layers )
		document.layers[ objName ].visibility = 'show' 
	hdlPopUp = objName;

}

function moveLayer(objName,x,y){
	if(document.getElementById){
		document.getElementById(objName).style.left=x;
		document.getElementById(objName).style.top=y;
	}else if(document.all){
		document.all(objName).style.pixelLeft=x;
		document.all(objName).style.pixelTop=y;
	}else if(document.layers){
		document.layers[objName].moveTo(x,y);
	}

}

function getMousePos(e) {
	if (window.opera) {
		msX=e.clientX;
		msY=e.clientY;
	}else if (document.all) {
		msX=document.body.scrollLeft+event.clientX;
		msY=document.body.scrollTop+event.clientY;
	}else if (document.layers || document.getElementById) {
		msX=e.pageX;
		msY=e.pageY;
	}
}

wx=400; wy=400;
x=(screen.width - wx)/2;
y=(screen.height - wy)/2;

function openWin1() {window.open("001.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin2() {window.open("002.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin3() {window.open("003.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin4() {window.open("004.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin5() {window.open("005.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin6() {window.open("006.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin7() {window.open("007.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin8() {window.open("008.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin9() {window.open("009.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin10() {window.open("010.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin11() {window.open("011.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin12() {window.open("012.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin13() {window.open("013.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin14() {window.open("014.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin15() {window.open("015.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin16() {window.open("016.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}
function openWin17() {window.open("017.html","","left="+x+",top="+y+",width="+wx+",height="+wy);}