<!--
///// BROWSER ? /////
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")


if (NS||NS6) {var yMax = window.innerHeight / 2}
else {var yMax = screen.height / 2 - 40} // -50 para toolbars no caso do IE 
alturaMenu = alturaMenux; //262
yMax= yMax - (alturaMenu / 2); // yMax - (alturaMenu / 2)

///// DEFAULT SETTINGS /////
slideSpeed=0 //5
waitTime=0; //1000
barVAlign="top";

YOffset=yMax; //
staticYOffset=yMax; 
menuIsStatic="yes";
menuWidth=140; 
hdrHeight="20";
linkBGColor="#8E4E4E"; //cc8f37
linkOverBGColor="#CC7F26";
linkTarget="_top";
linkAlign="Left";
barVAlign="center"; //menu visivel
barWidth=13; 







///// SLIDE //////
moving=setTimeout('null',1)
function moveOut() {
if ((NS6 && parseInt(ssm.left)<0)||(IE && ssm.pixelLeft<0)||(NS && ssm.left<0)) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed)
if (NS6) {theleft+=20;ssm.left = theleft;}
if (IE) {ssm.pixelLeft += 20;}
if (NS) {ssm.left += 10;ssm.clip.left-=10}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
function moveBack() {
clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
function moveBack1() {
if ((NS6 && parseInt(ssm.left)>(-menuWidth))||(IE && ssm.pixelLeft>(-menuWidth))||(NS && ssm.left>(-menuWidth))) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);
if (NS6) {theleft-=10;ssm.left = theleft;}
if (IE) {ssm.pixelLeft -= 20;}
if (NS) {ssm.left -= 10;ssm.clip.left+=10}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};

///// STATIC FUNCTION /////
lastY = 0;
function makeStatic() {
if (IE) {winY = document.body.scrollTop;}
if (NS||NS6) {winY = window.pageYOffset;}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .3 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .3 * (winY - lastY);}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6) ssm.top=parseInt(ssm.top)+smooth;
if (IE) ssm.pixelTop+=smooth;
if (NS) bssm.top+=smooth;
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}

///// SETS OBJECT NAMES AND LOADS MENU /////
function initSlide() {
if (NS6){ssm=document.getElementById("thessm").style;
ssm.visibility="visible";ssm.left = -menuWidth;}
else if (IE) {ssm=document.all("thessm").style;
ssm.visibility = "visible";ssm.pixelLeft = -menuWidth;}
else if (NS) {bssm=document.layers["basessm1"];
ssm=bssm.document.layers["basessm2"].document.layers["thessm"];
ssm.clip.left = menuWidth;ssm.left = -menuWidth;ssm.visibility = "show";}
if (menuIsStatic=="yes") makeStatic();}

