//Funciones Generales JQuery

$(document).ready(function(){
	
	//Precarga de imágenes desde CSS
	$.preloadCssImages();
	
	//Animación Logo, Fotos Contenido y Submenú Contenido
	$('#logo, #vehicule_main_photo, .vehicle_mini_photos, .float_right, .vehicule_menu, .news_img, .form_container, .cat_submenu').css('display', 'none');
	$('#logo').fadeIn(1500); 
	$('#vehicule_main_photo, .vehicle_mini_photos, .float_right, .news_img, .form_container').fadeIn(1000);	
	$('#tiger_nose_header').delay(500).animate({top: '-330' }, 400);
	$('.vehicule_menu').delay(800).slideDown('slow');
	$('#vehicule_spec_img').delay(1000).animate({right: '-15' }, 700);

	//Submenú Izquierda Modelo
	$('#cat_pdf').click(function(){
		$('.cat_submenu').slideDown('fast')
	});

	//Menú Modelos
	$('#showroom').hover(function(){
		$('#showroom a').addClass("showroom_active");
		$('#tiger_nose_header').stop().animate({top: '-15'}, 450);
		$("#models_container").hover(function(){},
		  function(){
			$('#tiger_nose_header').stop().animate({top: '-330' }, 450);
			$('#showroom a').removeClass("showroom_active");
		  }
		);
	}, function(){
		$('#wrapper').hover(function(){
			$('#tiger_nose_header').stop().animate({top: '-330' }, 450);
			$('#showroom a').removeClass("showroom_active");
		})
	});
	$('li.main_menu_opc a').hover(function(){
		$('#tiger_nose_header').stop().animate({top: '-330' }, 450);
	})
	
	//Imágenes modelos submenú principal
	$('ul.showroom_menu li span a').bind('mouseover', function(e) { 
		$('#model_img').attr("src", $(e.target).attr('data-image')).css('display', 'none');
		$('#model_img').attr("src", $(e.target).attr('data-image')).fadeIn(300);
	});
	
	//Opacidad para imágenes
	$(".img_list_mod").fadeTo("normal", 0.7);
	$(".img_list_mod").hover(function(){
		$(this).fadeTo("normal", 1.0);
	},function(){
		$(this).fadeTo("normal", 0.7);
	});	
	
	//Función Carrusel
	function mycarousel_initCallback(carousel)
	{
		carousel.buttonNext.bind('click', function() {
			carousel.startAuto(0);
		});
	
		carousel.buttonPrev.bind('click', function() {
			carousel.startAuto(0);
		});
	
		carousel.clip.hover(function() {
			carousel.stopAuto();
		}, function() {
			carousel.startAuto();
		});
	};
	
	//Slideshow Inicio
	$('#slide').coinslider({ 
		hoverPause: false,
		spw: 3,
		sph: 3
	});

	//Carrusel
	jQuery('#mycarousel').jcarousel({
        auto: 5,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
	
	//Slideshow Inicio - Resoluciones menores a 760px de ancho
    $('#pub_home_page').cycle({
		fx: 'fade',
		delay: 0
	});
	
	//Validar Formularios
	$("#contact_form, #consult_form, #forgot_pass_form, #profile_form").validationEngine();
	
	//Activar Combos Regiones Formularios
	$("#provincia").change(function(){
	$("#provincia option:selected").each(function(){	
		elegido=$("#provincia").val();			 
		$.post("canton.php?",{val_seleccionado:elegido}, function(data){		
		$("#canton").html(data);
		});
		});
	});

	//Ticker Noticias
	$(function(){
		$('#news-ticker nav').vTicker({ 
			speed: 500,
			pause: 4000,
			animation: 'fade',
			mousePause: false,
			showItems: 4
		});
	});
	
	//Animar Color Texto Links
	$(function(){
		$("ul.main_menu li a, ul.tree_menu li a, ul.vehicule_menu li a, article header a, ul.colors_thumbs li a, ul.showroom_menu li a, ul.sitemap li a, ul.sitemap_models li a").hover(
		  function () {
			$(this).animate({
				color: "#be0006"
			}, 300);
		  },
		  function () {
			$(this).animate({
				color: "#666"
			}, 500);
		  }
		);
	});
	
	$(function(){
		//$("#news-ticker nav ul li a, ul.specs_models li a").hover(
		$("ul.specs_models li a").hover(
		  function () {
			$(this).animate({
				color: "#be0006"
			}, 300);
		  },
		  function () {
			$(this).animate({
				color: "#a1a1a1"
			}, 500);
		  }
		);
	});
	
	$(function(){
		$("ul.sub_menu li a").hover(
		  function () {
			$(this).animate({
				color: "#be0006"
			}, 300);
		  },
		  function () {
			$(this).animate({
				color: "#999"
			}, 500);
		  }
		);
	});
		
	//Cambiar Colores de los Modelos y Contenidos Fichas Técnicas Modelos
	$(".img_content, .specs_content").hide();
	$(".img_content").fadeIn();
	$("ul.colors_thumbs li:first, ul.specs_models li:first").addClass("mactive").show();
	$(".img_content:first, .specs_content:first").show();

	$("ul.colors_thumbs li, ul.specs_models li").click(function()
       {
		$("ul.colors_thumbs li, ul.specs_models li").removeClass("mactive");
		$(this).addClass("mactive");
		$(".img_content, .specs_content").hide();
		
		var activeTab = $(this).find("a").attr("href");
		$(activeTab).fadeIn();
		return false;
	});

	//Galería
	Galleria.loadTheme('js/galleria/galleria.classic.min.js');	
	$('#galleria').galleria({
		autoplay: 7000
	});
	
	//360
           $(function(){
      //$("#spritespin").spritespin({
      //  width   : 80,
      //  height  : 80,
      //  image   : "images/spritespin.jpg",
      //  frame   : 0,
      //  frames  : 71,
      //  animate : true,
      //  loop    : true,
      //  behavior:"spin"
      //});
      //
      $("#vista_360_sportage").spritespin({
		  
        width     : 697,
        height    : 355,
        frames    : 34,
        image     : [
          		"images/gallery/sportage/360/001.jpg" ,
                "images/gallery/sportage/360/002.jpg" ,
                "images/gallery/sportage/360/003.jpg" ,
                "images/gallery/sportage/360/004.jpg" ,
                "images/gallery/sportage/360/005.jpg" ,
                "images/gallery/sportage/360/006.jpg" ,
                "images/gallery/sportage/360/007.jpg" ,
                "images/gallery/sportage/360/008.jpg" ,
                "images/gallery/sportage/360/009.jpg" ,
                "images/gallery/sportage/360/010.jpg" ,
                "images/gallery/sportage/360/011.jpg" ,
                "images/gallery/sportage/360/012.jpg" ,
                "images/gallery/sportage/360/013.jpg" ,
                "images/gallery/sportage/360/014.jpg" ,
                "images/gallery/sportage/360/015.jpg" ,
                "images/gallery/sportage/360/016.jpg" ,
                "images/gallery/sportage/360/017.jpg" ,
                "images/gallery/sportage/360/018.jpg" ,
                "images/gallery/sportage/360/019.jpg" ,
                "images/gallery/sportage/360/020.jpg" ,
                "images/gallery/sportage/360/021.jpg" ,
                "images/gallery/sportage/360/022.jpg" ,
                "images/gallery/sportage/360/023.jpg" ,
                "images/gallery/sportage/360/024.jpg" ,
                "images/gallery/sportage/360/025.jpg" ,
                "images/gallery/sportage/360/026.jpg" ,
                "images/gallery/sportage/360/027.jpg" ,
                "images/gallery/sportage/360/028.jpg" ,
                "images/gallery/sportage/360/029.jpg" ,
                "images/gallery/sportage/360/030.jpg" ,
                "images/gallery/sportage/360/031.jpg" ,
                "images/gallery/sportage/360/032.jpg" ,
                "images/gallery/sportage/360/033.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
  ///////////////////////////////////////////////////////////

	$("#vista_360_soul").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/soul/360/000.jpg" ,
          		"images/gallery/soul/360/001.jpg" ,
                "images/gallery/soul/360/002.jpg" ,
                "images/gallery/soul/360/003.jpg" ,
                "images/gallery/soul/360/004.jpg" ,
                "images/gallery/soul/360/005.jpg" ,
                "images/gallery/soul/360/006.jpg" ,
                "images/gallery/soul/360/007.jpg" ,
                "images/gallery/soul/360/008.jpg" ,
                "images/gallery/soul/360/009.jpg" ,
                "images/gallery/soul/360/010.jpg" ,
                "images/gallery/soul/360/011.jpg" ,
                "images/gallery/soul/360/012.jpg" ,
                "images/gallery/soul/360/013.jpg" ,
                "images/gallery/soul/360/014.jpg" ,
                "images/gallery/soul/360/015.jpg" ,
                "images/gallery/soul/360/016.jpg" ,
                "images/gallery/soul/360/017.jpg" ,
                "images/gallery/soul/360/018.jpg" ,
                "images/gallery/soul/360/019.jpg" ,
                "images/gallery/soul/360/020.jpg" ,
                "images/gallery/soul/360/021.jpg" ,
                "images/gallery/soul/360/022.jpg" ,
                "images/gallery/soul/360/023.jpg" ,
                "images/gallery/soul/360/024.jpg" ,
                "images/gallery/soul/360/025.jpg" ,
                "images/gallery/soul/360/026.jpg" ,
                "images/gallery/soul/360/027.jpg" ,
                "images/gallery/soul/360/028.jpg" ,
                "images/gallery/soul/360/029.jpg" ,
                "images/gallery/soul/360/030.jpg" ,
                "images/gallery/soul/360/031.jpg" ,
                "images/gallery/soul/360/032.jpg" ,
                "images/gallery/soul/360/033.jpg" ,
				"images/gallery/soul/360/034.jpg" ,
				"images/gallery/soul/360/035.jpg" ,
				"images/gallery/soul/360/036.jpg" ,
				"images/gallery/soul/360/037.jpg" ,
				"images/gallery/soul/360/038.jpg" ,
				"images/gallery/soul/360/039.jpg" ,
				"images/gallery/soul/360/040.jpg" ,
				"images/gallery/soul/360/041.jpg" ,
				"images/gallery/soul/360/042.jpg" ,
				"images/gallery/soul/360/043.jpg" ,
				"images/gallery/soul/360/044.jpg" ,
				"images/gallery/soul/360/045.jpg" ,
				"images/gallery/soul/360/046.jpg" ,
				"images/gallery/soul/360/047.jpg" ,
				"images/gallery/soul/360/048.jpg" ,
				"images/gallery/soul/360/049.jpg" ,
				"images/gallery/soul/360/050.jpg" ,
				"images/gallery/soul/360/051.jpg" ,
				"images/gallery/soul/360/052.jpg" ,
				"images/gallery/soul/360/053.jpg" ,
				"images/gallery/soul/360/054.jpg" ,
				"images/gallery/soul/360/055.jpg" ,
				"images/gallery/soul/360/056.jpg" ,
				"images/gallery/soul/360/057.jpg" ,
				"images/gallery/soul/360/058.jpg" ,
				"images/gallery/soul/360/059.jpg" ,
				"images/gallery/soul/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  ///////////////////////////////////////////////////////////

	$("#vista_360_picanto").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/picanto/360/000.jpg" ,
          		"images/gallery/picanto/360/001.jpg" ,
                "images/gallery/picanto/360/002.jpg" ,
                "images/gallery/picanto/360/003.jpg" ,
                "images/gallery/picanto/360/004.jpg" ,
                "images/gallery/picanto/360/005.jpg" ,
                "images/gallery/picanto/360/006.jpg" ,
                "images/gallery/picanto/360/007.jpg" ,
                "images/gallery/picanto/360/008.jpg" ,
                "images/gallery/picanto/360/009.jpg" ,
                "images/gallery/picanto/360/010.jpg" ,
                "images/gallery/picanto/360/011.jpg" ,
                "images/gallery/picanto/360/012.jpg" ,
                "images/gallery/picanto/360/013.jpg" ,
                "images/gallery/picanto/360/014.jpg" ,
                "images/gallery/picanto/360/015.jpg" ,
                "images/gallery/picanto/360/016.jpg" ,
                "images/gallery/picanto/360/017.jpg" ,
                "images/gallery/picanto/360/018.jpg" ,
                "images/gallery/picanto/360/019.jpg" ,
                "images/gallery/picanto/360/020.jpg" ,
                "images/gallery/picanto/360/021.jpg" ,
                "images/gallery/picanto/360/022.jpg" ,
                "images/gallery/picanto/360/023.jpg" ,
                "images/gallery/picanto/360/024.jpg" ,
                "images/gallery/picanto/360/025.jpg" ,
                "images/gallery/picanto/360/026.jpg" ,
                "images/gallery/picanto/360/027.jpg" ,
                "images/gallery/picanto/360/028.jpg" ,
                "images/gallery/picanto/360/029.jpg" ,
                "images/gallery/picanto/360/030.jpg" ,
                "images/gallery/picanto/360/031.jpg" ,
                "images/gallery/picanto/360/032.jpg" ,
                "images/gallery/picanto/360/033.jpg" ,
				"images/gallery/picanto/360/034.jpg" ,
				"images/gallery/picanto/360/035.jpg" ,
				"images/gallery/picanto/360/036.jpg" ,
				"images/gallery/picanto/360/037.jpg" ,
				"images/gallery/picanto/360/038.jpg" ,
				"images/gallery/picanto/360/039.jpg" ,
				"images/gallery/picanto/360/040.jpg" ,
				"images/gallery/picanto/360/041.jpg" ,
				"images/gallery/picanto/360/042.jpg" ,
				"images/gallery/picanto/360/043.jpg" ,
				"images/gallery/picanto/360/044.jpg" ,
				"images/gallery/picanto/360/045.jpg" ,
				"images/gallery/picanto/360/046.jpg" ,
				"images/gallery/picanto/360/047.jpg" ,
				"images/gallery/picanto/360/048.jpg" ,
				"images/gallery/picanto/360/049.jpg" ,
				"images/gallery/picanto/360/050.jpg" ,
				"images/gallery/picanto/360/051.jpg" ,
				"images/gallery/picanto/360/052.jpg" ,
				"images/gallery/picanto/360/053.jpg" ,
				"images/gallery/picanto/360/054.jpg" ,
				"images/gallery/picanto/360/055.jpg" ,
				"images/gallery/picanto/360/056.jpg" ,
				"images/gallery/picanto/360/057.jpg" ,
				"images/gallery/picanto/360/058.jpg" ,
				"images/gallery/picanto/360/059.jpg" ,
				"images/gallery/picanto/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	   ///////////////////////////////////////////////////////////

	$("#vista_360_mohave").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/mohave/360/000.jpg" ,
          		"images/gallery/mohave/360/001.jpg" ,
                "images/gallery/mohave/360/002.jpg" ,
                "images/gallery/mohave/360/003.jpg" ,
                "images/gallery/mohave/360/004.jpg" ,
                "images/gallery/mohave/360/005.jpg" ,
                "images/gallery/mohave/360/006.jpg" ,
                "images/gallery/mohave/360/007.jpg" ,
                "images/gallery/mohave/360/008.jpg" ,
                "images/gallery/mohave/360/009.jpg" ,
                "images/gallery/mohave/360/010.jpg" ,
                "images/gallery/mohave/360/011.jpg" ,
                "images/gallery/mohave/360/012.jpg" ,
                "images/gallery/mohave/360/013.jpg" ,
                "images/gallery/mohave/360/014.jpg" ,
                "images/gallery/mohave/360/015.jpg" ,
                "images/gallery/mohave/360/016.jpg" ,
                "images/gallery/mohave/360/017.jpg" ,
                "images/gallery/mohave/360/018.jpg" ,
                "images/gallery/mohave/360/019.jpg" ,
                "images/gallery/mohave/360/020.jpg" ,
                "images/gallery/mohave/360/021.jpg" ,
                "images/gallery/mohave/360/022.jpg" ,
                "images/gallery/mohave/360/023.jpg" ,
                "images/gallery/mohave/360/024.jpg" ,
                "images/gallery/mohave/360/025.jpg" ,
                "images/gallery/mohave/360/026.jpg" ,
                "images/gallery/mohave/360/027.jpg" ,
                "images/gallery/mohave/360/028.jpg" ,
                "images/gallery/mohave/360/029.jpg" ,
                "images/gallery/mohave/360/030.jpg" ,
                "images/gallery/mohave/360/031.jpg" ,
                "images/gallery/mohave/360/032.jpg" ,
                "images/gallery/mohave/360/033.jpg" ,
				"images/gallery/mohave/360/034.jpg" ,
				"images/gallery/mohave/360/035.jpg" ,
				"images/gallery/mohave/360/036.jpg" ,
				"images/gallery/mohave/360/037.jpg" ,
				"images/gallery/mohave/360/038.jpg" ,
				"images/gallery/mohave/360/039.jpg" ,
				"images/gallery/mohave/360/040.jpg" ,
				"images/gallery/mohave/360/041.jpg" ,
				"images/gallery/mohave/360/042.jpg" ,
				"images/gallery/mohave/360/043.jpg" ,
				"images/gallery/mohave/360/044.jpg" ,
				"images/gallery/mohave/360/045.jpg" ,
				"images/gallery/mohave/360/046.jpg" ,
				"images/gallery/mohave/360/047.jpg" ,
				"images/gallery/mohave/360/048.jpg" ,
				"images/gallery/mohave/360/049.jpg" ,
				"images/gallery/mohave/360/050.jpg" ,
				"images/gallery/mohave/360/051.jpg" ,
				"images/gallery/mohave/360/052.jpg" ,
				"images/gallery/mohave/360/053.jpg" ,
				"images/gallery/mohave/360/054.jpg" ,
				"images/gallery/mohave/360/055.jpg" ,
				"images/gallery/mohave/360/056.jpg" ,
				"images/gallery/mohave/360/057.jpg" ,
				"images/gallery/mohave/360/058.jpg" ,
				"images/gallery/mohave/360/059.jpg" ,
				"images/gallery/mohave/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  ///////////////////////////////////////////////////////////

	$("#vista_360_riohb").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/rio-hb/360/0.jpg" ,
          		"images/gallery/rio-hb/360/1.jpg" ,
                "images/gallery/rio-hb/360/2.jpg" ,
                "images/gallery/rio-hb/360/3.jpg" ,
                "images/gallery/rio-hb/360/4.jpg" ,
                "images/gallery/rio-hb/360/5.jpg" ,
                "images/gallery/rio-hb/360/6.jpg" ,
                "images/gallery/rio-hb/360/7.jpg" ,
                "images/gallery/rio-hb/360/8.jpg" ,
                "images/gallery/rio-hb/360/09.jpg" ,
                "images/gallery/rio-hb/360/10.jpg" ,
                "images/gallery/rio-hb/360/11.jpg" ,
                "images/gallery/rio-hb/360/12.jpg" ,
                "images/gallery/rio-hb/360/13.jpg" ,
                "images/gallery/rio-hb/360/14.jpg" ,
                "images/gallery/rio-hb/360/15.jpg" ,
                "images/gallery/rio-hb/360/16.jpg" ,
                "images/gallery/rio-hb/360/17.jpg" ,
                "images/gallery/rio-hb/360/18.jpg" ,
                "images/gallery/rio-hb/360/19.jpg" ,
                "images/gallery/rio-hb/360/20.jpg" ,
                "images/gallery/rio-hb/360/21.jpg" ,
                "images/gallery/rio-hb/360/22.jpg" ,
                "images/gallery/rio-hb/360/23.jpg" ,
                "images/gallery/rio-hb/360/24.jpg" ,
                "images/gallery/rio-hb/360/25.jpg" ,
                "images/gallery/rio-hb/360/26.jpg" ,
                "images/gallery/rio-hb/360/27.jpg" ,
                "images/gallery/rio-hb/360/28.jpg" ,
                "images/gallery/rio-hb/360/29.jpg" ,
                "images/gallery/rio-hb/360/30.jpg" ,
                "images/gallery/rio-hb/360/31.jpg" ,
                "images/gallery/rio-hb/360/32.jpg" ,
                "images/gallery/rio-hb/360/33.jpg" ,
				"images/gallery/rio-hb/360/34.jpg" ,
				"images/gallery/rio-hb/360/35.jpg" ,
				"images/gallery/rio-hb/360/36.jpg" ,
				"images/gallery/rio-hb/360/37.jpg" ,
				"images/gallery/rio-hb/360/38.jpg" ,
				"images/gallery/rio-hb/360/39.jpg" ,
				"images/gallery/rio-hb/360/40.jpg" ,
				"images/gallery/rio-hb/360/41.jpg" ,
				"images/gallery/rio-hb/360/42.jpg" ,
				"images/gallery/rio-hb/360/43.jpg" ,
				"images/gallery/rio-hb/360/44.jpg" ,
				"images/gallery/rio-hb/360/45.jpg" ,
				"images/gallery/rio-hb/360/46.jpg" ,
				"images/gallery/rio-hb/360/47.jpg" ,
				"images/gallery/rio-hb/360/48.jpg" ,
				"images/gallery/rio-hb/360/49.jpg" ,
				"images/gallery/rio-hb/360/50.jpg" ,
				"images/gallery/rio-hb/360/51.jpg" ,
				"images/gallery/rio-hb/360/52.jpg" ,
				"images/gallery/rio-hb/360/53.jpg" ,
				"images/gallery/rio-hb/360/54.jpg" ,
				"images/gallery/rio-hb/360/55.jpg" ,
				"images/gallery/rio-hb/360/56.jpg" ,
				"images/gallery/rio-hb/360/57.jpg" ,
				"images/gallery/rio-hb/360/58.jpg" ,
				"images/gallery/rio-hb/360/59.jpg" ,
				"images/gallery/rio-hb/360/60.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  ///////////////////////////////////////////////////////////

	$("#vista_360_carens").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/carens/360/000.jpg" ,
          		"images/gallery/carens/360/001.jpg" ,
                "images/gallery/carens/360/002.jpg" ,
                "images/gallery/carens/360/003.jpg" ,
                "images/gallery/carens/360/004.jpg" ,
                "images/gallery/carens/360/005.jpg" ,
                "images/gallery/carens/360/006.jpg" ,
                "images/gallery/carens/360/007.jpg" ,
                "images/gallery/carens/360/008.jpg" ,
                "images/gallery/carens/360/009.jpg" ,
                "images/gallery/carens/360/010.jpg" ,
                "images/gallery/carens/360/011.jpg" ,
                "images/gallery/carens/360/012.jpg" ,
                "images/gallery/carens/360/013.jpg" ,
                "images/gallery/carens/360/014.jpg" ,
                "images/gallery/carens/360/015.jpg" ,
                "images/gallery/carens/360/016.jpg" ,
                "images/gallery/carens/360/017.jpg" ,
                "images/gallery/carens/360/018.jpg" ,
                "images/gallery/carens/360/019.jpg" ,
                "images/gallery/carens/360/020.jpg" ,
                "images/gallery/carens/360/021.jpg" ,
                "images/gallery/carens/360/022.jpg" ,
                "images/gallery/carens/360/023.jpg" ,
                "images/gallery/carens/360/024.jpg" ,
                "images/gallery/carens/360/025.jpg" ,
                "images/gallery/carens/360/026.jpg" ,
                "images/gallery/carens/360/027.jpg" ,
                "images/gallery/carens/360/028.jpg" ,
                "images/gallery/carens/360/029.jpg" ,
                "images/gallery/carens/360/030.jpg" ,
                "images/gallery/carens/360/031.jpg" ,
                "images/gallery/carens/360/032.jpg" ,
                "images/gallery/carens/360/033.jpg" ,
				"images/gallery/carens/360/034.jpg" ,
				"images/gallery/carens/360/035.jpg" ,
				"images/gallery/carens/360/036.jpg" ,
				"images/gallery/carens/360/037.jpg" ,
				"images/gallery/carens/360/038.jpg" ,
				"images/gallery/carens/360/039.jpg" ,
				"images/gallery/carens/360/040.jpg" ,
				"images/gallery/carens/360/041.jpg" ,
				"images/gallery/carens/360/042.jpg" ,
				"images/gallery/carens/360/043.jpg" ,
				"images/gallery/carens/360/044.jpg" ,
				"images/gallery/carens/360/045.jpg" ,
				"images/gallery/carens/360/046.jpg" ,
				"images/gallery/carens/360/047.jpg" ,
				"images/gallery/carens/360/048.jpg" ,
				"images/gallery/carens/360/049.jpg" ,
				"images/gallery/carens/360/050.jpg" ,
				"images/gallery/carens/360/051.jpg" ,
				"images/gallery/carens/360/052.jpg" ,
				"images/gallery/carens/360/053.jpg" ,
				"images/gallery/carens/360/054.jpg" ,
				"images/gallery/carens/360/055.jpg" ,
				"images/gallery/carens/360/056.jpg" ,
				"images/gallery/carens/360/057.jpg" ,
				"images/gallery/carens/360/058.jpg" ,
				"images/gallery/carens/360/059.jpg" ,
				"images/gallery/carens/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  ///////////////////////////////////////////////////////////

	$("#vista_360_carnival").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/carnival/360/000.jpg" ,
          		"images/gallery/carnival/360/001.jpg" ,
                "images/gallery/carnival/360/002.jpg" ,
                "images/gallery/carnival/360/003.jpg" ,
                "images/gallery/carnival/360/004.jpg" ,
                "images/gallery/carnival/360/005.jpg" ,
                "images/gallery/carnival/360/006.jpg" ,
                "images/gallery/carnival/360/007.jpg" ,
                "images/gallery/carnival/360/008.jpg" ,
                "images/gallery/carnival/360/009.jpg" ,
                "images/gallery/carnival/360/010.jpg" ,
                "images/gallery/carnival/360/011.jpg" ,
                "images/gallery/carnival/360/012.jpg" ,
                "images/gallery/carnival/360/013.jpg" ,
                "images/gallery/carnival/360/014.jpg" ,
                "images/gallery/carnival/360/015.jpg" ,
                "images/gallery/carnival/360/016.jpg" ,
                "images/gallery/carnival/360/017.jpg" ,
                "images/gallery/carnival/360/018.jpg" ,
                "images/gallery/carnival/360/019.jpg" ,
                "images/gallery/carnival/360/020.jpg" ,
                "images/gallery/carnival/360/021.jpg" ,
                "images/gallery/carnival/360/022.jpg" ,
                "images/gallery/carnival/360/023.jpg" ,
                "images/gallery/carnival/360/024.jpg" ,
                "images/gallery/carnival/360/025.jpg" ,
                "images/gallery/carnival/360/026.jpg" ,
                "images/gallery/carnival/360/027.jpg" ,
                "images/gallery/carnival/360/028.jpg" ,
                "images/gallery/carnival/360/029.jpg" ,
                "images/gallery/carnival/360/030.jpg" ,
                "images/gallery/carnival/360/031.jpg" ,
                "images/gallery/carnival/360/032.jpg" ,
                "images/gallery/carnival/360/033.jpg" ,
				"images/gallery/carnival/360/034.jpg" ,
				"images/gallery/carnival/360/035.jpg" ,
				"images/gallery/carnival/360/036.jpg" ,
				"images/gallery/carnival/360/037.jpg" ,
				"images/gallery/carnival/360/038.jpg" ,
				"images/gallery/carnival/360/039.jpg" ,
				"images/gallery/carnival/360/040.jpg" ,
				"images/gallery/carnival/360/041.jpg" ,
				"images/gallery/carnival/360/042.jpg" ,
				"images/gallery/carnival/360/043.jpg" ,
				"images/gallery/carnival/360/044.jpg" ,
				"images/gallery/carnival/360/045.jpg" ,
				"images/gallery/carnival/360/046.jpg" ,
				"images/gallery/carnival/360/047.jpg" ,
				"images/gallery/carnival/360/048.jpg" ,
				"images/gallery/carnival/360/049.jpg" ,
				"images/gallery/carnival/360/050.jpg" ,
				"images/gallery/carnival/360/051.jpg" ,
				"images/gallery/carnival/360/052.jpg" ,
				"images/gallery/carnival/360/053.jpg" ,
				"images/gallery/carnival/360/054.jpg" ,
				"images/gallery/carnival/360/055.jpg" ,
				"images/gallery/carnival/360/056.jpg" ,
				"images/gallery/carnival/360/057.jpg" ,
				"images/gallery/carnival/360/058.jpg" ,
				"images/gallery/carnival/360/059.jpg" ,
				"images/gallery/carnival/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  ///////////////////////////////////////////////////////////

	$("#vista_360_cerato").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/cerato/360/000.jpg" ,
          		"images/gallery/cerato/360/001.jpg" ,
                "images/gallery/cerato/360/002.jpg" ,
                "images/gallery/cerato/360/003.jpg" ,
                "images/gallery/cerato/360/004.jpg" ,
                "images/gallery/cerato/360/005.jpg" ,
                "images/gallery/cerato/360/006.jpg" ,
                "images/gallery/cerato/360/007.jpg" ,
                "images/gallery/cerato/360/008.jpg" ,
                "images/gallery/cerato/360/009.jpg" ,
                "images/gallery/cerato/360/010.jpg" ,
                "images/gallery/cerato/360/011.jpg" ,
                "images/gallery/cerato/360/012.jpg" ,
                "images/gallery/cerato/360/013.jpg" ,
                "images/gallery/cerato/360/014.jpg" ,
                "images/gallery/cerato/360/015.jpg" ,
                "images/gallery/cerato/360/016.jpg" ,
                "images/gallery/cerato/360/017.jpg" ,
                "images/gallery/cerato/360/018.jpg" ,
                "images/gallery/cerato/360/019.jpg" ,
                "images/gallery/cerato/360/020.jpg" ,
                "images/gallery/cerato/360/021.jpg" ,
                "images/gallery/cerato/360/022.jpg" ,
                "images/gallery/cerato/360/023.jpg" ,
                "images/gallery/cerato/360/024.jpg" ,
                "images/gallery/cerato/360/025.jpg" ,
                "images/gallery/cerato/360/026.jpg" ,
                "images/gallery/cerato/360/027.jpg" ,
                "images/gallery/cerato/360/028.jpg" ,
                "images/gallery/cerato/360/029.jpg" ,
                "images/gallery/cerato/360/030.jpg" ,
                "images/gallery/cerato/360/031.jpg" ,
                "images/gallery/cerato/360/032.jpg" ,
                "images/gallery/cerato/360/033.jpg" ,
				"images/gallery/cerato/360/034.jpg" ,
				"images/gallery/cerato/360/035.jpg" ,
				"images/gallery/cerato/360/036.jpg" ,
				"images/gallery/cerato/360/037.jpg" ,
				"images/gallery/cerato/360/038.jpg" ,
				"images/gallery/cerato/360/039.jpg" ,
				"images/gallery/cerato/360/040.jpg" ,
				"images/gallery/cerato/360/041.jpg" ,
				"images/gallery/cerato/360/042.jpg" ,
				"images/gallery/cerato/360/043.jpg" ,
				"images/gallery/cerato/360/044.jpg" ,
				"images/gallery/cerato/360/045.jpg" ,
				"images/gallery/cerato/360/046.jpg" ,
				"images/gallery/cerato/360/047.jpg" ,
				"images/gallery/cerato/360/048.jpg" ,
				"images/gallery/cerato/360/049.jpg" ,
				"images/gallery/cerato/360/050.jpg" ,
				"images/gallery/cerato/360/051.jpg" ,
				"images/gallery/cerato/360/052.jpg" ,
				"images/gallery/cerato/360/053.jpg" ,
				"images/gallery/cerato/360/054.jpg" ,
				"images/gallery/cerato/360/055.jpg" ,
				"images/gallery/cerato/360/056.jpg" ,
				"images/gallery/cerato/360/057.jpg" ,
				"images/gallery/cerato/360/058.jpg" ,
				"images/gallery/cerato/360/059.jpg" ,
				"images/gallery/cerato/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  ///////////////////////////////////////////////////////////

	$("#vista_360_cerato-koup").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/cerato-koup/360/000.jpg" ,
          		"images/gallery/cerato-koup/360/001.jpg" ,
                "images/gallery/cerato-koup/360/002.jpg" ,
                "images/gallery/cerato-koup/360/003.jpg" ,
                "images/gallery/cerato-koup/360/004.jpg" ,
                "images/gallery/cerato-koup/360/005.jpg" ,
                "images/gallery/cerato-koup/360/006.jpg" ,
                "images/gallery/cerato-koup/360/007.jpg" ,
                "images/gallery/cerato-koup/360/008.jpg" ,
                "images/gallery/cerato-koup/360/009.jpg" ,
                "images/gallery/cerato-koup/360/010.jpg" ,
                "images/gallery/cerato-koup/360/011.jpg" ,
                "images/gallery/cerato-koup/360/012.jpg" ,
                "images/gallery/cerato-koup/360/013.jpg" ,
                "images/gallery/cerato-koup/360/014.jpg" ,
                "images/gallery/cerato-koup/360/015.jpg" ,
                "images/gallery/cerato-koup/360/016.jpg" ,
                "images/gallery/cerato-koup/360/017.jpg" ,
                "images/gallery/cerato-koup/360/018.jpg" ,
                "images/gallery/cerato-koup/360/019.jpg" ,
                "images/gallery/cerato-koup/360/020.jpg" ,
                "images/gallery/cerato-koup/360/021.jpg" ,
                "images/gallery/cerato-koup/360/022.jpg" ,
                "images/gallery/cerato-koup/360/023.jpg" ,
                "images/gallery/cerato-koup/360/024.jpg" ,
                "images/gallery/cerato-koup/360/025.jpg" ,
                "images/gallery/cerato-koup/360/026.jpg" ,
                "images/gallery/cerato-koup/360/027.jpg" ,
                "images/gallery/cerato-koup/360/028.jpg" ,
                "images/gallery/cerato-koup/360/029.jpg" ,
                "images/gallery/cerato-koup/360/030.jpg" ,
                "images/gallery/cerato-koup/360/031.jpg" ,
                "images/gallery/cerato-koup/360/032.jpg" ,
                "images/gallery/cerato-koup/360/033.jpg" ,
				"images/gallery/cerato-koup/360/034.jpg" ,
				"images/gallery/cerato-koup/360/035.jpg" ,
				"images/gallery/cerato-koup/360/036.jpg" ,
				"images/gallery/cerato-koup/360/037.jpg" ,
				"images/gallery/cerato-koup/360/038.jpg" ,
				"images/gallery/cerato-koup/360/039.jpg" ,
				"images/gallery/cerato-koup/360/040.jpg" ,
				"images/gallery/cerato-koup/360/041.jpg" ,
				"images/gallery/cerato-koup/360/042.jpg" ,
				"images/gallery/cerato-koup/360/043.jpg" ,
				"images/gallery/cerato-koup/360/044.jpg" ,
				"images/gallery/cerato-koup/360/045.jpg" ,
				"images/gallery/cerato-koup/360/046.jpg" ,
				"images/gallery/cerato-koup/360/047.jpg" ,
				"images/gallery/cerato-koup/360/048.jpg" ,
				"images/gallery/cerato-koup/360/049.jpg" ,
				"images/gallery/cerato-koup/360/050.jpg" ,
				"images/gallery/cerato-koup/360/051.jpg" ,
				"images/gallery/cerato-koup/360/052.jpg" ,
				"images/gallery/cerato-koup/360/053.jpg" ,
				"images/gallery/cerato-koup/360/054.jpg" ,
				"images/gallery/cerato-koup/360/055.jpg" ,
				"images/gallery/cerato-koup/360/056.jpg" ,
				"images/gallery/cerato-koup/360/057.jpg" ,
				"images/gallery/cerato-koup/360/058.jpg" ,
				"images/gallery/cerato-koup/360/059.jpg" ,
				"images/gallery/cerato-koup/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  ///////////////////////////////////////////////////////////

	$("#vista_360_sorento").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/sorento/360/000.jpg" ,
          		"images/gallery/sorento/360/001.jpg" ,
                "images/gallery/sorento/360/002.jpg" ,
                "images/gallery/sorento/360/003.jpg" ,
                "images/gallery/sorento/360/004.jpg" ,
                "images/gallery/sorento/360/005.jpg" ,
                "images/gallery/sorento/360/006.jpg" ,
                "images/gallery/sorento/360/007.jpg" ,
                "images/gallery/sorento/360/008.jpg" ,
                "images/gallery/sorento/360/009.jpg" ,
                "images/gallery/sorento/360/010.jpg" ,
                "images/gallery/sorento/360/011.jpg" ,
                "images/gallery/sorento/360/012.jpg" ,
                "images/gallery/sorento/360/013.jpg" ,
                "images/gallery/sorento/360/014.jpg" ,
                "images/gallery/sorento/360/015.jpg" ,
                "images/gallery/sorento/360/016.jpg" ,
                "images/gallery/sorento/360/017.jpg" ,
                "images/gallery/sorento/360/018.jpg" ,
                "images/gallery/sorento/360/019.jpg" ,
                "images/gallery/sorento/360/020.jpg" ,
                "images/gallery/sorento/360/021.jpg" ,
                "images/gallery/sorento/360/022.jpg" ,
                "images/gallery/sorento/360/023.jpg" ,
                "images/gallery/sorento/360/024.jpg" ,
                "images/gallery/sorento/360/025.jpg" ,
                "images/gallery/sorento/360/026.jpg" ,
                "images/gallery/sorento/360/027.jpg" ,
                "images/gallery/sorento/360/028.jpg" ,
                "images/gallery/sorento/360/029.jpg" ,
                "images/gallery/sorento/360/030.jpg" ,
                "images/gallery/sorento/360/031.jpg" ,
                "images/gallery/sorento/360/032.jpg" ,
                "images/gallery/sorento/360/033.jpg" ,
				"images/gallery/sorento/360/034.jpg" ,
				"images/gallery/sorento/360/035.jpg" ,
				"images/gallery/sorento/360/036.jpg" ,
				"images/gallery/sorento/360/037.jpg" ,
				"images/gallery/sorento/360/038.jpg" ,
				"images/gallery/sorento/360/039.jpg" ,
				"images/gallery/sorento/360/040.jpg" ,
				"images/gallery/sorento/360/041.jpg" ,
				"images/gallery/sorento/360/042.jpg" ,
				"images/gallery/sorento/360/043.jpg" ,
				"images/gallery/sorento/360/044.jpg" ,
				"images/gallery/sorento/360/045.jpg" ,
				"images/gallery/sorento/360/046.jpg" ,
				"images/gallery/sorento/360/047.jpg" ,
				"images/gallery/sorento/360/048.jpg" ,
				"images/gallery/sorento/360/049.jpg" ,
				"images/gallery/sorento/360/050.jpg" ,
				"images/gallery/sorento/360/051.jpg" ,
				"images/gallery/sorento/360/052.jpg" ,
				"images/gallery/sorento/360/053.jpg" ,
				"images/gallery/sorento/360/054.jpg" ,
				"images/gallery/sorento/360/055.jpg" ,
				"images/gallery/sorento/360/056.jpg" ,
				"images/gallery/sorento/360/057.jpg" ,
				"images/gallery/sorento/360/058.jpg" ,
				"images/gallery/sorento/360/059.jpg" ,
				"images/gallery/sorento/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  ///////////////////////////////////////////////////////////

	$("#vista_360_optima").spritespin({
		  
        width     : 680,
        height    : 340,
        frames    : 61,
        image     : [
				"images/gallery/optima/360/000.jpg" ,
          		"images/gallery/optima/360/001.jpg" ,
                "images/gallery/optima/360/002.jpg" ,
                "images/gallery/optima/360/003.jpg" ,
                "images/gallery/optima/360/004.jpg" ,
                "images/gallery/optima/360/005.jpg" ,
                "images/gallery/optima/360/006.jpg" ,
                "images/gallery/optima/360/007.jpg" ,
                "images/gallery/optima/360/008.jpg" ,
                "images/gallery/optima/360/009.jpg" ,
                "images/gallery/optima/360/010.jpg" ,
                "images/gallery/optima/360/011.jpg" ,
                "images/gallery/optima/360/012.jpg" ,
                "images/gallery/optima/360/013.jpg" ,
                "images/gallery/optima/360/014.jpg" ,
                "images/gallery/optima/360/015.jpg" ,
                "images/gallery/optima/360/016.jpg" ,
                "images/gallery/optima/360/017.jpg" ,
                "images/gallery/optima/360/018.jpg" ,
                "images/gallery/optima/360/019.jpg" ,
                "images/gallery/optima/360/020.jpg" ,
                "images/gallery/optima/360/021.jpg" ,
                "images/gallery/optima/360/022.jpg" ,
                "images/gallery/optima/360/023.jpg" ,
                "images/gallery/optima/360/024.jpg" ,
                "images/gallery/optima/360/025.jpg" ,
                "images/gallery/optima/360/026.jpg" ,
                "images/gallery/optima/360/027.jpg" ,
                "images/gallery/optima/360/028.jpg" ,
                "images/gallery/optima/360/029.jpg" ,
                "images/gallery/optima/360/030.jpg" ,
                "images/gallery/optima/360/031.jpg" ,
                "images/gallery/optima/360/032.jpg" ,
                "images/gallery/optima/360/033.jpg" ,
				"images/gallery/optima/360/034.jpg" ,
				"images/gallery/optima/360/035.jpg" ,
				"images/gallery/optima/360/036.jpg" ,
				"images/gallery/optima/360/037.jpg" ,
				"images/gallery/optima/360/038.jpg" ,
				"images/gallery/optima/360/039.jpg" ,
				"images/gallery/optima/360/040.jpg" ,
				"images/gallery/optima/360/041.jpg" ,
				"images/gallery/optima/360/042.jpg" ,
				"images/gallery/optima/360/043.jpg" ,
				"images/gallery/optima/360/044.jpg" ,
				"images/gallery/optima/360/045.jpg" ,
				"images/gallery/optima/360/046.jpg" ,
				"images/gallery/optima/360/047.jpg" ,
				"images/gallery/optima/360/048.jpg" ,
				"images/gallery/optima/360/049.jpg" ,
				"images/gallery/optima/360/050.jpg" ,
				"images/gallery/optima/360/051.jpg" ,
				"images/gallery/optima/360/052.jpg" ,
				"images/gallery/optima/360/053.jpg" ,
				"images/gallery/optima/360/054.jpg" ,
				"images/gallery/optima/360/055.jpg" ,
				"images/gallery/optima/360/056.jpg" ,
				"images/gallery/optima/360/057.jpg" ,
				"images/gallery/optima/360/058.jpg" ,
				"images/gallery/optima/360/059.jpg" ,
				"images/gallery/optima/360/060.jpg" ,
        ],
        animate   : false,
        loop      : false,
        frameTime : 60
      });
	  
	  
    });
	
});
