Int = function(d_x, d_y)
{
	return isNaN(d_y = parseInt(d_x))? 0 : d_y;
};

getEventX = function(evt){

return (Int((evt.pageX || evt.clientX || 0)));
}

getEventY = function(evt){
return (Int((evt.pageY || evt.clientY || 0)));
}

getPageX = function(d_o)
{
	
		this.x = this.y = 0; //global helper vars
		while(d_o)
		{
			this.x += (d_o.offsetLeft);
			this.y += (d_o.offsetTop);
			d_o = d_o.offsetParent || null;
		}
		return (this.x);
	
};

getPageY = function(d_o)
{
	
		this.x = this.y = 0; //global helper vars
		while(d_o)
		{
			this.x += (d_o.offsetLeft);
			this.y += (d_o.offsetTop);
			d_o = d_o.offsetParent || null;
		}
		return (this.y);
	
};
getCssXY = function(d_o)
{
	if(d_o.div)
	{
		if(dd.n4)
		{
			d_o.cssx = d_o.div.x;
			d_o.cssy = d_o.div.y;
		}
		else if(dd.ie4)
		{
			d_o.cssx = d_o.css.pixelLeft;
			d_o.cssy = d_o.css.pixelTop;
		}
		else
		{
			d_o.css.left = d_o.css.top = 0 + dd.px;
			dd.getPageXY(d_o.div);
			d_o.cssx = d_o.x - dd.x;
			d_o.cssy = d_o.y - dd.y;
			d_o.css.left = d_o.cssx + dd.px;
			d_o.css.top = d_o.cssy + dd.px;
		}
	}
	else
	{
		d_o.cssx = 0;
		d_o.cssy = 0;
	}
};

function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function BrowserMouse_DoFSCommand(command, args) {
	var BrowserMouseObj = isInternetExplorer ? document.all.BrowserMouse : document.BrowserMouse;
	//
	// Place your code here.
	//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub BrowserMouse_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call BrowserMouse_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