///// MENU BUILDER FUNCTIONS /////
function startMenu(menuHeader, barText) {
if (IE||NS6) {document.write('<DIV ID="thessm" style="visibility:hidden;Position : Absolute ;Left : 0 ;Top : '+YOffset+' ;Z-Index : 20;width:1px;clip:" >')}
if (NS) {document.write('<LAYER name="basessm1" top="'+YOffset+'" LEFT=0 visibility="show" width="'+(menuWidth+barWidth+10)+'"><ILAYER name="basessm2" width="'+(menuWidth+barWidth+20)+'"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'"><TR><TD>')}
document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'">');
tempBar='';
addHdrInic();
if(barText.indexOf('<IMG')>-1) {tempBar=barText}
else{for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<BR>"}}
document.write('<td align="center" rowspan="100" width="'+barWidth+'"" valign="'+barVAlign+'"><p align="center"><a href="javascript:void(0)" onmouseover="moveOut()"><img SRC="http://www.refugiados.net/codigo/leme_mini.gif" alt="" width="33" height="33" border="0"></a></p></TD></tr>')
theleft=-menuWidth}

function endMenu() {
document.write('<tr><td colspan="3" BGCOLOR="'+linkBGColor+'"><img SRC="http://www.refugiados.net/codigo/bg_transp_3x3.gif" width="11" height="4" border="0" alt=""></td></tr><tr><td colspan="3"><img SRC="http://www.refugiados.net/codigo/menu_pri_rdp.gif" width="140" height="5" border="0" alt=""></td></tr></table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV>')}
if (NS) {document.write('</LAYER></ILAYER></LAYER>')}
if (NS6||IE||NS) setTimeout('initSlide();', 1)}

function addHdrInic() {
document.write('<tr><td colspan=3  WIDTH="139"><a href="javascript:void(0)" onclick="moveBack()"><img SRC="http://www.refugiados.net/codigo/cab_irpara2.gif" border="0" alt="" width="140" height="26"></a></td>'+((!tempBar)?"":"</TR>"))}

function addHdr(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><td  style="padding: 4px 4px;" valign=top BGCOLOR="'+linkBGColor+'"><img SRC="http://www.refugiados.net/codigo/menu_pri_quadra.gif" width="9" height="9" border="0" alt=""></td><TD  style="padding: 0px 0px;"  colspan=2 BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV  ALIGN="'+linkAlign+'"><A HREF="'+link+'" target="'+target+'" CLASS="hrefsMenuFlutPri">'+text+'</DIV></LAYER></ILAYER></TD>'+((!tempBar)?"":"</TR>"))}
//<td width="139" colspan="3" background="1x1cinza.gif"><img src="1x1cinza.gif" alt="" width="3" height="3" border="0"></td>
function addSeparador() {
//document.write('<tr><td colspan="3" bgcolor="'+linkBGColor+'"><hr width="100%" size="1"></td>'+((!tempBar)?"":"</TR>"))}
document.write('<tr><td  background="http://www.refugiados.net/codigo/1x1cinza.gif"  colspan="3" bgcolor="'+linkBGColor+'"><img SRC="http://www.refugiados.net/codigo/1x1transp.gif" width="1" height="1"  vspace="1" border="0" alt=""></td>'+((!tempBar)?"":"</TR>"))}

function addSeparadorCastanho() {
document.write('<tr><td bgcolor="#591610" width="139" colspan="3" b><img SRC="http://www.refugiados.net/codigo/bg_transp_3x3.gif" width="11" height="1"  vspace="1" border="0" alt=""></td>'+((!tempBar)?"":"</TR>"))}

/*function addItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><td valign=top BGCOLOR="'+linkBGColor+'"><img SRC="http://www.refugiados.net/codigo/bg_transp_3x3.gif" width="11" height="1" border="0" alt=""></td><td  style="padding: 1px 2px;" valign=top BGCOLOR="'+linkBGColor+'"><img SRC="http://www.refugiados.net/codigo/seta_purpxv.gif" width="9" height="9" border="0" alt=""></td><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV  ALIGN="'+linkAlign+'"><A HREF="'+link+'" target="'+target+'" CLASS="hrefsMenuFlutSub">'+text+'</DIV></LAYER></ILAYER></TD></TR>')}
*/
function addItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><td valign=top BGCOLOR="'+linkBGColor+'"><img SRC="http://www.refugiados.net/codigo/bg_transp_3x3.gif" width="11" height="1" border="0" alt=""></td><td  style="padding: 1px 2px;" valign=top BGCOLOR="'+linkBGColor+'"></td><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV  ALIGN="'+linkAlign+'"><A HREF="'+link+'" target="'+target+'" CLASS="hrefsMenuFlutSub">'+text+'</DIV></LAYER></ILAYER></TD></TR>')}

startMenu("Menu", "MENU")
addItem("", "", "");
//addHdr("VI Congresso", "http://www.cpr.pt/congresso/index.html", "");
//addItem("<img src='http://www.cpr.pt/codigo/menu_pri_esfera.gif' border='0'>&nbsp;Programa", "http://www.cpr.pt/congresso/index.html", "");
//addItem("<img src='http://www.cpr.pt/codigo/menu_pri_esfera.gif' border='0'>&nbsp;Agradecimentos", "http://www.cpr.pt/congresso/agradecimentos.html", "");
//addSeparador();
addSeparadorCastanho();
addHdr("VIAAS", "http://VIAAS.refugiados.net", "");
addHdr("AcolheIntegra", "http://AcolheIntegra.refugiados.net", "");
addSeparador();
addHdr("Novo Centro", "http://acolheintegra.refugiados.net/ncentro.html", "");
addSeparador();
addHdr("e-Learning", "http://www.refugiados.net/e-learning", "");
addSeparador();
addHdr("Fóruns", "http://www.refugiados.net/forum_gref.html", "");
addSeparador();
addHdr("Equal", "http://www.equal.pt", "_blank");
addHdr("ACIME", "http://www.acime.gov.pt", "_blank");
addHdr("C.M.Loures", "http://www.cm-loures.pt/", "_blank");
addHdr("CFPSA", "http://www.cfpsa.pt", "_blank");
addHdr("CPR", "http://www.cpr.pt", "_blank");
addHdr("Santa Casa", "http://www.scml.pt", "_blank");
addHdr("Seg.Social", "http://www.seg-social.pt", "_blank");
addItem("", "", "");
endMenu()

//-->