// JavaScript Document
function marcardiv(color) {
document.getElementById(color).style.backgroundColor="#ffffff";
document.getElementById('16').style.backgroundColor="#2f3a77";
document.getElementById('17').style.backgroundColor="#2f3a77";
document.getElementById('18').style.backgroundColor="#2f3a77";
document.getElementById('15').style.backgroundColor="#2f3a77";
document.getElementById('23').style.backgroundColor="#2f3a77";
}
function marcardiv1(color1) {
document.getElementById(color1).style.backgroundColor="#ffffff";
document.getElementById('15').style.backgroundColor="#2f3a77";
document.getElementById('17').style.backgroundColor="#2f3a77";
document.getElementById('18').style.backgroundColor="#2f3a77";
document.getElementById('22').style.backgroundColor="#2f3a77";
document.getElementById('23').style.backgroundColor="#2f3a77";
}
function marcardiv2(color2) {
document.getElementById(color2).style.backgroundColor="#ffffff";
document.getElementById('15').style.backgroundColor="#2f3a77";
document.getElementById('16').style.backgroundColor="#2f3a77";
document.getElementById('18').style.backgroundColor="#2f3a77";
document.getElementById('22').style.backgroundColor="#2f3a77";
document.getElementById('23').style.backgroundColor="#2f3a77";
}
function marcardiv3(color3) {
document.getElementById(color3).style.backgroundColor="#ffffff";
document.getElementById('15').style.backgroundColor="#2f3a77";
document.getElementById('16').style.backgroundColor="#2f3a77";
document.getElementById('17').style.backgroundColor="#2f3a77";
document.getElementById('22').style.backgroundColor="#2f3a77";
document.getElementById('23').style.backgroundColor="#2f3a77";
}
function marcardiv4(color4) {
document.getElementById(color4).style.backgroundColor="#ffffff";
document.getElementById('15').style.backgroundColor="#2f3a77";
document.getElementById('16').style.backgroundColor="#2f3a77";
document.getElementById('17').style.backgroundColor="#2f3a77";
document.getElementById('18').style.backgroundColor="#2f3a77";
document.getElementById('22').style.backgroundColor="#2f3a77";
}

function ilink(){
//	location.reload();
seVePaginaInicio(1,0,375,338,"",1)
llenarflash('principal','principall','principal.swf',830,340);
}
//menu de lateral en intro

function ocultardiv(valor1) {
div = document.getElementById(valor1);
div.style.background="";
}
function mostrardiv(valor) {
div = document.getElementById(valor);
div.style.background= 'url(franjamenu.png)';
}
//fin del menu en la intro
function fpilcds(){
seVePagina(1,0,375,430,'infraestructura/pilcds.html',4);
JavascriptPopup.changeText('Conexión de Internet con Fibra Optica-2');
}
function fplanesc(){
seVePagina(1,0,375,515,'planesc.html',5);
Bottom(3);
}
function fplanesi(){
seVePagina(1,0,375,500,'planesi.html',6);
Bottom(4);
}
function fsemicds(){
seVePagina(1,0,375,377,'semicds.html',7);
Bottom(5);
}
function frrhh(){
seVePagina(1,0,375,510,'http://190.57.71.76/plaboral/ingresar.html',16);	
}
function fbecas(){
seVePagina(1,0,375,2750,'http://190.57.71.76/pag_becas',20);	
}
function portal(){
seVePagina(1,0,375,600,'http://www.computerdatasystems.edu.sv/tabAccordion/login.php',17);	
}
function fprecios(){
seVePagina(1,0,375,500,'precios.html',13);
}
function fherra(){
seVePagina(1,0,375,900,'infraestructura/herramientas.html',12);
}
function fmascota(){
seVePagina(1,0,375,520,'infraestructura/mascota.html',14);
}
function fencuesta(){
seVePagina(1,0,375,600,'encuesta/principal.php',18);
}
function frequisitos(){
seVePagina(1,0,375,700,'http://www.computerdatasystems.edu.sv/dataind/requisitos.html',19);
}
function finfra(){
seVePagina(1,0,375,450,'infraestructura/infracds.html',3);
marcardiv1(16);
}
function fblog(){
					try {
						seVePagina(1,0,375,3300,'http://190.57.71.76/blogs/Blogs.php',15);	
						}
					catch(err)
						{
						}
}
function pagoweb(){
	window.open('http://www.computerdatasystems.edu.sv/po/pagosonline','_blank');
	//seVePagina(1,0,375,920,'po/pagosonline/index.php',21);	
}

var id,pause=0,position=0;
function scor() {
				try{
				var i,k,msg=" 28 a\u00f1os Creando Oportunidades.     PROXIMO INICIO DE CLASES:  Semanal Mar. 02, Sabatino Mar. 03, Dominical Mar. 04       Matricula ABIERTA!!!   ";
				k=(200/msg.length)+1;
				for(i=0;i<=k;i++) msg+=" "+msg;
				document.getElementById("te").value=msg.substring(position,position+200);
				if(position++==200) position=0;
				id=setTimeout("scor()",250); 
				}
			catch(err)
				{
				}
}
