function ei_raizDelSitio() {
//	return "http://localhost/cpcesla/";
	return "http://www.cpcesla.org.ar/";
}

function ei_margenMenuHM() {
	return screen.availWidth - 549; //521
}

function ei_flashOimagen(swf, img, ancho, alto, irA, txtAlt){
 if (ei_flashInstalado){
  document.write('<OBJECT WIDTH="' + ancho + '" HEIGHT="' + alto + '">');
  document.write('  <PARAM NAME="movie" VALUE="' + swf + '"> ');
  document.write('  <PARAM NAME="quality" VALUE="high"> ');
  document.write('<EMBED src="' + swf + '" WIDTH="' + ancho + '" HEIGHT="' + alto + '" QUALITY="high" TYPE="application/x-shockwave-flash"></EMBED>');
  document.write('</OBJECT>');
 } else {
  if (irA!='') document.write('<a href="' + irA + '">');
  document.write('<img src="' + img + '" width="' + ancho + '" height="' + alto + '" alt="' + txtAlt + '" border="0"');
  if (irA!='') document.write('</a>');
 }
}

function ei_autoMaximizar(){
 top.window.moveTo(0,0);
 if (document.all) {
  top.window.resizeTo(screen.availWidth,screen.availHeight);
 }
 else if (document.layers||document.getElementById) {
  if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
   top.window.outerHeight = screen.availHeight;
   top.window.outerWidth = screen.availWidth;
  }
 }
}

function ei_detectarNavegador() {
 d=document;
 this.agt=navigator.userAgent.toLowerCase();
 this.major = parseInt(navigator.appVersion);
 this.dom=(d.getElementById)?1:0; // true for ie6, ns6
 this.ns=(d.layers);
 this.ns4up=(this.ns && this.major >=4);
 this.ns6=(this.dom&&navigator.appName=="Netscape");
 this.op=this.agt.indexOf('opera')!=-1;
 this.ie=(d.all);
 this.ie4=(d.all&&!this.dom)?1:0;
 this.ie4up=(this.ie && this.major >= 4);
 this.ie5=(d.all&&this.dom);
 this.win=((this.agt.indexOf("win")!=-1) || (this.agt.indexOf("16bit")!=-1));
 this.mac=(this.agt.indexOf("mac")!=-1);
}

var navegador = new ei_detectarNavegador();


function ei_fechaActual() {

	var now = new Date()
	var dia = now.getDay()
	var mes = now.getMonth()
	var fecha

	if(dia==0){
	 fecha="Domingo";
	}else if(dia==1){
	 fecha="Lunes";
	}else if(dia==2){
	 fecha="Martes";
	}else if(dia==3){
	 fecha="Miércoles";
	}else if(dia==4){
	 fecha="Jueves";
	}else if(dia==5){
	 fecha="Viernes";
	}else{
	 fecha="Sábado";
	}

fecha = fecha + " " + now.getDate() + " de "

	if(mes==0){
	 fecha=fecha + "Enero"
	}else if(mes==1){
	 fecha=fecha + "Febrero"
	}else if(mes==2){
	 fecha=fecha + "Marzo"
	}else if(mes==3){
	 fecha=fecha + "Abril"
	}else if(mes==4){
	 fecha=fecha + "Mayo"
	}else if(mes==5){
	 fecha=fecha + "Junio"
	}else if(mes==6){
	 fecha=fecha + "Julio"
	}else if(mes==7){
	 fecha=fecha + "Agosto"
	}else if(mes==8){
	 fecha=fecha + "Septiembre"
	}else if(mes==9){
	 fecha=fecha + "Octubre"
	}else if(mes==10){
	 fecha=fecha + "Noviembre"
	}else{
	 fecha=fecha + "Diciembre"
	}

fecha = fecha + " de " + now.getYear()

return fecha;
}

function ei_fechaPagina() {
	fecha = document.lastModified
    fecha=fecha.substring(0,fecha.length-9);
	return fecha
}

