function janela (URL){ 
   window.open(URL,"janela1","width=900,height=600,toolbar=0,directories=0,menubar=0,status=0,resizable=1,location=0,scrollbars=yes,copyhistory=0");
 }

function mini(URL){
   window.open(URL,"radio","width=450,height=100,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=no,copyhistory=0");
}

function minijanela(){
window.open("www.vas-y.be/pt/main.htm","nova","width=640,height=480,resizable=no,status=no,toolbar=no, scrollbars=no,menubar=no,location=no");
}

// juntar aos favoritos IE e Firefox ****************************************************
function favoris() { 
if ( navigator.appName != 'Microsoft Internet Explorer' ) 
{ window.sidebar.addPanel("Comunidade Lusofona na Bélgica","http://vas-y.be/pt/",""); } 
else { window.external.AddFavorite("http://vas-y.be/pt/","Comunidade Lusofona na Bélgica"); } } 
// FIM juntar aos favoritos IE e Firefox ************************************************


var contador= 0;

            //-Fonction d'ajout d'entrées principales-------------------------
            function DynamicMenu_titulo(strName) {
                var strID = 'ID' + contador++; 

                var forma= '<DIV ID="' + strID + '" CLASS="parent"';
                forma+= ' onClick="expandCollapse(this);">';
                forma+= '<IMG SRC="http://vas-y.be/images/mais.gif">';
                forma+= '' + strName ;
                forma+= '<DIV STYLE="display: none" CLASS="child"></DIV>';
                forma+= '</DIV>';

                this.div.innerHTML += forma;
                this.currentChild = document.getElementById(strID);
            }

            //-Fonction d'ajout de liens dans le menu-------------------------
            function DynamicMenu_atalho(strName,strURL) {
                var forma= '<A HREF='+strURL + ''
                            + ' onClick="cancelBubble(arguments[0]);">' 
                            + strName + '</A><BR>';

                if (document.all) {
                    this.currentChild.children[1].innerHTML += forma;
                } else {
                    this.currentChild.childNodes[2].innerHTML += forma;
                }
            }

            //-inhibe la cascade d'évènements au DIV conteneur----------------
            function cancelBubble(netEvent) {
                if (document.all) {
                    window.event.cancelBubble = true;
                } else {
                    netEvent.cancelBubble = true;
                }
            }

            //-Contracte ou expanse le menu-----------------------------------
            function expandCollapse(objElement) {
                if (document.all) {
                    var imgIcon = objElement.children[0];
                    objElement = objElement.children[1];
                } else {
                    var imgIcon = objElement.childNodes[0];
                    objElement = objElement.childNodes[2];
                }    

             if (objElement.style.display == "none") {  
               objElement.style.display = "block" ;
                 imgIcon.src = "http://vas-y.be/images/menos.gif" ;
              } else {
                  objElement.style.display = "none" ;
               imgIcon.src = "http://vas-y.be/images/mais.gif" ;
              }
            }

            //-Fonction de création de menu dynamique------------------------- 
            function DynamicMenu() {
                var id = "Menu" + contador++;
                document.write('<DIV Id="' + id + '"></DIV>');

                this.div = document.getElementById(id);
                this.currentChild = null;

                this.titulo= DynamicMenu_titulo;
                this.atalho= DynamicMenu_atalho;
            }
            
            // - Menu Principal -----------------------------------------------
            
            var menu = new DynamicMenu();
            
menu.titulo("ASSOCIAÇÕES");      
                menu.atalho("Portuguesa","http://vas-y.be/pt/comunidades/default.htm");
                menu.atalho("Brasileira","http://vas-y.be/pt/Comunidades/brasil.htm");         
                menu.atalho("Angolana","http://vas-y.be/pt/Comunidades/links_ao.htm");
                menu.atalho("Caboverdiana","http://vas-y.be/pt/Comunidades/links_cv.htm");
                menu.atalho("Guineense","http://vas-y.be/pt/Comunidades/links_guine.htm");
                menu.atalho("Moçambicana","http://vas-y.be/pt/Comunidades/links_mz.htm");
                menu.atalho("Santomense","http://vas-y.be/pt/Comunidades/links_st.htm");   
                menu.atalho("Timorense","http://vas-y.be/pt/Comunidades/links_ti.htm");                              
                menu.atalho("Portais Lusofonos","http://vas-y.be/pt/Comunidades/internet.htm");                                                                 

                        
   			menu.titulo("ENDEREÇOS");
                menu.atalho("Anuário","http://vas-y.be/enderecos/");
              menu.atalho("Adicionar actividade", "http://vas-y.be/pt/enderecos/form_add.htm");  
                
   			menu.titulo("EVENTOS 2012");
                menu.atalho("Lusófonos na Bélgica","http://vas-y.be/pt/agenda/default.htm"); 
                menu.atalho("Anunciar Evento","http://vas-y.be/pt/agenda/evento_add.htm");                  
                menu.atalho("Lusófonos no Mundo","http://vas-y.be/pt/agenda/pt-br/default.htm");                                         
                menu.atalho("Arquivos","http://vas-y.be/pt/agenda/arquivo2011.htm");  
                
   			menu.titulo("IMAGENS");   
                menu.atalho("Reportagens foto","http://vas-y.be/fotos/default.htm");     			
                menu.atalho("Clips Vídeo","http://vas-y.be/video/default.htm");   	   			
		           
                                                        
