<!--

	//-----INICIALIZAR VARIÁVEIS GLOBAIS  	 
	var browser;
	//var form_simcredit; //referenciacao do form da simulacao de credito
	
    //-----DETECTAR O BROWSER
    if (navigator.appName == "Microsoft Internet Explorer")
    {
   		browser = 'IE';
    }
    else if (navigator.appName == "Netscape")
    {
    	if (parseInt(navigator.appVersion) == 5)
    	{
    		browser = 'NS5';
    	}
    	else if (parseInt(navigator.appVersion) == 4)
    	{
    		browser = 'NS4';
   	 	}
    }
	
	function bigbang()
	{   
		//CHAMAR A FUNÇÃO DE INICIO DAS CAIXAS MARCA/MODELO	
		//A função bigbang é chamada em todas as páginas mas a init só é precisa naquelas que têm forms de pesquisa de automóveis
		//No caso de uma
		//if (typeof init != 'undefined') 
		//{
		//   init();	
		//}
		//else
		//{
		//	//alert("A função init não existe nesta página!")
		//}
		
		//CHAMAR A FUNÇÃO DE CRIACAO DO SLIDER (SIMCREDIT)
		//Estas linhas só são necessárias na ficha de viatura e só se fôr suposto a simulação aparecer
		//if (typeof mySlider1 != 'undefined') 
		//{
		//	if (browser=='NS4')
		//	{
		//		form_simcredit=window.document.form_simcredit;
		//	}
		//	else if (browser=='NS5')
		//	{
		//		form_simcredit=window.document.form_simcredit;
		//	}
		//	else 
		//	{
		//		//IE
		//		form_simcredit = window.document.form_simcredit;
		//	}		
		
		
			//mySlider1.placeSlider();
			//mySlider2.placeSlider();
			//calcular_prestacao();
		//}
		//else
		//{
			//alert("dfgd")
		//}		

		//-----CHAMAR A FUNÇÃO DE INICIO DOS BANNERS DO TIPO FLOATING LAYER
		if (typeof initAd != 'undefined') 
		{
		   initAd();	
		}
		else
		{
			//alert("A função initAd não existe nesta página!")
		}	

		//-----CHAMAR A FUNÇÃO DE INICIO DOS MAPAS DO GOOGLE
		if (typeof load != 'undefined') 
		{
			//alert("Já a seguir é chamado o load dos mapas do google!")
			load();	
		}
		else
		{
			//alert("A função load dos mapas do google não existe nesta página!")
		}	        
        
		
	}
		
	//////////////////////////////////////////////////////////////////////////////  
  	function mostrar_esconder(Flayer,Foperacao)
	{
		aux_operacao=""
		if (Foperacao=="mostrar")
		{
        	if (browser=='NS4')
        	{
        		Flayer.visibility = "show";	
        	}
        	else if (browser=='NS5')
        	{
        		Flayer.style.visibility = "visible";
        	}
        	else 
        	{
        		//IE
        		Flayer.style.visibility = "visible";
        	}
		}
		else
		{
        	if (browser=='NS4')
        	{
        		Flayer.visibility = "hidden";	
        	}
        	else if (browser=='NS5')
        	{
        		Flayer.style.visibility = "hidden";
        	}
        	else 
        	{
        		//IE
        		Flayer.style.visibility = "hidden";
        	}		
		}
	}	
   
//-->
