			var mov1text;
			function MM_reloadPage(init) {  //reloads the window if Nav4 resized
			  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
				document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
			  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
			}
			MM_reloadPage(true);

			function MM_swapImgRestore() { //v3.0
			  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
			}
			
			function MM_preloadImages() { //v3.0
			  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
				var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
				if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
			}
			
			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;
			}
			
			function MM_swapImage() { //v3.0
			  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
			   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
			}

			function swapBackground(objName,color) {
				obj = MM_findObj(objName);
				if (obj)
					obj.style.backgroundColor=color;
			}

function GlosarioN4() {
	with (navigator) {
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
			if (innerWidth<770){
			document.layers["testlayer"].left = 561;
			}else{
			document.layers["testlayer"].left = innerWidth / 2 + 170;
			}
			setTimeout("GlosarioN4()",0);
		}	
	}
}

function changeNS(page)
{
	with (navigator) 
	if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
		document.layers["testlayer"].src=page;
	} else {
		frames['testiframe'].location.href = page;
	}
}

function swapBold(objName,boldtype) {
	obj = MM_findObj(objName);
	if (obj)
		obj.style.fontWeight=boldtype;
}
var objlink;
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		curwidth = obj.offsetWidth
		curheight = obj.offsetHeight*1.5
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop,curwidth,curheight];
}
var timer;
function HideHint(e){
	document.getElementById('hint').style.visibility="hidden";
	document.getElementById('hint').style.left=0;
	document.getElementById('hint').style.top=0;
	clearTimeout(timer);
}

function callPelicula(nameswf,texturl) {
	thisMovie(nameswf).goPelicula(texturl);
}

function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}



var mousetempX = 0;
var mousetempY = 0;

function position(){
	if (objlink){
	var pos = findPos(objlink);
	// top
	document.getElementById('hint').style.top = (mousetempY + 16) + 'px';
	// left
	document.getElementById('hint').style.left = (mousetempX + 16) + 'px';
	document.getElementById('hint').style.visibility="visible";
	objlink.onmouseout = HideHint;
	timer = setTimeout(objlink.onmouseout, 3000); 
	}
	
}

function sizetitulo(ancho,alto){
	document.getElementById('hint').style.width = ancho + "px";
	document.getElementById('hint').style.height = alto  + "px";
	position();
}


// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0;
var tempY = 0;

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
	if (document.documentElement){
	    tempX = event.clientX + document.documentElement.scrollLeft;
    	tempY = event.clientY + document.documentElement.scrollTop;
	} else {
	    tempX = event.clientX + document.body.scrollLeft;
    	tempY = event.clientY + document.body.scrollTop;
	}
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX;
    tempY = e.pageY;
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  return true
}

function valida_form(form_name){
	var form = document.forms[form_name];
	for (i=0; i < form.length; i++){
		form[i].value = form[i].value.replace(" ", "+");
	}
	form.submit();
}


/*
function openimage(ref,p){
		  URLStr = '/html/portlet/ext/gdc_articulo/image.jsp?ref='+ref+'&p='+ (p == null ? '1' : p);
                  var gdc_image_popup = Liferay.Popup({modal: true, width:640 ,height:480});
                  AjaxUtil.update(URLStr, gdc_image_popup);
}
*/
