
function DisplayPlano()
{   
	newWindow=window.open("http://www.sabadell.net/apps/plano/pgplano.asp","Plànol","width=779,height=600,top=0,left=0,toolbar=0,location=0,status=0,menubar=0,resizable=yes, scrollbars=yes");
    newWindow.focus();
}

//Definiciò Abreviatura per idiomes.
var NomsCurtsCat="Cat",NomsCurtsCast="Cast",NomsCurtsEng="Eng",NomsCurtsFr="Fr";
//Definiciò Hint per idiomes.
var TipsCat="Català",TipsCast="Castellano",TipsEng="English",TipsFr="Française";
//Definiciò Lang per idiomes.
var LangCat="ca",LangCast="es",LangEng="en",LangFr="fr";
//Definiciò tecles drecera per idiomes.
var AccessKeyCat="4";AccessKeyCast="5";AccessKeyEng="6";AccessKeyFr="7";

//**********************************************************************************
//Funció Cabecera(): Capçalera Generica(logo de l´ajuntament, links a Portal, Correu, Mapa Web, Combo Serveis, Cercador)
//
//Parametres entrada Idiomes [OPCIONALS]: 
//					Noms_Curts :Cadena Noms Idiomes (separatas per ;)
//                  Url: Cadena Url Idiomes (separatas per ;)
//					Tips: Cadena Tips Idiomes (separatas per ;)
//					Lang: Cadena Lang Idiomes (declaració Idiomes -separatas per ; -)
//					AccessKey: Cadena Tecles Drecera (separats per ;)
//Vincular Estils:
//				   <LINK REL="STYLESHEET" TYPE="text/css" HREF="/Generic/estils/estils.css">
//Exemple Crida:
//				Cabecera("NomsCurtsCat;NomsCurtsCast","/Cat;/Esp","TipsCat;TipsCast","LangCat;LangCast","AccessKeyCat;AccessKeyCast");
//              ò
//              Cabecera()
//**********************************************************************************
function Cabecera(Noms_Curts,Url,Tips,Lang,AccessKey)
{
	document.write('<TABLE summary="Encapçalament de pàgina: enllaços a  Inici Portal, Mapa Web, Contacta, altres serveis i Cercador" BORDER="0" CELLSPACING="0" CELLPADDING="0" style="position:relative;width:778px;background-color:#1F3E5C">');
	document.write('<TR>');
	document.write('<TD><a accessKey="9" href="http://www.sabadell.net/cat/Ajuntament/" title="Ajuntament de Sabadell"><img src="/Generic/imatges/log_int_sabadell.gif" alt="Ajuntament de Sabadell" title="Ajuntament de Sabadell" style="width:131px;height:26px" border="0"></a></TD>');
	document.write('<td style="width:100px;padding:0 7 0 0;" align="right">');
    var strNoms_Curts = new String(Noms_Curts);
    var ANoms_Curts = strNoms_Curts.split(";");
    var strUrl = new String(Url);
    var AUrl = strUrl.split(";");
    var strTips = new String(Tips);
    var ATips = strTips.split(";");
    var strLang = new String(Lang);
    var ALang = strLang.split(";");
    var strAccessKey = new String(AccessKey);
    var AAccessKey = strAccessKey.split(";");
	if (Noms_Curts != undefined) 
	{
		document.write('<table summary="" cellpadding="0" cellspacing="0" border="0">');
		document.write('<tr>');
		for(j=0;j<ANoms_Curts.length;j++)
		{
  	      document.write('<td style="width:5px" class="HeadpuntCap">&nbsp;&#8226;&nbsp;</td>');
		  document.write('<td style="width:33px" align="left">');
          str='<a ';
		  if (AccessKey != undefined) str=str+'accessKey="'+eval(AAccessKey[j])+'" ';
		  str=str+'href="';
          if (Url != undefined) str=str+AUrl[j]+'" ';
          if (Tips != undefined) str=str+'title="'+eval(ATips[j])+'" ';
		  str=str+'class="HeadtextblancIdiomes"><ABBR ';
		  if (Tips != undefined) str=str+'title="'+eval(ATips[j])+'" ';
          if (Lang != undefined) str=str+'lang="'+eval(ALang[j])+'" ';
		  str=str+'>'+eval(ANoms_Curts[j])+'&nbsp;</ABBR></a>';
		  document.write(str);
		  document.write('</td>');
		}//fi_for
		 document.write('</tr>');
		 document.write('</table>');
	}
	else
    {
		 document.write('&nbsp;');
	}
	document.write('</td>');
	document.write('<td style="width:5px" align="center"><img src="/Generic/imatges/separa_recursos.gif" width="2" height="27" alt="" title=""></td>');
	document.write('<TD style="width:25px" align="center"><a accessKey="0" href="http://www.sabadell.net/cat/home" title="Inici Portal"><img src="/Generic/imatges/icon_int_home.gif" alt="Inici Portal" title="Inici Portal" width="9" height="13" border="0"></a></TD>');
	document.write('<TD style="width:25px" align="center"><a accessKey="8" href="http://www.sabadell.net/Cat/MapaWeb/" title="Mapa web"><img src="/Generic/imatges/icon_int_mapaweb.gif" alt="Mapa web" title="Mapa web" width="9" height="13" border="0"></a></TD>');
	document.write('<TD style="width:25px" align="center"><a accessKey="M" href="http://www.sabadell.net/Cat/Contacta/" title="Contacta"><img src="/Generic/imatges/icon_int_correu.gif" alt="Contacta" title="Contacta" width="9" height="13" border="0"></a></TD>');		
	document.write('<td style="width:10px" align="center"><img src="/Generic/imatges/separa_recursos.gif" width="2" height="27" alt="" title=""></td>');
	document.write('<td style="width:10px" align="center">&nbsp;</td>');
	document.write('<td style="width:170px" height="100%" valign="middle">');
	document.write('<FORM METHOD=POST ACTION="http://www.sabadell.net/Generic/serveis.asp?combo=sserveis" NAME="fservei" style="margin:0;padding:0" onsubmit="if (document.fservei.sserveis.value==\'#\') return false;">');
    document.write('    <table summary="" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
	document.write('	<tr><td style="width:132px" valign="middle">');
    document.write('        <LABEL FOR="sserveis" style="display: none;" accesskey="3">Serveis</LABEL>');
	document.write('		<select class="Headformulari" style="width:132px;background-color:#FFFFFF;margin:0;padding:0" name="sserveis" id="sserveis" title="Seleccionar Servei">');
	document.write('		    <option value="#" title="Serveis" selected>Serveis ...');
	document.write('			<option value="http://www.sabadell.net/Cat/AjuntamentAProp/paginesCat/ajtramits_cat.asp" title="L\'Ajuntament t\'escolta">L\'Ajuntament t\'escolta'); 
	document.write('			<option value="http://www.sabadell.net/L_Plano/Cat/pgplano.asp" title="Plànol de Sabadell">Plànol de Sabadell');
	document.write('			<option value="http://www.sabadell.net/Cat/sbdtelefons/" title="Telèfons de Sabadell">Telèfons de Sabadell');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/default.asp?servei=directori" title="Directori">Directori');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/default.asp?servei=agenda" title="Agenda">Agenda');
	//document.write('			<option value="http://www.sabadell.net/Cat/Sabadellavui/" title="Avui a Sabadell">Avui a Sabadell'); 
	document.write('			<option value="http://www.sabadelltreball.net/" title="Borsa de treball en línia">Borsa de treball en línia');
	document.write('			<option value="http://www.sabadell.net/Cat/Opina/" title="Opina">Opina');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/avanzada.asp?servei=notícies" title="Notícies">Notícies');
	document.write('			<option value="http://www.sabadell.net/Cat/Tramits/" title="Tràmits">Tràmits');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/default.asp?servei=enllaços" title="Enllaços">Enllaços');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/default.asp?servei=preguntes%20i%20respostes" title="Preguntes freqüents">Preguntes freqüents'); 
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/avanzada.asp?Servei=agenda&amp;nivel=Farmàcies%20de%20guàrdia&amp;codnivel=100016001" title="Farmàcies de guàrdia">Farmàcies'); 
	//document.write('			<option value="http://www.sabadell.net/Cat/AjuntamentAProp/" title="Queixes i suggeriments">Queixes i suggeriments'); 
	document.write('		</select>');
	document.write('	</td>');
	document.write('	<td style="width:10px"></td>');	
	document.write('	<td style="width:28px">');
    document.write('		<input type="image" src="/Generic/imatges/int_botocerca.gif" name="accion" alt="Anar Serveis Informació" title="Anar Serveis Informació" align="middle">');
	document.write('	</td>');
	document.write('	</table>');
	document.write('</form>');
	document.write('</td>');
	document.write('<td style="width:205px">');
	document.write('<FORM METHOD=POST ACTION="http://www.sabadell.net/L_Cerca/cat/default.asp" NAME="fcercador" style="margin:0;padding:0" onsubmit="if (this.nivel.value==\'Cercar\') this.nivel.value=\'\'">');
	document.write('	<table summary="" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
	document.write('	<tr>');
	document.write('	    <td style="width:10px">&nbsp;</td>');
	document.write('		<td style="width:2px"><img src="/Generic/imatges/separa_recursos.gif" width="2" alt="" height="27" title=""></td>');
	document.write('		<td style="width:10px">&nbsp;</td>');
	document.write('		<td style="width:145px" align="left" nowrap>');
	document.write('		    <LABEL for="nivel">');
	document.write('		    <img src="/Generic/imatges/int_iconlupa.gif" alt="Cercador" title="Cercador" width="15" height="15" border="0">&nbsp;');
	document.write('			</LABEL>');
	document.write('			<input accesskey="2" value="Cercar" type="text" name="nivel" id="nivel" size="25" maxlength="40" class="Headformulari" style="font-size:0.75em;width:120px;background-color:#FFFFFF" align="middle" alt="Texte a Cercar" title="Texte a Cercar" onfocus="this.value=\'\'" onblur="if (this.value ==\'\') {this.value=\'Cercar\'}">');
	document.write('		</td>');
	document.write('		<td style="width:10px">&nbsp;</td>');
	document.write('		<td style="width:28px" align="left">');
	document.write('			 <input type="image" src="/Generic/imatges/int_botocerca.gif" name="accion" alt="Cercar" title="Cercar" align="middle">');
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	</table>');
	document.write('	</FORM>');
	document.write('</td>');		
	document.write('</tr>');
	document.write('</table>');
}

//**********************************************************************************
//Funció CabeceraLogo(): Capçalera (logo de l´ajuntament, links a Portal,Correu,Mapa Web)
//
//Parametres entrada Idiomes [OPCIONALS]: 
//					Noms_Curts :Cadena Noms Idiomes (separatas per ;)
//                  Url: Cadena Url Idiomes (separatas per ;)
//					Tips: Cadena Tips Idiomes (separatas per ;)
//					Lang: Cadena Lang Idiomes (declaració Idiomes -separatas per ; -)
//					AccessKey: Cadena Tecles Drecera (separats per ;)
//Vincular Estils:
//				   <LINK REL="STYLESHEET" TYPE="text/css" HREF="/Generic/estils/estils.css">
//Exemple Crida:
//				CabeceraLogo("NomsCurtsCat;NomsCurtsCast","/Cat;/Esp","TipsCat;TipsCast","LangCat;LangCast","AccessKeyCat;AccessKeyCast");
//              ò
//              CabeceraLogo()
//*********************************************************************************
function CabeceraLogo(Noms_Curts,Url,Tips,Lang,AccessKey)
{
	document.write('<TABLE summary="Encapçalament de pàgina: enllaços a  Inici Portal, Mapa Web i Contacta" BORDER="0" CELLSPACING="0" CELLPADDING="0" style="position:relative;width:778px;background-color:#1F3E5C">');
	document.write('<TR>');
	document.write('<TD><a accessKey="9" href="http://www.sabadell.net/cat/Ajuntament/" title="Ajuntament de Sabadell"><img src="/Generic/imatges/log_int_sabadell.gif" alt="Ajuntament de Sabadell" title="Ajuntament de Sabadell" style="width:131px;height:26px" border="0"></a></TD>');
	document.write('<td style="width:100px;padding:0 7 0 0;" align="right">');
    var strNoms_Curts = new String(Noms_Curts);
    var ANoms_Curts = strNoms_Curts.split(";");
    var strUrl = new String(Url);
    var AUrl = strUrl.split(";");
    var strTips = new String(Tips);
    var ATips = strTips.split(";");
    var strLang = new String(Lang);
    var ALang = strLang.split(";");
    var strAccessKey = new String(AccessKey);
    var AAccessKey = strAccessKey.split(";");
	if (Noms_Curts != undefined) 
	{
		document.write('<table summary="" cellpadding="0" cellspacing="0" border="0">');
		document.write('<tr>');
		for(j=0;j<ANoms_Curts.length;j++)
		{
  	      document.write('<td style="width:5px" class="HeadpuntCap">&nbsp;&#8226;&nbsp;</td>');
		  document.write('<td style="width:33px" align="left">');
          str='<a ';
		  if (AccessKey != undefined) str=str+'accessKey="'+eval(AAccessKey[j])+'" ';
		  str=str+'href="';
          if (Url != undefined) str=str+AUrl[j]+'" ';
          if (Tips != undefined) str=str+'title="'+eval(ATips[j])+'" ';
		  str=str+'class="HeadtextblancIdiomes"><ABBR ';
		  if (Tips != undefined) str=str+'title="'+eval(ATips[j])+'" ';
          if (Lang != undefined) str=str+'lang="'+eval(ALang[j])+'" ';
		  str=str+'>'+eval(ANoms_Curts[j])+'&nbsp;</ABBR></a>';
		  document.write(str);
		  document.write('</td>');
		}//fi_for
		 document.write('</tr>');
		 document.write('</table>');
	}
	else
    {
		 document.write('&nbsp;');
	}
	document.write('</td>');
	document.write('<td style="width:5px" align="center"><img src="/Generic/imatges/separa_recursos.gif" width="2" height="27" alt="" title=""></td>');
	document.write('<TD style="width:25px" align="center"><a accessKey="0" href="http://www.sabadell.net/cat/home" title="Inici Portal"><img src="/Generic/imatges/icon_int_home.gif" alt="Inici Portal" title="Inici Portal" width="9" height="13" border="0"></a></TD>');
	document.write('<TD style="width:25px" align="center"><a accessKey="8" href="http://www.sabadell.net/Cat/MapaWeb/" title="Mapa web"><img src="/Generic/imatges/icon_int_mapaweb.gif" alt="Mapa web" title="Mapa web" width="9" height="13" border="0"></a></TD>');
	document.write('<TD style="width:25px" align="center"><a accessKey="M" href="http://www.sabadell.net/Cat/Contacta/" title="Contacta"><img src="/Generic/imatges/icon_int_correu.gif" alt="Contacta" title="Contacta" width="9" height="13" border="0"></a></TD>');		
	document.write('<td style="width:10px" align="center"><img src="/Generic/imatges/separa_recursos.gif" width="2" height="27" alt="" title=""></td>');
	document.write('<td style="padding:0 0 0 0;width:22px" width="22">&nbsp;</td>');
	document.write('</tr>');
	document.write('</table>');
}

//**********************************************************************************
//Funció CabeceraLogoServeis(): Capçalera (logo de l´ajuntament, links a Portal,Correu,Mapa Web,ComboServeis)
//
//Parametres entrada Idiomes [OPCIONALS]: 
//					Noms_Curts :Cadena Noms Idiomes (separatas per ;)
//                  Url: Cadena Url Idiomes (separatas per ;)
//					Tips: Cadena Tips Idiomes (separatas per ;)
//					Lang: Cadena Lang Idiomes (declaració Idiomes -separatas per ; -)
//					AccessKey: Cadena Tecles Drecera (separats per ;)
//Vincular Estils:
//				   <LINK REL="STYLESHEET" TYPE="text/css" HREF="/Generic/estils/estils.css">
//Exemple Crida:
//				Cabecera("NomsCurtsCat;NomsCurtsCast","/Cat;/Esp","TipsCat;TipsCast","LangCat;LangCast","AccessKeyCat;AccessKeyCast");
//              ò
//              Cabecera()
//**********************************************************************************
function CabeceraLogoServeis(Noms_Curts,Url,Tips,Lang,AccessKey)
{
	document.write('<TABLE summary="Encapçalament de pàgina: enllaços a  Inici Portal, Mapa Web, Contacta, altres serveis i Cercador" BORDER="0" CELLSPACING="0" CELLPADDING="0" style="position:relative;width:778px;background-color:#1F3E5C">');
	document.write('<TR>');
	document.write('<TD><a accessKey="9" href="http://www.sabadell.net/cat/Ajuntament/" title="Ajuntament de Sabadell"><img src="/Generic/imatges/log_int_sabadell.gif" alt="Ajuntament de Sabadell" title="Ajuntament de Sabadell" style="width:131px;height:26px" border="0"></a></TD>');
	document.write('<td style="width:100px;padding:0 7 0 0;" align="right">');
    var strNoms_Curts = new String(Noms_Curts);
    var ANoms_Curts = strNoms_Curts.split(";");
    var strUrl = new String(Url);
    var AUrl = strUrl.split(";");
    var strTips = new String(Tips);
    var ATips = strTips.split(";");
    var strLang = new String(Lang);
    var ALang = strLang.split(";");
    var strAccessKey = new String(AccessKey);
    var AAccessKey = strAccessKey.split(";");
	if (Noms_Curts != undefined) 
	{
		document.write('<table summary="" cellpadding="0" cellspacing="0" border="0">');
		document.write('<tr>');
		for(j=0;j<ANoms_Curts.length;j++)
		{
  	      document.write('<td style="width:5px" class="HeadpuntCap">&nbsp;&#8226;&nbsp;</td>');
		  document.write('<td style="width:33px" align="left">');
          str='<a ';
		  if (AccessKey != undefined) str=str+'accessKey="'+eval(AAccessKey[j])+'" ';
		  str=str+'href="';
          if (Url != undefined) str=str+AUrl[j]+'" ';
          if (Tips != undefined) str=str+'title="'+eval(ATips[j])+'" ';
		  str=str+'class="HeadtextblancIdiomes"><ABBR ';
		  if (Tips != undefined) str=str+'title="'+eval(ATips[j])+'" ';
          if (Lang != undefined) str=str+'lang="'+eval(ALang[j])+'" ';
		  str=str+'>'+eval(ANoms_Curts[j])+'&nbsp;</ABBR></a>';
		  document.write(str);
		  document.write('</td>');
		}//fi_for
		 document.write('</tr>');
		 document.write('</table>');
	}
	else
    {
		 document.write('&nbsp;');
	}
	document.write('</td>');
	document.write('<td style="width:5px" align="center"><img src="/Generic/imatges/separa_recursos.gif" width="2" height="27" alt="" title=""></td>');
	document.write('<TD style="width:25px" align="center"><a accessKey="0" href="http://www.sabadell.net/cat/home" title="Inici Portal"><img src="/Generic/imatges/icon_int_home.gif" alt="Inici Portal" title="Inici Portal" width="9" height="13" border="0"></a></TD>');
	document.write('<TD style="width:25px" align="center"><a accessKey="8" href="http://www.sabadell.net/Cat/MapaWeb/" title="Mapa web"><img src="/Generic/imatges/icon_int_mapaweb.gif" alt="Mapa web" title="Mapa web" width="9" height="13" border="0"></a></TD>');
	document.write('<TD style="width:25px" align="center"><a accessKey="M" href="http://www.sabadell.net/Cat/Contacta/" title="Contacta"><img src="/Generic/imatges/icon_int_correu.gif" alt="Contacta" title="Contacta" width="9" height="13" border="0"></a></TD>');		
	document.write('<td style="width:10px" align="center"><img src="/Generic/imatges/separa_recursos.gif" width="2" height="27" alt="" title=""></td>');
	document.write('<td style="width:10px" align="center">&nbsp;</td>');
	document.write('<td style="width:170px" height="100%" valign="middle">');
	document.write('<FORM METHOD=POST ACTION="http://www.sabadell.net/Generic/serveis.asp?combo=sserveis" NAME="fservei" style="margin:0;padding:0" onsubmit="if (document.fservei.sserveis.value==\'#\') return false;">');
    document.write('    <table summary="" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
	document.write('	<tr><td style="width:132px" valign="middle">');
    document.write('        <LABEL FOR="sserveis" style="display: none;" accesskey="3">Serveis</LABEL>');
	document.write('		<select class="Headformulari" style="width:132px;background-color:#FFFFFF;margin:0;padding:0" name="sserveis" id="sserveis" title="Seleccionar Servei">');
	document.write('		    <option value="#" title="Serveis" selected>Serveis ...');
	document.write('			<option value="http://www.sabadell.net/Cat/AjuntamentAProp/paginesCat/ajtramits_cat.asp" title="L\'Ajuntament t\'escolta">L\'Ajuntament t\'escolta'); 
	document.write('			<option value="http://www.sabadell.net/L_Plano/Cat/pgplano.asp" title="Plànol de Sabadell">Plànol de Sabadell');
	document.write('			<option value="http://www.sabadell.net/Cat/sbdtelefons/" title="Telèfons de Sabadell">Telèfons de Sabadell');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/default.asp?servei=directori" title="Directori">Directori');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/default.asp?servei=agenda" title="Agenda">Agenda');
	//document.write('			<option value="http://www.sabadell.net/Cat/Sabadellavui/" title="Avui a Sabadell">Avui a Sabadell'); 
	document.write('			<option value="http://www.sabadelltreball.net/" title="Borsa de treball en línia">Borsa de treball en línia');
	document.write('			<option value="http://www.sabadell.net/Cat/Opina/" title="Opina">Opina');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/avanzada.asp?servei=notícies" title="Notícies">Notícies');
	document.write('			<option value="http://www.sabadell.net/Cat/Tramits/" title="Tràmits">Tràmits');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/default.asp?servei=enllaços" title="Enllaços">Enllaços');
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/default.asp?servei=preguntes%20i%20respostes" title="Preguntes freqüents">Preguntes freqüents'); 
	document.write('			<option value="http://www.sabadell.net/L_Cerca/Cat/avanzada.asp?Servei=agenda&amp;nivel=Farmàcies%20de%20guàrdia&amp;codnivel=100016001" title="Farmàcies de guàrdia">Farmàcies'); 
	//document.write('			<option value="http://www.sabadell.net/Cat/AjuntamentAProp/" title="Queixes i suggeriments">Queixes i suggeriments'); 
	document.write('		</select>');
	document.write('	</td>');
	document.write('	<td style="width:10px"></td>');	
	document.write('	<td style="width:28px">');
    document.write('		<input type="image" src="/Generic/imatges/int_botocerca.gif" name="accion" alt="Anar Serveis Informació" title="Anar Serveis Informació" align="middle">');
	document.write('	</td>');
	document.write('	</table>');
	document.write('</form>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}

//**********************************************************************************
//Funció Pie(): Peu Generic
//
//Paràmetres entrada Imatge Accessibilitat [OPCIONALS]:
//					Imatge :String amb el nom de l'imatge
//                  Amplada: Amplada Imatge
//					Alcada: Alcada Imatge
//Vincular Estils:
//				   <LINK REL="STYLESHEET" TYPE="text/css" HREF="/Generic/estils/estils.css">
//Exemple crida:
//					Pie("wcag1A.gif","88","31")
//**********************************************************************************
function Pie(Imatge,Amplada,Alcada)
{
    document.write('<!-- ##### PEU -->');
	document.write('<table summary="Peu de pàgina del web. Inclou copyright, avís legal i contacta -correu-" style="background-color:#F0F5FA;width:778px;margin:3 0 0 0" cellpadding="0" cellspacing="0" border="0" class="HeadtexteCapPeu">');
	document.write('<tr>');
	if (Imatge != undefined) 
	{ 
		str='<td ';
		if (Amplada != undefined) str=str+'style="width:'+Amplada+'px"';
		str=str+'><a accesskey="1" href="http://www.sabadell.net/Cat/Portal/paginesCat/acces_cat.asp" alt="Informació sobre l\'Accesibilitat del portal sabadell.net"><img src="/Generic/Imatges/'+Imatge+'"';
		if (Amplada != undefined) str=str+' width="'+Amplada+'px"';
		if (Alcada != undefined) str=str+' height="'+Alcada+'px"';
		str=str+' alt="Informació sobre l\'Accesibilitat del portal sabadell.net" title="Informació sobre l\'Accesibilitat del portal sabadell.net" border="0"></a></td>';
		document.write(str);
    }
	document.write('   <td style="height:30px" align="center">');
	document.write('      <span class="HeadpuntPeu">&#149;</span>&nbsp;<a href="http://www.sabadell.net/Cat/Contacta/" class="Headpvincle" title="">Contacta</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="HeadpuntPeu">&#149;</span>&nbsp;<a href="http://www.sabadell.net/Cat/Avis_legal" class="Headpvincle" title="">Avís legal</a>&nbsp;&nbsp;&nbsp;&nbsp;&copy;&nbsp;2003 <a href="http://www.sabadell.net/cat/Ajuntament/" class="Headtextajuntament" Title="">Ajuntament de Sabadell</a>');
	document.write('   </td>');
	document.write('</tr>');
    document.write('</table>');
	document.write('<!-- ##### PEU -->');

	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	document.write('</script>'); //Tiene que estar en dos scripts diferentes si no, no funciona
	document.write('<script type="text/javascript">');
	document.write('var pageTracker = _gat._getTracker("UA-328326-3");');
	document.write('pageTracker._initData();');
	document.write('pageTracker._trackPageview();');
}

/***************
Cabecera2: Franja amb Viure,Visita,LaCiutat,Ajuntament amb els seus respectius links.
****************/
function Cabecera2()
{
	var baseHref = location.hostname;
	document.write('    <TABLE summary="Encapçalament de pàgina: enllaços a àrees temàtiques" BORDER="0" CELLSPACING="0" CELLPADDING="0" style="width:778px;background-color:#FFFFFF">');
	document.write('      <TR>');
	document.write('         <td style="width:590px"></td>');
	document.write('         <td align="center" style="padding:1 1 1 0;width:41px"><a href="http://www.sabadell.net/cat/viure_sabadell" title="Enllaç amb Viure a Sabadell"><img src="/Generic/imatges/viure.gif" alt="Viure a Sabadell" title="Viure a Sabadell" border="0"></a></td>');
	document.write('         <td align="center" style="padding:1 1 1 0;width:48px"><a href="http://www.sabadell.net/cat/la_ciutat" title="Enllaç amb La Ciutat"><img src="/Generic/imatges/LaCiutat.gif" alt="La Ciutat" title="La Ciutat" border="0"></a></td>');
	document.write('         <td align="center" style="padding:1 1 1 0;width:41px"><a href="http://www.sabadell.net/cat/visita_sabadell" title="Enllaç amb Visita per Sabadell"><img src="/Generic/imatges/visita.gif" alt="Visita per Sabadell" title="Visita per Sabadell" border="0"></a></td>');
	document.write('         <td align="center" style="padding:1 0 1 0;width:58px"><a href="http://www.sabadell.net/cat/ajuntament" title="Enllaç amb Ajuntament"><img src="/Generic/imatges/ajuntament.gif" alt="Ajuntament" title="Ajuntament" border="0"></a></td>');
	document.write('      </tr>');
	document.write('    </table>');
}

/*****************
Cabecera Antiga: Franja Negre amb el logo de l´ajuntament, links a Portal,Correu,Mapa Web
******************/
function CabeceraAnt()
{
	var baseHref = location.hostname;
	document.write('<TABLE summary="Encapçalament de pàgina: enllaços a  Inici Portal, Mapa Web i Contacta" BORDER="0" CELLSPACING="0" CELLPADDING="0" style="width:778px;background-color:#505050">');
	document.write('  <TR>');
	document.write('  	<TD style="width:137px"><img src="/Generic/imatges/logo_ajuntament.gif" width="137" height="29" alt="Ajuntament de Sabadell" border="0"></TD>');
	document.write('	<TD style="width:403px"><img src="/Generic/imatges/bl.gif" width="260" height="1"></TD>');
	document.write('	<TD style="width:75px"><a href="/cat/home" class="correu" title="Inici Portal"><img src="/Generic/imatges/icona_home.gif" alt="Inici Portal" title="Inici Portal" border="0" align="middle">Portal</a></TD>');
	document.write('	<TD style="width:75px"><a href="/Cat/Contacta/" class="correu" title="Enllaç a Correu"><img src="/Generic/imatges/icon_correu.gif" width="19" height="9" alt="Enllaç a Correu" title="Enllaç a Correu" border="0" align="middle">Correu</a></TD>');
	document.write('	<TD style="width:88px"><a href="/Cat/MapaWeb/" class="correu" title="Enllaç a Mapa Web"><img src="/Generic/imatges/icon_mapa.gif" width="19" height="13" alt="Enllaç a Mapa Web" title="Enllaç a Mapa Web" border="0" align="middle">Mapa Web</a></TD>');
	document.write('  </TR>');
	document.write('  <TR>');
	/*document.write('  <TD COLSPAN=5>');
	document.write('<table border=0 cellspacing=0 cellpadding=0 width="778">');
	document.write('<tr bgcolor="#7090B8"><td class="filetblauX"><img src="/Generic/imatges/bl.gif" width=0 height=0></td></tr>');
	document.write('</table>');
	document.write('  </TD>');
	document.write('  </TR>');*/
	document.write('</TABLE>');
}

/*****************
Pie Antic
******************/
function PieAnt()
	{
	document.write('<BR>');
	document.write('<TABLE summary="Peu de pàgina del web. Inclou copyright, avís legal i contacta -correu-" BORDER="0" CELLSPACING="0" CELLPADDING="0" style="width:778px">');
	document.write('	<tr><td style="height:1px;background-color:#CCCCCC"><img src="/Generic/imatges/bl.gif" width="1" height="1"></td></tr>');
	document.write('	<tr><td class="vincle" align="center"><a href="/Cat/Contacta/" class="vincle" title="Contacta">Contacta</a> | <a href="/Cat/Avis_legal" class="vincle" title="Avís legal">Avís legal</a></td></tr>');	
	document.write('	<tr><td style="height:1px;background-color:#CCCCCC"><img src="/Generic/imatges/bl.gif" width="1" height="1"></td></tr>');
	document.write('	<tr><td align="center" class="textgris10" style="height:20px">&copy;&nbsp;2003 Ajuntament de Sabadell</td></tr>');
	document.write('</table>');
	}




//**********************************************************************************
//Funció Cabecera(): Capçalera Generica(logo de l´ajuntament, links a Portal, Correu, Mapa Web, Combo Serveis, Cercador)
//
//Parametres entrada Idiomes [OPCIONALS]: 
//					Noms_Curts :Cadena Noms Idiomes (separatas per ;)
//                  Url: Cadena Url Idiomes (separatas per ;)
//					Tips: Cadena Tips Idiomes (separatas per ;)
//					Lang: Cadena Lang Idiomes (declaració Idiomes -separatas per ; -)
//					AccessKey: Cadena Tecles Drecera (separats per ;)
//Vincular Estils:
//				   <LINK REL="STYLESHEET" TYPE="text/css" HREF="/webapps/Generic/estils/estils.css">
//Exemple Crida:
//				Cabecera("NomsCurtsCat;NomsCurtsCast","/Cat;/Esp","TipsCat;TipsCast","LangCat;LangCast","AccessKeyCat;AccessKeyCast");
//              ò
//              Cabecera()
//**********************************************************************************
function CabeceraGenerica(Descripcio)
{
	document.write('<table align="center" summary="Encapçalament de pàgina: enllaços a àrees temàtiques, cercador, correu i altres serveis" id="headcap" border="0" class="headfons" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td><p id="port"><a href="http://www.sabadell.cat" accesskey="0">Portada</a></p></td>');
	document.write('<td>');
	document.write('<ul id="eines">');
	document.write('<li>');	
	document.write('<a href="#" class="planol" onclick=DisplayPlano() title="Nova finestra:Plànol-Guia">Plànol-Guia</a>');
	document.write('</li>');		
	document.write('<li><a href="http://www.sabadell.cat/MapaWeb/" class="mapa" accesskey="8">Mapa del Web</a></li>');
	document.write('<li><a href="http://www.sabadell.cat/Contacta/" class="contacte" accesskey="M">Contacte</a></li>');
	document.write('</ul>');
	document.write('</td>');
	document.write('</tr>');

	document.write('<tr>');
	document.write('<td colspan="2">');
	document.write('<div id="titular">');
	document.write('<h1><a href="http://www.sabadell.cat/Cat/ajuntament/" title="Ajuntament de Sabadell"><img src="/generic/imatges/logo_ajuntament2.gif" border="0" width="148" alt="Ajuntament de Sabadell" title="Ajuntament de Sabadell"></a></h1>');
	document.write('<div style="padding-top:6px;padding-bottom:6px">');
	document.write('<h3>'+Descripcio+'</h3>');
	document.write('</div>');
	document.write('</div>');
	document.write('</td>');
	document.write('</tr>');

	document.write('<tr><td colspan="2" valign="top">');
	document.write('<ul id="amida" class="headamida">');
	document.write('<li><a href="http://www.sabadellamida.net" class="sabamida">Sabadell a mida</a></li>');
	document.write('<li><a href="http://www.sabadell.cat/viure_sabadell" class="viure" accesskey="S" >Viure a Sabadell</a></li>');
	document.write('<li><a href="http://www.sabadell.cat/visita_sabadell" class="visita" accesskey="V" >Visita Sabadell</a></li>');
	document.write('<li><a href="http://www.sabadell.cat/la_ciutat" class="laciutat" accesskey="L" >La ciutat</a></li>');
	document.write('<li><a href="http://www.sabadell.cat/ajuntament" class="ajuntament" accesskey="9" >L\'Ajuntament</a></li>');
	document.write('</ul>'); 
	
	document.write('<form id="cerca" action="http://www.sabadell.net/apps/cerca/cat/default.asp" method="post" name="fcercador" onsubmit="if (this.nivel.value==\'Cerqueu...\') this.nivel.value=\'\'">');
	document.write('<input accesskey="2" type="text" id="nivel" name="nivel" value="Cerqueu..." alt="Texte a Cercar" title="Texte a Cercar"/>');
	document.write('<button type="submit" ID="Button1">');
	document.write('<img src="/generic/imatges/bot_cercar.gif" alt="Cercar" title="Cercar" width="18" height="19">');
	document.write('</button>');
	document.write('</form>');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr><td colspan="2" class="linia" height="2"></td></tr>');
	document.write('</table>');
}

function PeuFitxes(Data)
{
	document.write('<div align="center">');
	document.write('<table summary="" id="peuGeneral" border="0" align="center" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td width="30%">');
	document.write('</td>');
	document.write('<td align="center">');
	document.write('<ul>');
	document.write('<li><a href="http://www.sabadell.cat/portal/paginesCat/web_cat.asp">www.sabadell.cat</a></li>');
	document.write('<li><a href="http://www.sabadell.cat/Contacta/">Contacta</a></li>');
	document.write('<li><a href="http://www.sabadell.cat/Avis_legal/">Avís legal</a></li>');
	document.write('</ul>');
	document.write('</td>');
	document.write('<td align="right">');
	document.write('Darrera actualització: '+ Data);
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</div>');
}



