// Camí base
var cbase= 'http://inicia.es/de/tonipozo/';

function imprimir()
{
  if (window.print)
      window.print()
  else
    alert ("Disculpe, su navegador no soporta esta opción.");
}

function correu (nom,domini,sobre)
{
  document.write ('<a style="font-weight:normal;" href=\"mailto:'+nom+'@'+domini+'\" target="_self">');
  if (sobre)
  {
	document.write ('<img SRC="../img/envelop7.gif" height=10 border=0>&nbsp;');
  }
  document.write (nom+'@'+domini+'</a>');
}

// Impressió
function impressio ()
{
  document.write ('<table class="buida" border=0 cellpadding=0 cellspacing=0><tr><td>');
  document.write ('<a href="javascript:imprimir()" target="_self"><img src="'+cbase+'img/print.gif" width="84" height="21" border=0></a>');
  document.write ('</td></tr></table>');
}

function nav ()
{
  document.write ('<br><table class=buida width=560 style="width:560px" cellpadding=6 cellspacing=0 border=0><tr>');
  document.write ('<td align=left><a href="javascript:imprimir()" target="_self"><img src="'+cbase+'img/print.gif" width=84 height=21 alt="Imprimir" border=0></a></td>');
  document.write ('<td><center><table style="width:250px;background-color:white" width="250px" cellpadding=1 cellspacing=0 border=1 bordercolor=#dedede>');
  document.write ('<tr><td width="125px"><center><a href="Javascript:history.back()" target="_self"><img src="'+cbase+'img/backw.gif" border=0 width=17 height=14 alt="Enrera/Atrás"></a></td>');
  document.write ('<td width="125px"><center><a href="#top" target="_self"><IMG src="'+cbase+'img/top.gif" width=20 height=14 border=0 alt="Inici"></a></td></tr>');
  document.write ('</table></td></tr></table><br>');
}

// Go top
function gotop2 ()
{
  document.write ('<div style="margin:10px;"><a href="#top" target="_self"><IMG src="'+cbase+'img/topline.gif" width=680 height=20 border=0 alt="^top"></a></div>');
}

// Copyright
function peuCopyright ()
{
  document.write ('<br><br>© <b><font color=#b22222>Viatgeaddictes.com</font></b>, 2001-2004<br>');
  document.write ('Yolanda Vila & Toni Pozo<br><br>');
}

// Peu pàgina (català)
function peuPagina ()
{
  document.write ('<hr style="color:#999999;background-color:#999999;">');
  document.write ('<table width=700 style="width:700px; background-color:transparent" border=0 cellpadding=0 cellspacing=0><tr><td>');
  document.write ('<center>');
  document.write ('<a href="'+cbase+'portada.html" target="_parent">Portada</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/buscar.html" target="_self">Buscar</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/mapa.html" target="_self">Mapa web</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/premsa.html" target="_self">Notes de premsa</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="http://gbooks.melodysoft.com/forumViatgeaddictes/" target="_self">Llibre visites</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/copyright.html" target="_self">Avís legal</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/contacte.html" target="_self">Contacte</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/presenta.html" target="_self">Qui som</a>');
  peuCopyright ();
  document.write ('</td></tr></table>');
}

// Peu pàgina (castellà)
function peuPagina_es ()
{
  document.write ('<hr style="color:#999999;;background-color:#999999;">');
  document.write ('<table width=700 style="width:700px; background-color:transparent" border=0 cellpadding=0 cellspacing=0><tr><td>');
  document.write ('<center>');
  document.write ('<a href="'+cbase+'portada_es.html" target="_parent">Portada</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/buscar_es.html" target="_self">Buscar</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/mapa_es.html" target="_self">Mapa web</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/premsa_es.html" target="_self">Notas de prensa</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="http://gbooks.melodysoft.com/forumViatgeaddictes/" target="_self">Libro visitas</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/copyright_es.html" target="_self">Aviso legal</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/contacte_es.html" target="_self">Contacto</a>&nbsp;&nbsp;•&nbsp;&nbsp;');
  document.write ('<a href="'+cbase+'pag/presenta_es.html" target="_self">Quienes somos</a>');
  peuCopyright ();
  document.write ('</td></tr></table>');
}

