// JavaScript Document
function load_alink(){
//on page load call tb_init
$(document).ready(function(){   
	tb_init('a.thickbox, area.thickbox, input.thickbox'); //pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
});
}

function Menu(Qual){
 switch (Qual) {
	case 'meio2':
         ifASP.location = 'meio2.html'              ;
       break;
	case 'clientes':
         ifASP.location = 'clientes.html'           ;
       break;
	case 'clientes2':
         ifASP.location = 'clientes2.html'          ;
       break;
	case 'contatos':
         ifASP.location = 'contatos.html'           ;
       break;
	case 'contatos2':
         ifASP.location = 'contatos2.html'          ;
       break;
	case 'empresa':
         ifASP.location = 'empresa.html'            ;
       break;
	case 'empresa2':
         ifASP.location = 'empresa2.html'           ;
       break;
	case 'principal':
         ifASP.location = 'principal.html'          ;
       break;
	case 'principal2':
         ifASP.location = 'principal2.html'         ;
       break;	   
	case 'produtos':
         ifASP.location = 'produtos.html'           ;
       break;
	case 'drenopet':
         ifASP.location = 'drenopet1.html'           ;
       break;
    case 'drenopet12':
         ifASP.location = 'drenopet12.html'          ;
       break;   	   
	   
	case 'portifoliop1':
         ifASP.location = 'portifoliop1.html'       ;
       break;
	case 'portifoliop12':
         ifASP.location = 'portifoliop12.html'      ;
       break;
	case 'portifoliop2':
         ifASP.location = 'portifoliop2.html'       ;
       break;
	case 'portifoliop22':
         ifASP.location = 'portifoliop22.html'      ;
       break;
	case 'portifoliop3':
         ifASP.location = 'portifoliop3.html'       ;
       break;
	case 'portifoliop32':
         ifASP.location = 'portifoliop32.html'      ;
       break;	   
	case 'trabalheconosco':
         ifASP.location = 'trabalhe_conosco.html'   ;
       break;
	case 'contatos_portfolio':
         ifASP.location = 'contatos_portfolio.html' ;
       break;   
    //,Portifolio,Respsocial,Equipamentos,Blogreforsolo,Parcerias
 }
}

function return_dados(){
document.getElementById('meio').innerHTML = ifASP.document.body.innerHTML;
} 
function return_dados2(){
document.getElementById('meio2').innerHTML = ifASP.document.body.innerHTML
}    

function Verifica(){
var assunto  = document.cadfrm.assunto.value  ;
var nome     = document.cadfrm.nome.value     ;
var empresa  = document.cadfrm.empresa.value  ;
var email    = document.cadfrm.email.value    ;
var telefone = document.cadfrm.telefone.value ;
var msg      = document.cadfrm.mensagem.value ;
if (nome=='')
   {alert ('Favor informar o Nome!');
    document.cadfrm.nome.focus();
    return false;}
if (empresa=='')
   {alert ('Favor informar o Nome da Empresa.');
    document.cadfrm.empresa.focus();
    return false;}
if (email=='')
   {alert ('Favor informar o seu e-mail.');
    document.cadfrm.email.focus();
    return false;} 
else{
     if (email.indexOf('@') == -1 || email.length < 12)
        {alert('Favor Digite um e-mail válido! Ex:(seulogin@seudominio.com.br');
         document.cadfrm.email.focus();
         return false;}
    }	
if (telefone=='')
   {alert ('Favor informar seu Telefone para Contato!');
    document.cadfrm.telefone.focus();
    return false;}
if (msg=='')
   {alert ('Você prescisa informar uma mensagem para envio!');
    document.cadfrm.mensagem.focus();
    return false;} 
ifASP.location = 'email_envio.asp?nome=' + nome + '&empresa=' + empresa + '&assunto=' + assunto + '&email=' + email + '&telefone=' + telefone + '&mensagem=' + msg;
//document.cadfrm.submit();	    
}
