//$(document).ready(function(){
//	/* add class ".navi-last" to the last item in navigation menu and remove image line */
//	$(".navi li").filter(":last-child").addClass("navi-last");
//	/* add class ".item-last" to the last item in featured used car item and remove margin bottom */
//	$(".featured-car-item:nth-child(2)").addClass("item-last");
//});

//$(window).load(function() {
//    $('#slider-test').nivoSlider({
//		animSpeed: 500,
//		pauseTime: 3000,
//		directionNav:false,
//		effect: 'fold',
//		captionOpacity: 0
//	});
//});

//$(document).ready(function(){
//	$("div[id^='comp_'] div").each(function() {
//			if ( $(this).index() % 2 )
//				$(this).addClass("odd");
//		});
//	$(".ucCompareContainerItemInner div").each(function() {
//			if ( $(this).index() % 2 )
//				$(this).addClass("odd");
//		});
//		
//	$("a.ucsr-sort-item[field='photo']").hide();
//	//$(".ucCompareContainerItem > div:odd").addClass("odd");
//	$(".ucCompareContainerTitles div:odd").addClass("odd");
//	$(".ucCompareButton").addClass("button-round-orange");	
//});

// JavaScript Document
//Thanks to Karl Swedberg 
//http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12

//$(document).ready(function(){
//  $('a[href*=#]').click(function() {
//    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
//    && location.hostname == this.hostname) {
//      var $target = $(this.hash);
//      $target = $target.length && $target
//      || $('[name=' + this.hash.slice(1) +']');
//      if ($target.length) {
//        var targetOffset = $target.offset().top;
//        $('html,body')
//        .animate({scrollTop: targetOffset}, 500);
//       return false;
//      }
//    }
//  });
//});
