$ = jQuery.noConflict();
	
	$(document).ready(function(){   
   
              // opacity para el desplegable 2do nivel   
 			  $(".opacity").fadeTo("fast", ".9");
			  
			  // accordion desplegable
			   $(".acordion h3:first").addClass("active");
			   $(".acordion div:not(:first)").hide();
			   $(".acordion h3").click(function(){
						$(this).next("div").slideToggle("slow").siblings("div:visible").slideUp("slow");
						$(this).toggleClass("active");
						$(this).siblings("h3").removeClass("active");
				});
				
				// modal para terminos y condiciones				
				$('#toggle-tyc').click(function (e) {
		            $('#div-tyc').modal();
		               return false;
	            });
				// modal para mapa rivadavia 8981	
				$('#toggle-map-1').click(function (e) {
		            $('#map-1').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });	
				// modal para mapa rivadavia 6102	
				$('#toggle-map-2').click(function (e) {
		            $('#map-2').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });	
				// modal para mapa yerbal 4586
				$('#toggle-map-3').click(function (e) {
		            $('#map-3').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });	
				// modal para mapa donato alvarez 1342
				$('#toggle-map-4').click(function (e) {
		            $('#map-4').modal({
						containerCss:{
							height:460,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });
				$('#toggle-map-5').click(function (e) {
		            $('#map-5').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });
				$('#toggle-map-6').click(function (e) {
		            $('#map-6').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });
				$('#toggle-map-7').click(function (e) {
		            $('#map-7').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });
				$('#toggle-map-8').click(function (e) {
		            $('#map-8').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });
				$('#toggle-map-9').click(function (e) {
		            $('#map-9').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });
				$('#toggle-map-10').click(function (e) {
		            $('#map-10').modal({
						containerCss:{
							height:480,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });				
				$('#toggle-map-11').click(function (e) {
		            $('#map-11').modal({
						containerCss:{
							height:460,
							padding:10,
							width:617
							//borderColor: "#ffffff"
						}
					});
		               return false;
	            });
				// modal para contacto usados
				$('#toggle-contacto').click(function (e) {
		            $('#frm-contacto').modal();
		               return false;
	            });					
				$("#infoRegistral").click(function(e){
					$("#boxFade").fadeIn("slow");
				});
				 
				 $("#boxClose").click(function(e){
					$("#boxFade").fadeOut("slow");
				});	
				

   });	
   
	changeImage = function(ruta, numero){

		$('.changeImage').click(function(){
			$(".contentImg_" + numero).html('<img src="'+ ruta +'"/>');
		});
		
		$('.changeMap').click(function(){
			$(".contentImg_" + numero).html('<img src="'+ ruta +'"/>');
		});				
		
	};
 
	 // llamada para los teaser.
	callServiceText = function (p_name,p_data,fx,async){
		var v_async = false;
		if(async)v_async = async;
		$.ajax({						
			type: "POST",
			dataType:"text",
			async:v_async,
			data:p_data,
			url: p_name,
			success: fx,
			cache:false
		});
	};   

	// print teaser home	
	// teaserHome = function(txt){$(".teaser_home").html(txt);};
	// teaserTrabaje = function(txt){$(".teaser_trabaje").html(txt);};
	// teaserContactenos = function(txt){$(".teaser_contactenos").html(txt);};
	// teaserHilux = function(txt){$(".teaser_hilux").html(txt);};
	// teaserCorolla = function(txt){$(".teaser_corolla").html(txt);};
	// teaserSw4 = function(txt){$(".teaser_sw4").html(txt);};
	// teaserRav4 = function(txt){$(".teaser_rav4").html(txt);};
	// teaserCamry = function(txt){$(".teaser_camry").html(txt);};
	// teaserTodalaGama = function(txt){$(".teaser_todalagama").html(txt);};
	
	// teaserLcprado = function(txt){$(".teaser_lcprado").html(txt);};
	// teaserLc200 = function(txt){$(".teaser_lc200").html(txt);};
	// teaserPrius = function(txt){$(".teaser_prius").html(txt);};
		
	$(function(){
		//callServiceText ("teaser/teaser_home.html","",teaserHome);
		 // callServiceText ("teaser/teaser_trabaje.html","",teaserTrabaje);
		 // callServiceText ("teaser/teaser_hilux.html","",teaserHilux);
		 // callServiceText ("teaser/teaser_corolla.html","",teaserCorolla);
		 // callServiceText ("teaser/teaser_sw4.html","",teaserSw4);
		 // callServiceText ("teaser/teaser_rav4.html","",teaserRav4);
		 // callServiceText ("teaser/teaser_camry.html","",teaserCamry);
		 // callServiceText ("teaser/teaser_todalagama.html","",teaserTodalaGama);
		 // callServiceText ("teaser/teaser_lcprado.html","",teaserLcprado);
		 // callServiceText ("teaser/teaser_lc200.html","",teaserLc200);
		 // callServiceText ("teaser/teaser_prius.html","",teaserPrius);
		 // callServiceText ("teaser/teaser_contactenos.html","",teaserContactenos);
		 
	});
 
   

