function handleError() {
	return true;
}
window.onerror = handleError;

function EasyContentFileContent(pCONTENT_ID,pITEM_ID,pLANGUAGE_ID)
{	
	autoPopupImageURL = 'FilePage.aspx?&CI=' + pCONTENT_ID + '&II=' + pITEM_ID + '&LI=' + pLANGUAGE_ID
	c_winpopup_settings = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,height=240,width=320'
	ECP = window.open('/EasyContent/' + autoPopupImageURL, 'ECP', c_winpopup_settings);
}

function EasyContentDetail(pCONTENT_ID,pLANGUAGE_ID)
{
	document.location.href = '/ECDetail.aspx?CI=' + pCONTENT_ID
}

function EasyContentResizeFileContentWindow()
{
	newWindowHeight = Math.min(screen.height-100,document.images['RENDERIMAGE'].height+80);
	newWindowWidth = Math.min(screen.width-20,document.images['RENDERIMAGE'].width-30) + 80;
	self.top.resizeTo(newWindowWidth,newWindowHeight);
	self.top.moveTo(screen.width/2 - document.images['RENDERIMAGE'].width/2+10 ,10);
	self.top.focus();
}
	
function Mouse(e){
	if (!e)
		var e = window.event||window.Event;
	
	if('undefined'!=typeof e.pageX){
		Xmouse = e.pageX
		Ymouse = e.pageY - 290
		Xmouse = 10;
	} else {
		// IE
		Xmouse = event.x
		Ymouse = event.y
		Ymouse = Ymouse + 10;
		Xmouse = 10
	}
	Ymouse = Ymouse + "px"
	Xmouse = Xmouse + "px";
}
		
var Xmouse = 0;
var Ymouse = 0;

if(window.Event && document.captureEvents)
 	document.captureEvents(Event.MOUSEMOVE);

window.document.onmousemove=Mouse;

function ECGlossarShow(pWord,pDescription)
{
	document.getElementById("GlossarWord").innerHTML = pWord
	document.getElementById("GlossarDescription").innerHTML = pDescription
	document.getElementById("GlossarDetails").style.left = Xmouse
	document.getElementById("GlossarDetails").style.top = Ymouse 
	document.getElementById("GlossarDetails").style.visibility = "visible"
}
function ECGlossarHide()
{
	document.getElementById("GlossarDetails").style.visibility = "hidden"
}		