             Cufon.replace('#logo h1', { 
						   fontFamily: 'Maximum Line Speeder',
						   fontSize: '21px',
		                    color: '#000000'
						   });
			 Cufon.replace('#navigation li a', { 
						   fontFamily: 'Maximum Line Speeder',
						   fontSize: '14px',
		                    color: '#ffffff',
							float:'left',
							textShadow: '#000000 2px 2px',
							hover: {
		color: '#ffc600'
	}
						   });
			  Cufon.replace('#content h1', { 
						   fontFamily: 'Concielian Bold',
						   fontSize: '39px',
		                    color: '#ffffff'
						   });
			  			
			  Cufon.replace('#content h1 span', { 
						   fontFamily: 'Concielian Bold',
						   fontSize: '39px',
		                    color: '#ff0000'
						   });
			 			
			  Cufon.replace('#footer h1', { 
						   fontFamily: 'Maximum Line Speeder',
						   fontSize: '21px',
		                   color: '-linear-gradient(#ffffff, 0.45=#a6a6a6, 0.45=#a6a6a6, #ffffff)',
						   textShadow: '#000000 5px 5px'
						   });
 Cufon.replace('h3.nsb', {
fontFamily: 'Concielian Bold',
				fontSize: '25px',
		         color: '#ff0000'
			});

                          Cufon.replace('h3.nsb a', {
fontFamily: 'Concielian Bold',
				fontSize: '18px',
		         color: '#ff0000',
				 hover: {
		color: '#ffffff'
	}
 
			});
                         


		$(function() {
$("#content .buttons-featured-vech li:nth-child(1)").addClass("home_n");
$("#content .buttons-featured-vech li:nth-child(2)").addClass("inventory_n");
$("#content .buttons-featured-vech li:nth-child(3)").addClass("order_n");
$("#content .buttons-featured-vech li:nth-child(4)").addClass("finan_n");
$("#content .buttons-featured-vech li:nth-child(5)").addClass("warranty_n");
$("#content .buttons-featured-vech li:nth-child(6)").addClass("map_n");
});



		$(document).ready(function() {
			

			$(".various1").fancybox({
				'padding'			: 0,
				'titlePosition'		: 'none',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'autoScale'			: false
			});

			
		});
		
$(document).ready(function(){
			$('#slider1').bxSlider({
				auto: true,
				autoControls: false,
				autoHover: true,
				pager: false,
				controls: false
			});
		});






// prepare the form when the DOM is ready 
$(document).ready(function() {
	$("#gallery  .jk  li img").hover(function(){
		$('#main-img').attr('src',$(this).attr('src').replace("thumb/", "medium/"));
	});
	var imgSwap = [];
	 $("#gallery  .jk li img").each(function(){
		imgUrl = this.src.replace('thumb/', "medium/");
		imgSwap.push(imgUrl);
	});
	$(imgSwap).preload();
});
$.fn.preload = function() {
    this.each(function(){
        $('<img/>')[0].src = this;
    });
}



$(document).ready(function() {

	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

});


