// JavaScript Document
/* funciones para mostrar banners*/
function hideall(hide){
	if(hide!=1){
	$('#banner_1').fadeOut('fast');}
	if(hide!=2){
	$('#banner_2').fadeOut('fast');}
	if(hide!=3){
	$('#banner_3').fadeOut('fast');}
	if(hide!=4){
	$('#banner_4').fadeOut('fast');}
	if(hide!=5){
	$('#banner_5').fadeOut('fast');}
	}
function banner(num){
		hideall(num);
		if(num==1){
			 $('#banner_1').fadeIn('slow');
			}
		if(num==2){
			 $('#banner_2').fadeIn('slow');
			}
		if(num==3){
			 $('#banner_3').fadeIn('slow');
			}
		if(num==4){
			 $('#banner_4').fadeIn('slow');
			}
		if(num==5){
			 $('#banner_5').fadeIn('slow');
			}
	}
/*function to change colors*/
	function hide_colors(color){
		if(color!=1){
			$('#color_1').fadeOut('fast');}
		if(color!=2){
			$('#color_2').fadeOut('fast');}
		if(color!=3){
			$('#color_3').fadeOut('fast');}
		if(color!=4){
			$('#color_4').fadeOut('fast');}}

/*function to change colors*/
	function hide_colors2(color){
		if(color!=5){
			$('#color_5').fadeOut('fast');}
		if(color!=6){
			$('#color_6').fadeOut('fast');}}
			
	$(function () {
		$("#image_color1").hover(function(){hide_colors(1);$('#color_1').fadeIn('slow');},function(){return(false)});
		$("#image_color2").hover(function(){hide_colors(2);$('#color_2').fadeIn('slow');},function(){return(false)});
		$("#image_color3").hover(function(){hide_colors(3);$('#color_3').fadeIn('slow');},function(){return(false)});
		$("#image_color4").hover(function(){hide_colors(4);$('#color_4').fadeIn('slow');},function(){return(false)});
		$("#image_color5").hover(function(){hide_colors2(5);$('#color_5').fadeIn('slow');},function(){return(false)});
		$("#image_color6").hover(function(){hide_colors2(6);$('#color_6').fadeIn('slow');},function(){return(false)});
	}
);
