
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
///////////////////////////////////
function clickIE4(){
if (event.button==2){
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")
// --> 


	var utime = window.setTimeout("",1000);

function WriteSwf(repImage,repWidth,repHeight){
	
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+repWidth+"\" height=\""+repHeight+"\">");
    document.write("<param name=\"movie\" value=\""+repImage+"\">");
    document.write("<param name=\"quality\" value=\"high\">");
    document.write("<param name=wmode value=transparent>");
    document.write("<embed src=\""+repImage+"\" wmode=\"transparent\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+repWidth+"\" height=\""+repHeight+"\"></embed>");
   document.write("</object>");
}

function ocultar11(td)
{
//alert(document.url);
if (td=="1")
{
document.getElementById("TD1").style.display="";
document.getElementById("TD2").style.display="none";
document.getElementById("TD3").style.display="none";
document.getElementById("TD11").style.display="";
document.getElementById("TD22").style.display="none";
document.getElementById("TD33").style.display="none";
document.getElementById("voz").setAttribute("background","/recursos/images/r_05.jpg");
document.getElementById("datos").setAttribute("background","/recursos/images/q_06.jpg");
document.getElementById("mensajes").setAttribute("background","/recursos/images/p_07.jpg");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMegas").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMensajes").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo2").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo3").selectedIndex=0;

document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMegas").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMensajes").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo2").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo3").removeAttribute("disabled");
document.getElementById("_ctl0:Contenido:NoutControl1:_ctl3:rbtConsulta").removeAttribute("disabled");
document.getElementById("_ctl0:Contenido:NoutControl1:_ctl3:TextBox1").value ="-1";	
}
if (td=="2")
{
document.getElementById("TD11").style.display="none";
document.getElementById("TD22").style.display="";
document.getElementById("TD33").style.display="none";

document.getElementById("TD1").style.display="none";
document.getElementById("TD2").style.display="";
document.getElementById("TD3").style.display="none";
document.getElementById("voz").setAttribute("background","/recursos/images/p_05.jpg");
document.getElementById("datos").setAttribute("background","/recursos/images/p_06.jpg");
document.getElementById("mensajes").setAttribute("background","/recursos/images/p_07.jpg");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMinutos").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMensajes").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo1").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo3").selectedIndex=0;

document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMinutos").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMensajes").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo1").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo3").removeAttribute("disabled");
document.getElementById("_ctl0:Contenido:NoutControl1:_ctl3:rbtConsulta").removeAttribute("disabled");
document.getElementById("_ctl0:Contenido:NoutControl1:_ctl3:TextBox1").value ="17";
}
if (td=="3")

{
document.getElementById("mensajes").setAttribute("background","/recursos/images/q_07.jpg");
document.getElementById("TD11").style.display="none";
document.getElementById("TD22").style.display="none";
document.getElementById("TD33").style.display="";

document.getElementById("TD1").style.display="none";
document.getElementById("TD2").style.display="none";
document.getElementById("TD3").style.display="";
document.getElementById("voz").setAttribute("background","/recursos/images/p_05.jpg");
document.getElementById("datos").setAttribute("background","/recursos/images/q_06.jpg");

document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMegas").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMinutos").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo2").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo1").selectedIndex=0;
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMegas").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstMinutos").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo2").removeAttribute("disabled");
document.getElementById("_ctl0_Contenido_NoutControl1__ctl3_lstCargoFijo1").removeAttribute("disabled");
document.getElementById("_ctl0:Contenido:NoutControl1:_ctl3:rbtConsulta").removeAttribute("disabled");
document.getElementById("_ctl0:Contenido:NoutControl1:_ctl3:TextBox1").value ="3";

}

}

function show2(){
if (!document.all)
return
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="am" 
if (hours>12){
dn="pm"
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var ctime=hours+":"+minutes+":"+seconds+""+dn
tick2.innerHTML="<b class='hora'> "+ctime+"</b>"
setTimeout("show2()",1000)
dows = new Array("Domingo","Lunes","Martes","Mi&eacutercoles","Jueves","Viernes","Sábado");
months = new Array("Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic");
now = new Date();
dow = now.getDay();
d = now.getDate();
m = now.getMonth();
h = now.getTime();
y = now.getYear();
tick1.innerHTML="<b class='hora'>"+dows[dow]+" "+d+" "+months[m]+" "+y;
}

function WriteMov(repImage,repWidth,repHeight,img){
	document.write("<OBJECT ID=\"MediaPlayer\" WIDTH="+repWidth+" HEIGHT="+repHeight+" ");
	document.write("CLASSID=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"");
	document.write("STANDBY=\"Loading Windows Media Player components...\" ");
	document.write("TYPE=\"application/x-oleobject\">");
	document.write("<PARAM NAME=\"FileName\" VALUE=\""+img+"\">");
	document.write("<PARAM NAME=\"autoStart\" VALUE=\"true\">");
	document.write("<PARAM NAME=\"showControls\" VALUE=\"false\">");
	document.write("<EMBED TYPE=\"application/x-mplayer2\" SRC=\""+repImage+"\"");
	document.write("  autoStart=1");
	document.write("  showControls=0");
	document.write(" NAME=\"MediaPlayer\"");
	document.write(" WIDTH="+repWidth+"");
	document.write(" HEIGHT="+repHeight+"");
	document.write(" PLUGINSPAGE=\"http://www.microsoft.com/windows/windowsmedia/download/\">");
	document.write("</EMBED>");
	document.write("</OBJECT>");

}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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 MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function mostrar(idDiv) {	
	//ocultar("div0");
	ocultar("div1");
	ocultar("div2");
	ocultar("div3");
	ocultar("div4");
	ocultar("div5");
	ocultar("div6");
	ocultar("div7");	
	
	target = document.getElementById( idDiv );
	if(target != null)
	{		
		target.style.display = "";			
	}	
}

function ocultar(idDiv) {	
	target = document.getElementById( idDiv );			
	if(target != null)		
		target.style.display = "none";		
}

function ocultar1() {	
	utime = window.setTimeout ("document.getElementById('div1').style.display='none';document.getElementById('div2').style.display='none';document.getElementById('div3').style.display='none';document.getElementById('div4').style.display='none';document.getElementById('div5').style.display='none';", 1000);
	}
function mostrar2() {
		//alert("si");	
		var u=window.clearTimeout(utime);	
	}


function mostrarImagen(idDiv){/*
var i, j;
ocultar("defaultIma");
 for(i=1;i<8;i++)  
	for(j=1;j<20;j++) 
		ocultar("imag-"+i+"-"+j);
	target = document.getElementById( idDiv );
	if(target != null)
		target.style.display = "";
	else{
		target = document.getElementById( "defaultIma" );		
		target.style.display = "";
	}*/
}

function nada(){
	return false;
}

