ayto="<a href='http://www.zaragoza.es/ciudad/ayto/' accesskey='3' class='exte'>El Ayuntamiento<span class='inv'>: </span><span class='oculto'>El Alcalde, Organizaci&oacute;n Municipal, Normativa, Tabl&oacute;n Municipal, Polic&iacute;a Zaragoza, Bomberos y Protección Civil, Ayuntamiento en Casa, Hacienda, Gesti&oacute;n Municipal, Archivo, Biblioteca, Hemeroteca, Publicaciones, Noticias, Oferta de Empleo, Calidad.</span></a>";
ciudad="<a href='http://www.zaragoza.es/ciudad/' accesskey='4' class='exte'>La Ciudad<span class='inv'>: </span><span class='oculto'> Consumo, Como Moverse, Centros Municipales, Deporte, Educación, Bibliotecas, Medio Ambiente, Museos y Exposiciones, Idezar, Proyectos e Infraestructuras, Salud Pública, Servicios y Via Pública, Urbanismo, Vistas de la Ciudad, Zaragoza Internacional, Sin barreras</span></a>";
gente="<a href='http://www.zaragoza.es/ciudad/sectores/' accesskey='5' class='exte'>Para la Gente<span class='inv'>: </span><span class='oculto'>Acci&oacute;n Social, Casa de las Culturas, Juventud, Mujer, Participación Ciudadana, Personas Mayores, Centros Municipales, Tecnología y Ciudadanía</span></a>";
cultura="<a href='http://www.zaragoza.es/ciudad/cultura/' accesskey='8' class='exte'>Cultura<span class='inv'>: </span><span class='oculto'>Arte Público, Museos y Exposiciones,Publicaciones Municipales, Zaragoza Cultural</span></a>";

function carga(){
if (document.getElementById("botant")){
  document.getElementById("botant").innerHTML='<input type="button" id="anterior" value="Anterior" name="panterior" onclick="javascript:history.go(-1);">'+document.getElementById("botant").innerHTML;
}
var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") && anchor.getAttribute("class") == "rs_skip"){
	anchor.onclick=new Function('leer(\'' + anchor + '\');return false;');
   }
  if((anchor.className) == "pdf"){
    anchor.onclick=function(){dcsMultiTrack('DCS.dcsuri','"+anchor.getAttribute("href")+"', 'WT.ti', '"+anchor.innerHTML+"');}
  } 
if((anchor.className) == "popup"){ 
anchor.onclick = function() {
        popUp(this.getAttribute("href"));
        return false;
      }

    } 
}

if(document.all){			
	eval("el_ayto.innerHTML=ayto");
	eval("la_ciudad.innerHTML=ciudad");
	eval("la_gente.innerHTML=gente");
	eval("la_cultura.innerHTML=cultura");
}else if(document.layers){
	;
}else{
	document.getElementById("el_ayto").innerHTML=ayto;
	document.getElementById("la_ciudad").innerHTML=ciudad;
	document.getElementById("la_gente").innerHTML=gente;
	document.getElementById("la_cultura").innerHTML=cultura;
}
var url = 'http://grupoweb.upf.es/~vpascual/zaragoza_js_log/script.php';
url += '?url=' + encodeURIComponent(document.URL); 
url += '&ref=' + encodeURIComponent(document.referrer);
if(document.all) {
url = eval("copy.innerHTML") + "<img class=\"inv\" src=\"" + url + "\" width=\"10\" height=\"10\">";
eval("copy.innerHTML=url");
} else {
document.getElementById("copy").innerHTML=document.getElementById("copy").innerHTML + "<img class=\"inv\" src=\"" + url + "\">"; 
}
}
function popUp(winURL) {
  window.open(winURL, "Video", "width=355,height=290,top=400,left=700,scrollbar=no,toolbar=no");
}
function leer(element) {
var rs=window.open(element, 'readspeaker', 'height=120, width=310, top=0, left=0, screenX=0, screenY=0, innerHeight=110, innerWidth=350');
rs.focus();
}

window.onload = carga;