// Data modificació pàgina
function dataModif ()
{
  var texto=document.lastModified;
  document.write ("<table width=700 style='width:700px; background-color:transparent' border=0 cellpadding=0 cellspacing=0><tr><td>");
  document.write ("<div style='text-align:center;color:#6A6A6A;font-size:7pt;'>");
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
  {
	mm=texto.substring(0,2);
	dd=texto.substring(3,5);
	aa=texto.substring(6,10);
	texto = dd+"/"+mm+"/"+aa;
  }
  document.write ("- Actualitzada: "+texto+" -</div>");
  document.write ("</td></tr></table><br>");
}

// Títol arrodonit esquerra
function printTitolR (titol,amplada,bgcolor)
{
  document.write ('<TABLE style="width:' + amplada + 'px" width=' + amplada + ' cellpadding=0 cellspacing=0 border=0>');
  document.write ('<TR bgcolor=' + bgcolor + '><TD width=15><IMG src="'+cbase+'img/roundedge.gif" width=15 height=18 align=top></td>');
  document.write ('<td><FONT color="#ffffff"><b>' + titol +'</TD></TR>');
  document.write ('</TABLE>');
}

// Títol normal
function printTitol (titol,amplada,bgcolor)
{
  document.write ('<TABLE style="width:'+ amplada + 'px" width=' + amplada +' cellpadding=0 cellspacing=0>');
  document.write ('<TR><TH bgcolor=' + bgcolor + '><center><FONT size=3 face="Arial" color=white>' + titol +'</TH></TR>');
  document.write ('</TABLE>');
}

// Finestra per a una foto
function foto (nom,desc,x,y)
{
  msg = 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width='+x+',height='+y;
  objWin = window.open ('','foto',msg,false);
  msg = '<HEAD><TITLE>' + desc + '</TITLE></HEAD>';
  objWin.document.write (msg);
  msg = '<BODY topmargin=0 leftmargin=0 marginheight=0 marginwidth=0><img src=' + nom +' width=' + x + ' height=' + y +'></BODY>';
  objWin.document.write (msg);
  objWin.document.close ();
}

// Finestra per a mostrar una foto
function f (nom,desc,alin,x,y,xp,yp)
{
  document.write ('<a href="JavaScript:' + "foto ('" + nom + "','"+ desc +"','" + x +"','" + y +"')" +'" target="_self">');
  document.write ('<img SRC="'+nom+'" border=0 align="'+alin+'" width='+xp+' height='+yp+' alt="'+desc+'" title="'+desc+'" class="foto"></a>');
}

// Estadístiques NedStat
function estad ()
{
  document.write ('<img src="http://m1.nedstatbasic.net/n?id=AA2zSwe5+z6V1QLs/B/INBdJbIJw" height=1 width=1>');
}

// Caixes amb les cantonades arrodonides
function caixaR (ample,ccap1,ccap2,ecap,tcap,cpeu1,cpeu2,epeu,tpeu,linia)
{
  document.write ('<div style="width:'+ample+'px">');
  document.write ('<div style="height:1px;margin-left:2px;margin-right:2px;border-left:1px solid '+ccap2+'; border-right:1px solid '+ccap2+';background-color:'+ccap2+';"><!-- --></div>');
  document.write ('<div style="height:1px;margin-left:1px;margin-right:1px;border-left:1px solid '+ccap2+'; border-right:1px solid '+ccap2+';background-color:'+ccap1+';"><!-- --></div>');
  document.write ('<div style="border-left:1px solid '+ccap2+'; border-right:1px solid '+ccap2+'; background-color:'+ccap1+'; padding:3px;'+ecap+'">'+tcap+'</div>');

  if (linia) document.write ('<div style="margin:0 0 1px 0;"></div>');

  if (tpeu != '') {
	document.write ('<div style="border-left:1px solid '+cpeu2+'; border-right:1px solid '+cpeu2+'; background-color:'+cpeu1+';'+epeu+';padding:3px;">'+tpeu+'</div>');
  }
  document.write ('<div style="height:1px;margin-left:1px;margin-right:1px;border-left:1px solid '+cpeu2+'; border-right:1px solid '+cpeu2+';background-color:'+cpeu1+';"><!-- --></div>');
  document.write ('<div style="height:1px;margin-left:2px;margin-right:2px;border-left:1px solid '+cpeu2+'; border-right:1px solid '+cpeu2+';background-color:'+cpeu2+';"><!-- --></div>');
  document.write ('</div>');
}

