<!--

function sobre(src,Color) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = Color;}}
function fuera(src,Color2) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = Color2;}}
function pulsar(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();}}

function BeginMenu(ancho) {
 document.write('<table width="'+ancho+'" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">');
}

function ItemMenu(nombre, url, target, label){
 document.write('<tr><td onClick="pulsar(this)" onMouseOut="fuera(this,');
 document.write("'#006666'");
 document.write(');" onMouseOver="sobre(this,');
 document.write("'#800000'");
 document.write(');" bgcolor="#006666"><a class="menu" href="');
 document.write(url+'"');
 if (target == "_blank") { document.write('target="'+target+'"'); }
 document.write('><font face="Arial" size="2" color="#FFFFFF">');
 if (label != "") { document.write('<acronym title="'+label+'">'); }
 document.write(nombre);
 if (label != "") { document.write('</acronym>'); }
 document.write('</font></a></td></tr>');
}

function EndMenu(){
 document.write('</table>');
}


<!-- prov -->

function xBeginMenu(ancho) {
 document.write('<table width="'+ancho+'" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">');
}

function xItemMenu(nombre, url, target, label){
 document.write('<tr><td onClick="pulsar(this)" onMouseOut="fuera(this,');
 document.write("'#000000'");
 document.write(');" onMouseOver="sobre(this,');
 document.write("'#800000'");
 document.write(');" bgcolor="#000000"><a class="menu" href="');
 document.write(url+'"');
 if (target == "_blank") { document.write('target="'+target+'"'); }
 document.write('><font face="Arial" size="2" color="#FFFFFF">');
 if (label != "") { document.write('<acronym title="'+label+'">'); }
 document.write(nombre);
 if (label != "") { document.write('</acronym>'); }
 document.write('</font></a></td></tr>');
}

function xEndMenu(){
 document.write('</table>');
}

<!-- prov -->


function BeginBarra(titulo) {
 if (! titulo) {titulo = '&nbsp;';}
 document.write('<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000"><tr>');
 document.write('<td valign="bottom" bgcolor="#003366"><font face="Arial" size="1" color="#FFFFFF">'+titulo+'</font></td>');

}

function ItemBarra(nombre, url, target, anchocelda, img_url, img_width, img_height, label){
 document.write('<td onClick="pulsar(this)" onMouseOut="fuera(this,');
 document.write("'#003366'");
 document.write(');" onMouseOver="sobre(this,');
 document.write("'#800000'");
 document.write(');" bgcolor="#003366" width="'+anchocelda+'"><div align="center"><a class="menu" href="');
 document.write(url+'"');
 if (target == "_blank") { document.write('target="'+target+'"'); }
 document.write('><font face="Arial" size="2" color="#FFFFFF">');

 if (label != "") { document.write('<acronym title="'+label+'">'); }
 if (img_url != "") { document.write('<img src="'+img_url+'" width="'+img_width+'" height="'+img_height+'" border="0">'); }
 document.write(nombre);
 if (label != "") { document.write('</acronym>'); }
 document.write('</font></a></div></td>');
}

function EndBarra(){
 document.write('</tr></table>');
}

function newWindow(){
	catWindow=window.open('http://www.diocesismalaga.es/aviso_legal.php','catwin','width=370,height=250,scrollbars=yes')

}

function newWindow2(){
	catWindow=window.open('http://www.diocesismalaga.es/p_privacidad.php','catwin','width=370,height=250,scrollbars=yes')

}

function newxWindow(){
	catWindow=window.open('../chat/chat.php','catwin','width=320,height=280,scrollbars=yes')

}

function loadradio(fichero){
	catWindow=window.open(fichero,'catwin','width=400,height=300,scrollbars=no')

}

function loadradio1(){
	catWindow=window.open('/modulos/prensa/radiold.php','catwin','width=400,height=300,scrollbars=no')

}

function loadtv(prg){
	catWindow=window.open('/modulos/prensa/tvld.php?prog='+prg,'catwin','width=350,height=350,scrollbars=no')

}


function loadmail(mail){
	catWindow=window.open('../meil.php?email='+mail,'catwin','width=400,height=400,scrollbars=no')

}

function loadEnc(x_voto){
	catWindow=window.open('../encuestas/enc_cont.php?voto='+x_voto,'catwin','width=400,height=300,scrollbars=no')

         
}



function msover1(img,ref) {
   document.images[img].src = ref; 
}

function msout1(img,ref) { 
  document.images[img].src = ref; 
}







{
function create() {
	this.width = ''
	this.height = ''
	this.src = ''
	this.href = ''
	this.border = ''
	this.mouseover = ''
}


function random(n)  {
	var js_mult1=3141
	var js_mult2=5821
	var js_m1=100000000
	var js_m2=10000
	var js_iseed=0
	var js_iseed1=0
	var js_iseed2=0

	if (js_iseed == 0)  {
		now = new Date()
		js_iseed = now.getHours() + now.getMinutes() * 60 + now.getSeconds() * 3600
	}

	js_iseed1 = js_iseed / js_m2
	js_iseed2 = js_iseed % js_m2
	var tmp = (((js_iseed2 * js_mult1 + js_iseed1 * js_mult2) % js_m2) * js_m2 + (js_iseed2 *
js_mult2)) % js_m1
	js_iseed = (tmp + 1) % js_m1
	return (Math.floor((js_iseed/js_m1) * n))
}

var numberOfAds = 3     //number or ads you want to display

ads = new Array()
for(var i=1; i<=numberOfAds; i++) { ads[i] = new create() }


ads[1].width = "430"
ads[1].height = "75"
ads[1].src = "/seguro/templos/banners/banner0.gif"
ads[1].href = "http://www.diocesismalaga.es/pondetuparte"
ads[1].border = "0"
ads[1].mouseover = "Si formas parte... pon de tu parte"

/*
ads[2].width = "430"
ads[2].height = "75"
ads[2].src = "/banners/ppd0405.gif"
ads[2].href = "http://www.diocesismalaga.es/ppd/ppd0405.php"
ads[2].border = "0"
ads[2].mouseover = "Plan Pastoral 2004-2005"
*/


var n = random(numberOfAds)
n = (n==0) ? n+1 : n
n = (n > numberOfAds) ? n-numberOfAds : n

var image = ads[n]
var ad = ""
ad += '<a href="' + image.href + '" \n'
ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
ad += 'onMouseOut="self.status=\'\'"> \n'
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border
ad += '\n></a>'
// -- End Hiding Here -->

}


function uno(src,color_entrada) { 
    src.bgColor=color_entrada;src.style.cursor="hand"; 
} 
function dos(src,color_default) { 
    src.bgColor=color_default;src.style.cursor="default"; 
} 


function checkEmail(email)
{
if(email.length > 0)
   {
   if (email.indexOf(' ') >= 0)
      alert("El e-mail aparenta no ser válido, no podremos avisarte cuando la imagen esté subida");
   else if (email.indexOf('@') == -1)
      alert("El e-mail aparenta no ser válido, no podremos avisarte cuando la imagen esté subida");
   }
}

-->