//Variables for the x y coordinates of the layers
var x;
var y;
var valx;
var valy;
var isNav;
isNav=false;

valx=0;
valy=0;
var m=0;
var n=0;
var o=0;
var p=0;
var a=0;
var b=0;
var obj14;
flg=1;
isNav=false;
isIE=false;


if(navigator.appName=="Netscape"){
	if (navigator.appVersion.substring(0,3)=="5.0")
	{
		isNav=true;
		isApp71=true;
	}
	else{
		isNav=true;
		isApp71=false;
	}
}
else{
	isIE=true;
	coll=".all.";
	styleobj=".style";
}

function loadfile()
{
	location.reload();
	return false;
}

function findcoord1()
{
	x=event.clientX;
	y=event.clientY;
	if(document.all.id14.style.visibility=="visible"){
		l=document.all.id14.style.pixelLeft;
		t=document.all.id14.style.pixelTop;
		w=document.all.id14.clientWidth;
		h=document.all.id14.clientHeight;
		if(x<l || x>l+w || y<t || y>t+h){
			document.all.id14.style.visibility="hidden";
		}
	}
}

function findcoord2(evt)
{
	x=evt.pageX;
	y=evt.pageY;
	if (isApp71){
		obj14=document.getElementById('id14');
	}
	else{
		obj14=document.layers.id14;
	}

	if (isApp71)
	{
		if(obj14.style.visibility=="visible"){
			l=obj14.left;
			t=obj14.top;
			w=obj14.offsetWidth;
			h=obj14.offsetHeight;

			if(x<l || x>l+w || y<t || y>t+h){
				obj14.style.visibility="hidden";
			}
		}
	}
	else{
		if(obj14.layers.visibility=="show"){
			l=obj14.left;
			t=obj14.top;
			w=obj14.clip.width;
			h=obj14.clip.height;
			if(x<l || x>l+w || y<t || y>t+h){
				obj14.layers.visibility="hide";
			}
		}
	}
}

if(isNav){
	//window.captureEvents(Event.MOUSEDOWN)
	document.onmousedown=findcoord2
	document.onmouseup=release
}
else
{
	document.onmousedown=findcoord1
}

function release(){
//	window.releaseEvents(Event.MOUSEDOWN);
}

function changecolor(cl){
//	document.layers.id1.fgColor="white";
}

function displink(no){
//	rw=window.pageOffsetWidth;
//	rh=window.pageOffsetHeight;
	rw=screen.width;
	rh=screen.height;
	if((rw==800) || (rw==1024)){ 
		if(isNav){
			if (rw==800){
				if(no==14){
					a=700;
					b=470;
				}
			}
			else {
				if(no==14){
					//a=500;
					//b=500;
					a=350;
					b=300;
				}
			}
		}
		else{
			if(rw==800){
				if(no==14){
					a=230;
					b=230;
				}
			}
			else{
				if(no==14){
					a=350;
					b=300;
				}
			}
		}
	}
	if(isNav)
	{
		if(!isApp71)
		{
		obj14=eval("document"+coll+"id14"+styleobj);
		obj14.visibility="hidden";
		}

		if(no==14){
			obj14.left=a;
			obj14.top=b;
			if (isApp71)
			{
				obj14.style.visibility="visible";
			}
			else{
				obj14.layers.visibility="show";
			}
		}
	}
	else{
		obj14=eval("document"+coll+"id14"+styleobj);
//		alert(obj14);

		obj14.visibility="hidden";

		if(no==14){
			obj14.left=a;
			obj14.top=b;
			obj14.visibility="visible";
		}
	}
}


