	function openTimedPopup( url, name, width, height, center )
	{
		if( center )
		{
			setTimeout("window.open('" + url + "','" + name + "','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + width + ",height=" + height + ",top=" + (( screen.height - height )/2) + ",left=" + (( screen.width - width )/2 ) + "' );",500);
		}
		else
		{
			setTimeout("window.open('" + url + "','" + name + "','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + width + ",height=" + height + "' );",500);
		}
	}
	
	function openPopup( url, name, width, height, center )
	{
		var oWindow;
		
		if( center )
		{
			oWindow = window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height + ',top=' + (( screen.height - height )/2) + ',left=' + (( screen.width - width )/2 ) );
		}
		else
		{
			oWindow = window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height );
		}
		
		oWindow.focus();
		
		return oWindow;
	}
	
	function openWindow( url, name )
	{
		window.open( url, name );
	}
	
	function openScrollingPopup( url, name, width, height, center )
	{
		if( center )
		{
			window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' + width + ',height=' + height + ',top=' + (( screen.height - height )/2) + ',left=' + (( screen.width - width )/2 ) );
		}
		else
		{
			window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' + width + ',height=' + height );
		}
	}
	
	function PopupFullOption( url, name )
	{
		var width= screen.width / 1.4 ;
		var height= screen.height/ 1.4;
		var center = 0;
		if( center )
		{
			window.open( url, name,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=' + width + ',height=' + height + ',top=' + (( screen.height - height )/2) + ',left=' + (( screen.width - width )/2 ) );
		}
		else
		{
			window.open( url, name,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=' + width + ',height=' + height );
		}
	}
	
	function openGrafica( src, nombreGrafica )
	{
		openGrafica( src, nombreGrafica, 800, 600 );	
	}
	
	function openGrafica( src, nombreGrafica, ancho, alto )
	{
		var oWindow = openPopup( '', '', ancho, alto );
		
		oWindow.document.write( '<html>' );
		oWindow.document.write( '	<head>' );
		oWindow.document.write( '		<title>'+nombreGrafica+'</title>' );
		oWindow.document.write( '	</head>' );
		oWindow.document.write( '	<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">' );
		oWindow.document.write( '		<img src="' + src + '" alt="">' );
		oWindow.document.write( '	</body>' );
		oWindow.document.write( '</html>' );
		
	}
	
	// Expanding images script copyright Matthew LaCerais MLacerais@osc.state.ny.us 
	// Distributed by hypergurl http://www.hypergurl.com 
	// Permission to use script granted if above credits are left intact 
	function resizeImage(e) 
	{ 
		if (document.layers) 
		{ 
			//Netscape 
			var xMousePos = e.pageX; 
			var xMousePosMax = window.innerWidth+window.pageXOffset; 
		} 
		else if (document.all) 
		{ 
			// IE 
			var xMousePos = window.event.x+document.body.scrollLeft; 
		} 
		else if (document.getElementById) 
		{
			//Netscape 
			var xMousePos = e.pageX; 
			var xMousePosMax = window.innerWidth+window.pageXOffset; 
		} 
		
		var i = (-1 * (((xMousePos/340) - (250/340)) * ((xMousePos/340) - (250/340)))) + 1; 
		
		if (i < .4) i = .4; if (i > 2) i = 2; 
		
		picture1.width=(170* i); 
		picture1.height=(125 * i); 
		i = (-1 * (((xMousePos/340) - (420/340)) * ((xMousePos/340) - (420/340)))) + 1; 
		
		if (i < .4) i = .4; 
		if (i > 2) i = 2; 
		
		picture2.width=(170* i); 
		picture2.height=(125 * i); 
		
		i = (-1 * (((xMousePos/340) - (525/340)) * ((xMousePos/340) - (525/340)))) + 1; 
		if (i < .4) i = .4; 
		if (i > 2) i = 2; 
		
		picture3.width=(170 * i); 
		picture3.height=(125 * i); 
		
		i = (-1 * (((xMousePos/340) - (600/340)) * ((xMousePos/340) - (600/340)))) + 1; 
		if (i < .4) i = .4; 
		if (i > 2) i = 2; 
		
		picture4.width=(170 * i); 
		picture4.height=(125 * i); 
		
		i = (-1 * (((xMousePos/340) - (680/340)) * ((xMousePos/340) - (680/340)))) + 1; 
		if (i < .4) i = .4; 
		if (i > 2) i = 2; 
		
		picture5.width=(170* i); picture5.height=(125 * i); 
	} 
	
	function handleMouse() 
	{ 
		if (document.layers) 
		{ 
			// Netscape 
			document.captureEvents(Event.MOUSEMOVE); 
			document.onmousemove = resizeImage; 
		} 
		else if (document.all) 
		{ 
			// Internet Explorer 
			document.onmousemove = resizeImage; 
		} 
		else if (document.getElementById) 
		{ 
			// Netcsape 6 
			document.onmousemove = resizeImage; 
		} 
	} 
	
	function doNothing(e) 
	{ 
		var i = 0.4; 
		picture1.width=(170 * i); 
		picture1.height=(125 * i); 
		picture2.width=(170 * i); 
		picture2.height=(125 * i); 
		picture3.width=(170 * i); 
		picture3.height=(125 * i); 
		picture4.width=(170 * i); 
		picture4.height=(125 * i); 
		picture5.width=(170 * i); 
		picture5.height=(125 * i); 
	} 
	
	function ignoreMouse() 
	{ 
		if (document.layers) 
		{
			// Netscape 
			document.captureEvents(Event.MOUSEMOVE); 
			document.onmousemove = doNothing; 
		} 
		else if (document.all) 
		{ 
			// Internet Explorer 
			document.onmousemove = doNothing; 
		} 
		else if (document.getElementById) { 
			// Netcsape 6 
			document.onmousemove = doNothing; 
		} 
	}
	
	function output(message) 
	{ 
		obj = eval("text"); 
		obj.innerHTML = "<font size=\"6\">"+message+"</font>"; 
	} 