/* Jquery */

$(document).ready(function(){
						   
	$('input[type="text"],input[type="password"]').focus(function () {
        $(this).addClass("corFoco");
    });
    $('input[type="text"]').blur(function () {
        $(this).removeClass("corFoco");
    });
	$('textarea').focus(function () {
        $(this).addClass("corFoco");
    });
    $('textarea').blur(function () {
        $(this).removeClass("corFoco");
    });
	
	
	/*Arredonda os cantos do corpo main da pagina*/	
	
	$('.main').corner("round, bottom, 25px");
	$('#pg_cliente_bt, #pg_cliente_bt2, #pg_cliente_bt3').corner("round, 25px");
	
	/*Funções do slider*/
	$("#slider ul").cycle({
        fx: 'fade',
        speed: 2500,
        timeout: 12000,
		prev : '#prev',
    	next : '#next'
	});
	
	/*Efeitos sobre os botões*/
	$('#img_logo_index').click(function(){
			$(window.document.location).attr('href',"index.php");
	})
	
	$('#empresa, #solucao, #contato, #noticias, #cliente, #colaboradores, #representante').css("height","35px");
	$('#empresa, #solucao, #contato, #noticias, #cliente, #colaboradores, #representante').hover(function(){
		$(this).css("background-color", "#0093DD");
		$(this).css("font-weight","bold");
	});
	$('#empresa, #solucao, #contato, #noticias, #cliente, #colaboradores, #representante').mouseout(function(){
		$(this).css("background-color", "");
		$(this).css("font-weight","");
	});
	$('#empresa').click(function(){
			$(window.document.location).attr('href',"http://www.sifat.com.br/empresa.php");
	});
	$('#solucao').click(function(){
			$(window.document.location).attr('href',"http://www.sifat.com.br/solucao.php");
	});
	$('#cliente').click(function(){
			$(window.document.location).attr('href',"http://www.sifat.com.br/cliente.php");
	});
	$('#contato').click(function(){
			$(window.document.location).attr('href',"http://www.sifat.com.br/contato.php");
	});
	$('#noticias').click(function(){
			$(window.document.location).attr('href',"http://www.sifat.com.br/noticias.php");
	});
	$('#colaboradores').click(function(){
			$(window.document.location).attr('href',"http://www.sifat.com.br/colaboradores.php");
	});
	$('#representante').click(function(){
			$(window.document.location).attr('href',"http://www.sifat.com.br/representante/");
	});
	
	$("service_bt_visible").click(function(){
			$("#title").parent("visibility","visible");
		});
	
	$("#img_service").click(function(){
			$(window.document.location).attr('href',"service.php");
	});
	$("#img_download").click(function(){
			$(window.document.location).attr('href',"download.php");
	});
	$("#img_atualizar").click(function(){
			$(window.document.location).attr('href',"liberacao.php");
	});
	
});
	
/*Java Script*/
function reSize(img){
	document.getElementById(img).style.height = (document.body.clientHeight-100)*0.3;
}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22763681-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

