function fnc_LimpaCampoBusca1(nu_Acao){
	if (nu_Acao==1){
		document.getElementById("de_PLZFormBusca1").value='';
	}
	if (nu_Acao==2){
		if(document.getElementById("de_PLZFormBusca1").value==''){
			document.getElementById("de_PLZFormBusca1").value=' Suche nach PLZ';	
		}
	}	
}

function fnc_LimpaCampoBusca2(nu_Acao){
	if (nu_Acao==1){
		document.HeaderFormSuche.de_Suche.value='';
	}
	if (nu_Acao==2){
		if(document.HeaderFormSuche.de_Suche.value==''){
			document.HeaderFormSuche.de_Suche.value=' In glaserhandwerkbayern.de suchen';	
		}
	}	
}

function fnc_LimpaCampoBusca3(nu_Acao){
	if (nu_Acao==1){
		document.FormNewsletter.de_Nome.value='';
	}
	if (nu_Acao==2){
		document.FormNewsletter.de_Email.value='';
	}	
	if (nu_Acao==3){
		if(document.FormNewsletter.de_Nome.value==''){
			document.FormNewsletter.de_Nome.value=' Name und Vorname';	
		}
	}	
	
	if (nu_Acao==3){
		if(document.FormNewsletter.de_Email.value==''){
			document.FormNewsletter.de_Email.value=' E-mail';	
		}
	}		
}

function fnc_AbrirFechaDiv1(nu_Acao){
	
	if (nu_Acao==1){
		
		de_Dado = document.getElementById("VollText").style.display;	
		if(de_Dado=='block'){
			document.getElementById("VollText").style.display='none';
			document.getElementById('VollTextOS').innerHTML='[ &ouml;ffnen ]';				
		}		
		
		de_Dado = document.getElementById("DetailSuche").style.display;	
		if(de_Dado=='none'){
			
			document.getElementById('TextDetail').innerHTML='[ schlie&beta;en ]';
			document.getElementById("DetailSuche").style.display='block';
			return;
		}
		
		de_Dado = document.getElementById("DetailSuche").style.display;	
		if(de_Dado=='block'){
			document.getElementById('TextDetail').innerHTML='[ &ouml;ffnen ]';			
			document.getElementById("DetailSuche").style.display='none';

		}		
	}
	
	if (nu_Acao==2){
		
		de_Dado = document.getElementById("DetailSuche").style.display;	
		if(de_Dado=='block'){
			document.getElementById("DetailSuche").style.display='none';
			document.getElementById('TextDetail').innerHTML='[ &ouml;ffnen ]';			
		}		
		
		de_Dado = document.getElementById("VollText").style.display;	
		if(de_Dado=='none'){
			document.getElementById('VollTextOS').innerHTML='[ schlie&beta;en ]';			
			document.getElementById("VollText").style.display='block';
			return;
		}
		
		de_Dado = document.getElementById("VollText").style.display;	
		if(de_Dado=='block'){
			document.getElementById('VollTextOS').innerHTML='[ &ouml;ffnen ]';				
			document.getElementById("VollText").style.display='none';
			return;
		}	
	}
}

function addFav(){
    var url      = "http://www.sawallisch-stiftung.de/";
    var title    = "Wolfgang Sawallisch Stiftung";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}

//<a href="javascript:addFav()" title="Adicionar aos Favoritos">Adicionar aos Favoritos</a>

function setHome()
   {
     if (document.all)
     {
      document.body.style.behavior='url(#default#homepage)';
      document.body.setHomePage('http://www.sawallisch-stiftung.de/');
 
    }
     else if (window.sidebar)
      {
          if(window.netscape)
          {
           try
           {
           netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
           }
        catch(e)
       {
     alert("Ungültige Option für diesen Browser");
 }
 }
 var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
 prefs.setCharPref('browser.startup.homepage','http://www.sawallisch-stiftung.de/');
 }
 }
 //<a href="javascript:setHome();">make your home page </a>
 
 var tagAlvo = new Array('p'); //pega todas as tags p//   // Especificando os possíveis tamanhos de fontes, poderia ser: x-small, small... 
 var tamanhos = new Array( '9px','10px','11px','12px','13px','14px','15px' ); 
 var tamanhoInicial = 2;
//Read more: http://www.yogodoshi.com/blog/utilitarios/script-para-o-usuario-poder-aumentar-e-diminuir-a-fonte-do-site#ixzz1TloPBXGZ
function mudaTamanho( idAlvo,acao ){
	if (!document.getElementById) return
		var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo;
		tamanho += acao;
		if ( tamanho < 0 ) tamanho = 0;
			if ( tamanho > 6 ) tamanho = 6;
				tamanhoInicial = tamanho;
				if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ];

				selecionados.style.fontSize = tamanhos[ tamanho ];

				for ( i = 0; i < tagAlvo.length; i++ ){
					tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] );
						for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ];
					}
}


