/*nifty corners layout*/

if(document.layers) {NAV=1;}
else if(document.all) {NAV=2;}
else {NAV=0;}
var OX,OY,OZ;
var C;
var PXX=0,PYY=1,PZZ=2;

window.onload=function(){
Nifty("div#menu a","small transparent top");
Nifty("ul#intro li","same-height");
Nifty("div.date");
Nifty("div#content,div#side","same-height");
Nifty("div.comments div");
Nifty("div#footer");
Nifty("div#container","bottom");
Nifty("div#nav2");
}

function imprimirPagina() {
  if (window.print)
    window.print();
  else
    alert("Lo siento, pero a tu navegador no se le puede ordenar imprimir" +
      " desde la web. Actualizate o hazlo desde los menús");
}

function desplegarContraer(cual,desde) {
	var elElemento=document.getElementById(cual);
	if(elElemento.className == 'elementoVisible') {
		elElemento.className = 'elementoOculto';
		desde.className = 'linkContraido';
  } else {
			elElemento.className = 'elementoVisible';
			desde.className = 'linkExpandido';
}}

function A(){
OX=10;
OY=10;
OZ=1;
C=document.getElementById('c').style;
C.top=OX;
C.left=OY;
C.zIndex=OZ;
}

function B(){
C.left=PS(PXX)+OX;
C.top=PS(PYY)+OY;
C.zIndex=PS(PZZ)+OZ;
return false;
}

function PS(p){
var v=0;
switch(p) {
 case PXX: {switch(NAV) {
 case 0: {v=window.pageXOffset;} break;
 case 1: {v=document.documentElement.scrollLeft;} break;
 case 2: {v=document.body.scrollLeft;} break;
 default: return 0;
 } } break;
 case PYY: {switch(NAV) {
 case 0: {v=window.pageYOffset;} break;
 case 1: {v=document.documentElement.scrollTop;} break;
 case 2: {v=document.body.scrollTop;} break;
 default: return 0;
 } } break;
 case PZZ: {return 1;} break;
 default: return 0;
 }
return v;
}

function VecRota1(){
n=0;
this[n++]="clientes/cemi.png";
this[n++]="clientes/cemi2.png";
this[n++]="clientes/botanico.png";
this[n++]="clientes/omau.png"
this[n++]="clientes/teatrocer.png"
this[n++]="clientes/ondaazul.png"
this.N=n;
}

function VecRota2(){
n=0;
this[n++]="clientes/sanmiguel.png";
this[n++]="clientes/cibercaixa.png";
this[n++]="clientes/system.png"
this[n++]="clientes/aertec.png"
this[n++]="clientes/airbusm.png"
this.N=n;
}

function VecRota3(){
n=0;
this[n++]="clientes/pre.png";
this[n++]="clientes/zoco.png";
this[n++]="clientes/ruavieja.png"
this[n++]="clientes/palacevega.png"
this[n++]="clientes/aena.png"
this.N=n;
}
