function websAyto(){
	document.write("<select name='sitios' onChange='selectpage1(this.form)'>");
    document.write("<option selected>Webs del Ayuntamiento:</option>");
    document.write("<option value='http://www.guadalajara.gob.mx/'>Ayuntamiento de Guadalajara</option>");
    document.write("<option value='http://catastro.guadalajara.gob.mx/'>Catastro</option>");
    document.write("<option value='http://obraspublicas.guadalajara.gob.mx/'>Obras P&uacute;blicas</option>");
    document.write("<option value='http://seguridadPublica.guadalajara.gob.mx/'>Seguridad P&uacute;blica</option>");
    document.write("<option value='http://seguridadPublica.guadalajara.gob.mx/guardabosques/'>Guardabosques</option>");
    document.write("<option value='http://bomberos.guadalajara.gob.mx/'>Bomberos</option>");
    document.write("<option value='http://www.fomentodeportivo.gob.mx/'>Fomento Deportivo</option>");

    document.write("<option>===============</option>");
    document.write("<option value='http://planesparciales.guadalajara.gob.mx/'>Planes parciales</option>");
    document.write("<option>===============</option>");
    document.write("<option value='http://vive.guadalajara.gob.mx'>Vive Guadalajara</option>");
    document.write("<option value='http://globo.guadalajara.gob.mx/'>Globo, museo del ni&ntilde;o</option>");
    document.write("<option value='http://www.guadalajara.gob.mx/dependencias/museopaleontologia/index.html'>Museo Paleontolog&iacute;a</option>");
    document.write("<option value='http://www.maraton.com.mx/'>Marat&oacute;n Internacional</option>");
    document.write("</select>");
}


//Esta funcion permite direccionar a dos frame en un solo click
function loadFrames(frame1,page1,frame2,page2) {
   eval("parent."+frame1+".location='"+page1+"'");
   eval("parent."+frame2+".location='"+page2+"'");
}
function selectpage1(form) {
	var formindex=form.sitios.selectedIndex;
    if(formindex > 0){
	   remote = window.open(form.sitios.options[formindex].value,'Guadalajara','scrollbars=yes,width=800,height=600,toolbar=yes,directories=yes,menubar=yes,status=yes,resize=yes');
       if (remote.opener == null) remote.opener = window;
       remote.opener.name = "opener";
    }
}

//Funciones para correr el script de noticias
///No need to edit below this line/////////////////
var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0
if (DOM2)
	faderdelay=2000

//function to change content
function changecontent(){
	if (index>=fcontent.length)
		index=0
	if (DOM2){
		document.getElementById("fscroller").style.color="rgb(255,255,255)"
		document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
		colorfade()
	}
	else if (ie4)
		document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
	else if (ns4){
		document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
		document.fscrollerns.document.fscrollerns_sub.document.close()
	}
	index++
	setTimeout("changecontent()",delay+faderdelay)
}

function colorfade() {	         	// 20 frames fading process
	if(frame>0) {	
		hex-=12; // increase color value
		document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
		frame--;
		setTimeout("colorfade()",20);	
	}
	else{
		document.getElementById("fscroller").style.color="rgb(0,0,0)";
		frame=20;
		hex=255
	}   
}

//function to change content
var DOM21=document.getElementById
var faderdelay1=0
var index1=0
if (DOM21)
	faderdelay1=2000

function changeevento(){
	if (index1>=evento.length)
		index1=0
	if (DOM21){
		document.getElementById("fscroller1").style.color="rgb(255,255,255)"
		document.getElementById("fscroller1").innerHTML=begintag1+evento[index1]+closetag1
		colorevento()
	}
	else if (ie4)
		document.all.fscroller1.innerHTML=begintag1+evento[index1]+closetag1
	else if (ns4){
		document.fscrollerns1.document.fscrollerns_sub1.document.write(begintag1+evento[index1]+closetag1)
		document.fscrollerns1.document.fscrollerns_sub1.document.close()
	}
	index1++
	setTimeout("changeevento()",delay1+faderdelay1)
}
function colorevento() {	         	// 20 frames fading process
	if(frame1>0) {	
		hex1-=12; // increase color value
		document.getElementById("fscroller1").style.color="rgb("+hex1+","+hex1+","+hex1+")"; // Set color value.
		frame1--;
		setTimeout("colorevento()",20);	
	}
	else{
		document.getElementById("fscroller1").style.color="rgb(0,0,0)";
		frame1=20;
		hex1=255
	}   
}
