
<!--


function fondo_default(z){
	var x=leerCook('fondo_default');
	c=x;
	if(z=='0'){
		x='default';
	}
	if(x=='default'){
		c='802B55';	
	}
	tam="1365";
	if(screen.availWidth=="1024"){
		tam="1024";
	}
	img_urlx='templates/default/images/backgrounds/'+tam+'/background_'+x+'.jpg';
	document.body.style.background=c;
	document.body.style.background="url("+img_urlx+") "+c+" repeat-x fixed top ";
	//crearCook(x);
}

function df_background(x){

	tam="1365";
	if(screen.availWidth=="1024"){
		tam="1024";
	}
	img_url='templates/default/images/backgrounds/'+tam+'/background_'+x+'.jpg';
	document.body.style.background=x;
	document.body.style.background="url("+img_url+") "+x+" repeat-x fixed top";
	crearCook(x);
	//window.location.reload();

}

function leerCook(nombre) { 
   a = document.cookie.substring(document.cookie.indexOf(nombre + '=') + nombre.length + 1,document.cookie.length); 
   if(a.indexOf(';') != -1)a = a.substring(0,a.indexOf(';')) 
   return a;  
} 

function crearCook(val){
	
	var validez = 7;
	var caduca = new Date(); 
	caduca.setTime(caduca.getTime() + (validez*24*60*60*1000));
	document.cookie="fondo_default = "+val+"; expires = "+caduca;
	

}


function high(which2)
{
theobject=which2;
highlighting=setInterval("highlightit(theobject)",50);

}
function low(which2)
{
clearInterval(highlighting);
which2.filters.alpha.opacity=70;
}
function highlightit(cur2)
{
if(cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=100
else if(window.highlighting)
clearInterval(highlighting)
}

function loadop(){
for (var i=0;i < document.sf.escritorio.length;i++)
		{
            document.sf.escritorio[i].disabled=true;
		}
}

function deshOp(){
	var x = document.sf.selectArea.selectedIndex;
    var v = document.sf.selectArea.options[x].value;
	if((v=="w")=="--"){
		v="wu";
		document.sf.selectArea.options[x].value="wu";
	}
	
	if((v=="w") || (v=="ws")){
	
        for (var i=0;i < document.sf.escritorio.length;i++)
		{
            document.sf.escritorio[i].disabled=false;
		}
		op_ver();
		
	}else{
        for (var i=0;i < document.sf.escritorio.length;i++)
		{
            document.sf.escritorio[i].disabled=true;
		}
		op_ocultar();
	}
}


function not_hidde_crond(){
intervalCRond = setInterval(not_hidde(), 3000);
}
  
function not_hidde(){
document.getElementById("NotImportantx").style.display ='none';
document.getElementById("btnsNOT").style.display ='none';
}
  
function not_show(){
document.getElementById("NotImportantx").style.display ='';
}

/*
function MOZ_not_hidde()
{
document.getElementById("NotImportant").style.visibility = "hidden";

  intervalID = setInterval(checkLOAD(), 1000);
  clearInterval(intervalID);
}
*/
function op_ocultar(){
document.getElementById("searchform").style.display ='none';
}
function op_ver(){
document.getElementById("searchform").style.display ='';
}
function ventRedir(){

	window.open('','ventAccesos','top=0,left=0,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
	
}
function validS(){
	//var x = document.sf.selectArea.selectedIndex;
	//var v = document.sf.selectArea.options[x].value;
	//if(v=="--"){
		//alert('Seleccionar nombre de Servidor');
		//return false;
	//}else{
		ventRedir()
		return true;
	document.logged.imapuser.value="";
	document.logged.pass.value="";
	//document.logged.pass.value=''
	//}
}

var num=11;
function mas(id,accion){
if(accion=="menos"){

if(num > 11){
num=num-1;
}

}else if(accion=="mas"){

if(num < 15){
num=num+1;
}
}
var size="\""+num+"px\"";

document.getElementById(id).style.fontSize = eval(size);
}

function overc(obj, pviiColor) 

{ 

	obj.style.backgroundColor=pviiColor

}
//-->
