$(document).ready(function(){
		$('.webmail').hover(function() {
		$(this).stop().animate({ backgroundColor: "#2D7EB2"}, 300);
		},function() {
		$(this).stop().animate({ backgroundColor: "#303030" }, 300);
		});
		
		$('.portal').hover(function() {
		$(this).stop().animate({ backgroundColor: "#2D7EB2"}, 300);
		},function() {
		$(this).stop().animate({ backgroundColor: "#303030" }, 300);
		});

		$('#box1').hover(function(){
			$('#boxclk1').css('background', 'url(imagens/frame_on.png)');
			},function() {
			$('#boxclk1').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box2').hover(function(){
			$('#boxclk2').css('background', 'url(imagens/frame_on.png)');
			},function() {
			$('#boxclk2').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box3').hover(function(){
			$('#boxclk3').css('background', 'url(imagens/frame_on.png)');
			},function() {
			$('#boxclk3').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box4').hover(function(){
			$('#boxclk4').css('background', 'url(imagens/frame_on.png)');
			},function() {
			$('#boxclk4').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box5').hover(function(){
			$('#boxclk5').css('background', 'url(imagens/frame_on.png)');
			},function() {
			$('#boxclk5').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box6').hover(function(){
			$('#boxclk6').css('background', 'url(imagens/frame_on.png)');
			},function() {
			$('#boxclk6').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box7').mouseover(function(){
			$('#boxclk7').css('background', 'url(imagens/frame_on.png)');
		});
		$('#box7').mouseout(function(){
			$('#boxclk7').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box8').mouseover(function(){
			$('#boxclk8').css('background', 'url(imagens/frame_on.png)');
		});
		$('#box8').mouseout(function(){
			$('#boxclk8').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box9').mouseover(function(){
			$('#boxclk9').css('background', 'url(imagens/frame_on.png)');
		});
		$('#box9').mouseout(function(){
			$('#boxclk9').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box10').mouseover(function(){
			$('#boxclk10').css('background', 'url(imagens/frame_on.png)');
		});
		$('#box10').mouseout(function(){
			$('#boxclk10').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box11').mouseover(function(){
			$('#boxclk11').css('background', 'url(imagens/frame_on.png)');
		});
		$('#box11').mouseout(function(){
			$('#boxclk11').css('background', 'url(imagens/frame_off.png)');
		});
		
		$('#box12').mouseover(function(){
			$('#boxclk12').css('background', 'url(imagens/frame_on.png)');
		});
		$('#box12').mouseout(function(){
			$('#boxclk12').css('background', 'url(imagens/frame_off.png)');
		});
		/*******
		$('img.muda').mouseover(function(){
			var newSrc = $('img.muda').attr("src").replace("imagens/frame_social_off.png", "imagens/frame_social_on.png");
			$('img.muda').attr("src", newSrc); 
			//$('img.muda').removeAttr("usemap");
		});
		$('img.muda').mouseout(function(){
			var newSrc = $(this).attr("src").replace("imagens/frame_social_on.png", "imagens/frame_social_off.png");
			$(this).attr("src", newSrc); 
			//$(this).addAttr("usemap");
		});
		***********/
}); 



$(document).ready(function() {
	/*
	*   Examples - images
	*/
	$("a.boxfancy").fancybox({
		'padding' : 0,
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'width' : 800,
		'height' : 520,
		'autoScale'		: false,
		'overlayOpacity'	: 0.85
	});
	
		$("#cases").fancybox({
		'padding' : 0,
		'scrolling': 'no',
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'width' : 750,
		'height' : 500,
		'autoScale'		: false,
		'overlayOpacity'	: 0.85
	});
	
		$("#parceiro").fancybox({
		'padding' : 0,
		'scrolling': 'no',
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'width' : 800,
		'height' : 560,
		'autoScale'		: false,
		'overlayOpacity'	: 0.85
	});
	
	$("#solucoes").fancybox({
		'padding' : 0,
		'scrolling': 'no',
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'width' : 940,
		'height' : 640,
		'autoScale'		: false,
		'overlayOpacity'	: 0.85
	});
	
	$("#servicos").fancybox({
		'padding' : 0,
		'scrolling': 'no',
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'width' : 750,
		'height' : 595,
		'autoScale'		: false,
		'overlayOpacity'	: 0.85
	});
	
	$("#produtos").fancybox({
		'padding' : 0,
		'scrolling': 'no',
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'width' : 900,
		'height' : 480,
		'autoScale'		: false,
		'overlayOpacity'	: 0.85
	});
	
	$("#tecnologia").fancybox({
		'padding' : 0,
		'scrolling': 'no',
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'width' : 900,
		'height' : 480,
		'autoScale'		: false,
		'overlayOpacity'	: 0.85
	});
	
		$("#avalia").fancybox({
		'padding' : 0,
		'scrolling': 'yes',
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'width' : 820,
		'height' : 650,
		'autoScale'		: false,
		'overlayOpacity'	: 0.85
	});
	
	$("#dash").fancybox({
		'padding'		: 0,
		'autoScale'		: false,
		'titlePosition'		: 'outside',
		'overlayColor'		: '#000',
		'swf' : {wmode: 'transparent'},
		'width' : 970,
		'height' : 622,
		'overlayOpacity'	: 0.65
	});
	
$("#youtube").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'		: 680,
			'height'		: 495,
			'overlayColor'		: '#000',
			'overlayOpacity'	: 0.9,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});
	return false;
});
	
/*			$("a#box001").fancybox();

	$("a#box003").fancybox({
		'transitionIn'	: 'none',
		'transitionOut'	: 'none'	
	});

	$("a#box004").fancybox({
		'opacity'		: true,
		'overlayShow'	: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'none'
	});
*/
});