menu.titulo("TRABALHAR NA UE");      
		menu.atalho("Acesso ao emprego", "http://vas-y.be/pt/social/01.htm");
		menu.atalho("Procurar emprego", "http://vas-y.be/pt/social/page2.htm");
		menu.atalho("Trabalho fronteiriços", "http://vas-y.be/pt/social/page7.htm");						
		menu.atalho("Criar uma ASBL", "http://vas-y.be/gov/belge/default.htm");	
		menu.atalho("Criar uma SPRL", "http://vas-y.be/gov/belge/sprl.htm");				

menu.titulo("NOSSOS DIREITOS ");
		menu.atalho("Direitos Sociais", "http://vas-y.be/pt/social/default.htm");	
		menu.atalho("Direito de residência","http://vas-y.be/pt/social/page3.htm");
		menu.atalho("Segurança Social","http://vas-y.be/pt/social/page4.htm");
		menu.atalho("Beneficios Sociais","http://vas-y.be/pt/social/page5.htm");
		menu.atalho("impostos e Taxas","http://vas-y.be/pt/social/page6.htm");
		menu.atalho("A Europa é nossa","http://vas-y.be/pt/social/page8.htm")	
		
menu.titulo("EMPREGOS ");
		menu.atalho("Na Bélgica","http://vas-y.be/empregos/default.htm");
		menu.atalho("No Brasil","http://vas-y.be/empregos/brasil.htm");		
		menu.atalho("Béigica: anuncio grátis","http://vas-y.be/form/form_emprego.html");				
		           
menu.titulo("NOTICIAS - JORNAIS");
                menu.atalho("Últimas Notícias","http://vas-y.be/pt/atual/default.htm");                   
                   menu.atalho("Comunidade no mundo","http://vas-y.be/pt/Comunidades/jornais.htm");
                menu.atalho("Jornais Nacionais","http://vas-y.be/pt/News/default.htm");         
		   menu.atalho("Crónicas e Opiniões", "http://vas-y.be/pt/opinioes/default.htm");                                   

menu.titulo("RÁDIOS-TV ON LINE");
                menu.atalho("Emis. Portuguesas","http://vas-y.be/radio/default.htm");    
                menu.atalho("Emis. Brasileiras","http://vas-y.be/radio/index_br.htm"); 
                menu.atalho("África Lusófona","http://vas-y.be/radio/index_afr.htm");  
                menu.atalho("TV em direto","http://vas-y.be/radio/TV/default.htm");                                 
                menu.atalho("Portais","http://vas-y.be/radio/sites.htm");   
                
menu.titulo("DESPORTO"); 
                menu.atalho("Portugueses na Bélgica","http://vas-y.be/pt/Comunidades/desporto.htm"); 
                menu.atalho("UEFA Euro 2012","http://vas-y.be/desporto/01.htm"); 
                menu.atalho("Equitação na Bélgica","http://vas-y.be/pub/rodrigopessoa/default.htm");                                                                              

menu.titulo("SERV. CONSULARES");
                menu.atalho("Lusófonos na Bélgica","http://vas-y.be/gov/luso.htm"); 
                menu.atalho("Portugal no Mundo","http://vas-y.be/gov/embaix_pt.htm");
                menu.atalho("Brasil no Mundo","http://vas-y.be/gov/embaix_br.htm");  
                menu.atalho("Angola no Mundo","http://vas-y.be/gov/embaix_ao.htm");                 
                menu.atalho("Outros no Mundo","http://vas-y.be/gov/default.htm"); 
                
menu.titulo("HISTÓRIA");
			menu.atalho("Sumário...", "http://vas-y.be/pt/historia/default.htm");
			menu.atalho("Belgica: pais diferente", "http://vas-y.be/pt/historia/histbe.html");
			menu.atalho("Portugal: 9 séculos", "http://vas-y.be/pt/historia/histpt.html");				
			menu.atalho("Emigração e origens", "http://vas-y.be/pt/historia/emigrantes.html");										

menu.titulo("INFORMAÕES ÚTEIS");
                menu.atalho("Nacionalidade portug.", "http://vas-y.be/nacionalidade/");
                menu.atalho("Autos e matriculas", "http://vas-y.be/infos/04.htm");
                menu.atalho("Aluguer de alojamento", "http://vas-y.be/infos/02.htm");
                menu.atalho("Aluguer comercial", "http://vas-y.be/infos/03.htm");  
                menu.atalho("Agencias imobiliarias", "http://vas-y.be/infos/immo.htm");                          
               
menu.titulo("PARCEIROS");
			menu.atalho("Parceiros deste portal", "http://vas-y.be/pt/parceiros.htm");
			menu.atalho("Amizades Lusófonas", "http://vas-y.be//pt/Comunidades/amizades.htm"); 
			menu.atalho("Participe tambem", "http://vas-y.be/pt/enderecos/default.htm"); 
				
menu.titulo("CONTACTOS");     
			menu.atalho("Email", "javascript:janela('http://vas-y.be/crypt/mail.php')");  
			menu.atalho("Forum", "javascript:janela('http://communaute.exprimetoi.net/')");                                                           
			menu.atalho("Facebook", "javascript:janela('http://www.facebook.com/profile.php?id=100000434140360')");       
			menu.atalho("Orkut", "javascript:janela('http://www.orkut.com/Main#Profile?uid=13019329605840721855')");       			
			                                                

                 
