$(function() {
  		
		/*Ejecuciones!!************************/
		
		$("div.over").hide();
		
		$("div#invierte").hide();
		$("div#banner_video").hide();
		$("div#ventana_financiamiento").hide();
		
		MM_preloadImages('images/icono_video_villa_dorada_over.png', 'images/icono_financiamiento_terrenos_morelos_over.png', 'images/icono_twitter_villa_dorada_over', 'images/icono_facebook_villa_dorada_over', 'images/invierte_morelos_flecha_over.png', 'images/icono_video_villa_dorada_sec_over.png', 'images/icono_financiamiento_terrenos_morelos_sec_over.png', 'images/icono_home_villa_dorada_sec_over.png', 'images/animacion/b1_clic_over.png', 'images/animacion/b2_clic_over.png', 'images/animacion/b3_clic_over.png', 'images/animacion/ib1_clic_over.png', 'images/animacion/ib2_clic_over.png', 'images/animacion/ib3_clic_over.png', 'images/animacion/ib4_clic_over.png');
		
		
		/*Funciones!!*/
		
		
		
		function aparece(div_texto){	
		$(div_texto).fadeIn(1000)
		}
		
		function crece(botonE, botonA){	
		
		$(botonE).hide();
		 $(botonA).animate({width:"173px"},250)
		}
		
		function adios(botonEs, botonAp){	
		
		$(botonEs).hide();
		$(botonAp).show()
		}
		
		
		
		/*BTN_video*/
		
		
		
		$("#video").mouseover(function(){
		MM_swapImage('ico_video','','images/icono_video_villa_dorada_over.png',1);
		MM_swapImage('ico_video_sec','','images/icono_video_villa_dorada_sec_over.png',1);
		})
		
		$("#video").mouseout(function(){
		MM_swapImgRestore();
		})
		
		$("#video").click(function(){
		
		aparece("#banner_video")
		})
		
		$("#bv_cerrar").click(function(){
		$("#banner_video").hide()
		})
		
		/*BTN_financiamiento*/
		
		$("#ico_financiamiento").mouseover(function(){
		MM_swapImage('ico_financiamiento','','images/icono_financiamiento_terrenos_morelos_over.png',1);
		})
		
		$("#ico_financiamiento").mouseout(function(){
		MM_swapImgRestore();
		})
		
		$("#ico_financiamiento_sec").mouseover(function(){
		MM_swapImage('ico_financiamiento_sec','','images/icono_financiamiento_terrenos_morelos_sec_over.png',1);
		})
		
		$("#ico_financiamiento_sec").mouseout(function(){
		MM_swapImgRestore();
		})
		
		$(".v_financiamiento").click(function(){
		
		aparece("#ventana_financiamiento")
		})
		
		$("#vf_cerrar").click(function(){
		$("#ventana_financiamiento").hide()
		})
		
		/*BTN_Twitter*/
		
		$("#ico_twitter").mouseover(function(){
		MM_swapImage('ico_twitter','','images/icono_twitter_villa_dorada_over.png',1);
		})
		
		$("#ico_twitter").mouseout(function(){
		MM_swapImgRestore();
		})
		
		/*BTN_Facebook*/
		
		$("#ico_facebook").mouseover(function(){
		MM_swapImage('ico_facebook','','images/icono_facebook_villa_dorada_over.png',1);
		})
		
		$("#ico_facebook").mouseout(function(){
		MM_swapImgRestore();
		})
		
		/*BTN_Banner Planes*/
		
		$("#cambio_img").mouseover(function(){
		MM_swapImage('ico_flecha','','images/invierte_morelos_flecha_over.png',1);
		})
		
		$("#cambio_img").mouseout(function(){
		MM_swapImgRestore();
		})
		
		/*BTN_Home INTER*/
		
		$("#btn_home").mouseover(function(){
		MM_swapImage('ico_home_sec','','images/icono_home_villa_dorada_sec_over.png',1);
		})
		
		$("#btn_home").mouseout(function(){
		MM_swapImgRestore();
		})
		
		/*BTN_Animacion HOME*/
		
		$("#boton_transp1").mouseover(function(){
		MM_swapImage('img_clic1','','images/animacion/b1_clic_over.png',1);
		})
		
		$("#boton_transp1").mouseout(function(){
		MM_swapImgRestore();
		})
		
		$("#boton_transp2").mouseover(function(){
		MM_swapImage('img_clic2','','images/animacion/b2_clic_over.png',1);
		})
		
		$("#boton_transp2").mouseout(function(){
		MM_swapImgRestore();
		})
		
		$("#boton_transp3").mouseover(function(){
		MM_swapImage('img_clic3','','images/animacion/b3_clic_over.png',1);
		})
		
		$("#boton_transp3").mouseout(function(){
		MM_swapImgRestore();
		})
		
		/*BTN_Animacion INTERIORES*/
		
		
		$("#iboton_transp1").mouseover(function(){
		MM_swapImage('iimg_clic1','','images/animacion/ib1_clic_over.png',1);
		})
		
		$("#iboton_transp1").mouseout(function(){
		MM_swapImgRestore();
		})
		
		$("#iboton_transp2").mouseover(function(){
		MM_swapImage('iimg_clic2','','images/animacion/ib2_clic_over.png',1);
		})
		
		$("#iboton_transp2").mouseout(function(){
		MM_swapImgRestore();
		})
		
		$("#iboton_transp3").mouseover(function(){
		MM_swapImage('iimg_clic3','','images/animacion/ib3_clic_over.png',1);
		})
		
		$("#iboton_transp4").mouseout(function(){
		MM_swapImgRestore();
		})
		
		$("#iboton_transp4").mouseover(function(){
		MM_swapImage('iimg_clic4','','images/animacion/ib4_clic_over.png',1);
		})
		
		$("#iboton_transp4").mouseout(function(){
		MM_swapImgRestore();
		})
		
		aparece("div#invierte")
			
		
});

