<!--
// la propera variable -peu- cal inicialitzarla/actualitzarla tambe en el tros de PHP
peu=new Array("peuies","peuhisto","peuampa","peucentre","peuceip","peugrans","peurock","peuampaies","peuamics");
if (window == window.top) {top.location.href='http://www.sedeta.cat';}
function vpeu(n,esveu){
veure= esveu=='1' ? 'show' : 'hide';
MM_showHideLayers(peu[n],'',veure);	
}
function onsom(){
waux("images/onsomp.htm","600","500");
}
function waux( url, w, h, opcions ) { // obre finestra auxiliar
if (w==null) { w=600; h=500; opcions=null; }
if (opcions==null) opcions=", scrollbars=1,toolbar=0,resizable=1,status=1,location=0,left=50,top=10";
wfmt="width="+ w + ", height=" + h + opcions
wfaux = window.open( url, "faux", wfmt );
wfaux.focus();
}
function nouents(){
x="Contacteu amb nosaltres si sou una entitat\npropera o vinculada a  L a  S e d e t a ,";
x+="\ni interessada en apareixer en aquesta web";
alert(x);
}
function setvst(){
if (document.cookie.indexOf("sdtvst=")>-1 ) return "";
dara=new Date();
dpart=new Date(dara.getFullYear(),dara.getMonth(),dara.getDate(),dara.getHours());
fiqk=new Date(2008,11,30);
lt="-123456789XYZabcdefghijklmnopqrs"
ara=(dara.getFullYear()-2000)+lt.substr(dara.getMonth()+1,1)+lt.substr(dara.getDate(),1);
ara+= lt.substr(dara.getHours(),1)
ara+=parseInt((dara.getTime()-dpart.getTime())/5000);
document.cookie = "sdtvst=" + escape(ara)+"; expires=" + fiqk.toGMTString();
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_findObj(n, d) { //v4.0
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
setvst();
//-->
