//<!===== script de Personalizar =========================================================>
<!--============ Parametros =====================-->
function getParametro (parametro) {
	var arrPars;
	var arrParActual;
	var valor="";
	var cadPars = location.search.substring(1,location.search.length);
	//alert("Parametros:" + cadPars);

	arrPars = cadPars.split("&");
	for (i=0; i<arrPars.length; i++) {
		arrParActual = arrPars[i].split("=");
		//alert("Parametro " + (i+1) + ":"  + arrParActual[0] + "=" + arrParActual[1]);
		if (arrParActual[0]==parametro) {
			valor=arrParActual[1];
			//alert("[" + parametro + "=" + valor + "]");
			break;
		};
  	};
	//alert("[" + parametro + "=" + valor + "]");
	return unescape(valor);
};

//alert("Parametros: " + location.search);
//alert("Valor de hola: " + getParametro("hola"));
<!--============ Fin: Parametros =====================-->

var img=getParametro("img");
var url=getParametro("url");
var fon=getParametro("fon");

//<!===== script de Body  ======================================================>

function body() {
   var fondo="";
   if (fon!="")
	fondo="BACKGROUND='http://" + fon + "'";
   //alert(fondo);
   document.write("<BODY BGCOLOR=white " + fondo + " leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");

};


//<!===== script de Banner  ======================================================>

function banner() {
   if (img!="")
   {
	document.write("<br><center><table border=0 width=580><tr><td nowrap><center>");
        if (url=="")
	{
		document.write("<FONT SIZE=-1>Ofrecido por...</FONT>");
		document.write("<IMG SRC='http://" + img + "' BORDER=0 height=50 ALIGN=top>");
	}
	else
	{
		document.write("<A HREF='http://" + url + "'>");
		document.write("<FONT SIZE=-1>Ofrecido por...</FONT>");
		document.write("<IMG SRC='http://" + img + "' BORDER=1  height=50 ALIGN=top alt='Ofrecido por...'></A>");
	};
	document.write("</center></td></tr></table></center>");
   }
};

//<!===== script de mostrar divisiones =========================================================>



function activarPestana(p) {

   //--- Desactiva todas ---
   p0.className='off';
   p1.className='off';
   p2.className='off';
   p3.className='off';
   
   //--- Activa pestana p ---
   p.className='on';
   
   //--- Muestra division d ---   
   mostrarDivision("d" + p.id.substr(1));
};

function mostrarDivision(d) {
  
  document.all['d0'].style.display='none';
  document.all['d1'].style.display='none';
  document.all['d2'].style.display='none';
  document.all['d3'].style.display='none';

  document.all[d].style.display='block';

};

