// JavaScript Document


// on mouse

function change_img(o,img) {
	var c = o.childNodes ;
	for(var i=0;i<c.length;i++ ) if(c[i].nodeName=='IMG') { c[i].src = img ; break ; }
}


// font size

var x = 100;
function larger()  { x *= 1.2; document.body.style.fontSize = x + '%'; }
function smaller() { x /= 1.2; document.body.style.fontSize = x + '%'; }


// popup

newWin1 = null;
function popup(Name,title,X,Y){
if(newWin1 != null && !newWin1.closed) {
window.newWin1.close();
}
newWin1=window.open(Name , title,'width='+X+',height='+Y+',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizaeable=no,left=200,top=10');
}



// popup


var IE = 0,N6 = 0;
if(document.all) IE = true;
else if(document.getElementById) N6 = true;
function OnLink(Msg,mX,mY,nX,nY){
var pX = 0,pY = 0;
var sX = -10,sY = 30;
if(IE){
MyMsg = document.all(Msg).style;
MyMsg.visibility = "visible";
}
if(N6){
MyMsg = document.getElementById(Msg).style;
MyMsg.visibility = "visible";
}
if(IE){
pX = document.documentElement.scrollLeft;
pY = document.documentElement.scrollTop;
MyMsg.left = mX + pX + sX+"px";
MyMsg.top = mY + pY + sY+"px";
}
if(N6){
MyMsg.left = nX+ sX+"px";
MyMsg.top = nY + sY+"px";
}
}
function OffLink(Msg){
if(IE) document.all(Msg).style.visibility = "hidden";
if(N6) document.getElementById(Msg).style.visibility = "hidden";
}



