<!--

var XmousePosition = 0;
var YmousePosition = 0;
var newWin = false;

document.onmousemove = mousePosition;

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function preload(imgObj, imgSrc)
{
	if(document.images)
	{
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
	}
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function chmenup(n, a)
{
	document.images[n].src = eval(n+"_"+a+".src");
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function mousePosition(e)
{
	XmousePosition = (document.all)? event.clientX + document.body.scrollLeft : e.pageX ;
	YmousePosition = (document.all)? event.clientY + document.body.scrollTop : e.pageY ;
}

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

function openWindow(url,width,height, scrollb)
{
	if(isNaN(parseInt(width)) && isNaN(parseInt(height)))
	{
		width = 700;
		height = 500;
	}

	scrb = (scrollb == 1)? "yes" : "no" ;

	c = "toolbar=no,menubar=no,location=no,personalbar=no,status=no,statusbar=no,directories=no,resizable=no,";
	c += "scrollbars="+scrb+",width="+width+",height="+height+",left=50,top=50";
	
	newWin = window.open(url,"newWin",c);
	newWin.focus();
} 

//-->
