//-->


 window.onerror=null;
  nome = navigator.appName;
  versao = parseInt(navigator.appVersion);
  if ((nome == "Netscape" && versao >= 3) || (nome == "Microsoft Internet Explorer" && versao >= 4))
    ver = "sim";
  else
  {
    ver = "nao";alert("O seu browser encontra-se desactualizado. As versões mínimas para poder consultar este site com segurança, são as versões 4 do Microsoft Internet Explorer ou do Netscape Navigator.");
  }


function muda_on(in1)
{
   if (ver=="sim"){
     document['m'+in1].src = '\images/m_'+in1+in1+'.gif';
   }
}


function muda_off(in1)
{
	if (ver=="sim"){
   document['m'+in1].src = '\images/m_'+in1+'.gif';
   //top.texto.document['t'+in1].src = 'images/p.gif';
	}
}


function janela(a)
  {

wx=500;
wy=480;
xWidth = (screen.width-wx)/2;
yHeight = (screen.height-wy)/2;

	if (wy > 550) {wy = 550};
    if (ver == "nao")
    {
       wy = wy - 40;
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=no,menubar=no,width="+wx+",height="+wy;
       window.open("show_ima.html",a,wstr);
    }
    else 
    {
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=no,menubar=no,width="+wx+",height="+wy;
       window.open("show_ima.html",a,wstr);
       window.name="show_ima.html";


    }
  }  
  
function fotoh(winurl,local)
{
wx = 580;
wy = 450;

xWidth = (screen.width-wx)/2;
yHeight = (screen.height-wy)/2;
openhtml = "show_ima.html";

	if (wy > 550) {wy = 550};
    winname = "w" + Math.round(Math.random() * 1000);	
    if (ver == "nao")
    {
       wy = wy - 40;
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=no,menubar=no,width="+wx+",height="+wy;
       window.open(openhtml,winurl,wstr);
    }
    else 
    {
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=no,menubar=no,width="+wx+",height="+wy;
   	   window.open(openhtml,winurl,wstr);
    }
  }
  
function fotov(winurl)
{
wx = 300;
wy = 450;
xWidth = (screen.width-wx)/2;
yHeight = (screen.height-wy)/2;
openhtml = "show_ima.html";

	if (wy > 550) {wy = 550};
    winname = "w" + Math.round(Math.random() * 1000);	
    if (ver == "nao")
    {
       wy = wy - 40;
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=no,menubar=no,width="+wx+",height="+wy;
       window.open(openhtml,winurl,wstr);
    }
    else 
    {
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=no,menubar=no,width="+wx+",height="+wy;
   	   window.open(openhtml,winurl,wstr);
    }
}


function agenda(winurl)
{

    wx = 500 + 20;
    wy = 400 + 20;
	if (wy > 550) {wy = 550};
    winname = "w" + Math.round(Math.random() * 1000);	
	xWidth = (screen.width-wx)/2;
	yHeight = (screen.height-wy)/2;

    if (ver == "nao")
    {
       wy = wy - 40;
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=yes,menubar=no,width="+wx+",height="+wy;
       window.open(winurl,winname,wstr);
    }
    else 
    {
	   wstr = "left="+xWidth+",top="+yHeight+",scrollbars=yes,menubar=no,width="+wx+",height="+wy;
       window.open(winurl,winname,wstr);
    }
  }

//-->