var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var calunit=ns? "" : "px"
var __y=335;
var day=new Date();
var	id = day.getTime();
var winname="page" + id;

function initAd(){
	if(!ns && !ie && !w3) return;
	if(ie)		adDiv=eval('document.all.pageNav.style');
	else if(ns)	adDiv=eval('document.layers["pageNav"]');
	else if(w3)	adDiv=eval('document.getElementById("pageNav").style');
    showAd();
}

//Opening pop up windows without nav bar

function popUp( targeturl , w, h )
{
	var winfeatures = "resizable=0,width=" + w + ",height=" + h+ ",left=0,top=0,innerWidth=" + w+ ",innerHeight=" + h+ ",scrollbars=YES";
	var winOpen = window.open( targeturl, winname, winfeatures );
	if(winOpen != undefined){
		winOpen.focus();
	}
}

/// END 

function abajoMenuZ(){
	document.getElementById('mnuPrin').style.zIndex='2';
}
function arribaMenuZ(){
	//adDiv.visibility="hidden";
	document.getElementById('mnuPrin').style.zIndex='3';
}
function showAd(){

	if (ie){
		documentHeight =truebody().scrollTop-12;
	}	
	else if (ns){
		documentHeight=window.pageYOffset-12;
	} 
	else if (w3){
		documentHeight=window.pageYOffset-12;
	} 
	adDiv.left=3;
	if(documentHeight>__y)
		adDiv.top =(documentHeight)+calunit;
	else
		adDiv.top=__y;
	setTimeout("showAd()",500);
}

function pageSol() {
	window.location.assign("#sol");
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

onload=initAd;
onscroll = initAd;
//End-->