Decode – Car Rental

JavaScript
$(document).ready(function(){

	$('.content_cancel_form_bottom .submit').hover(
		function() {
			$(this).css('backgroundImage', "url('img/cancel_form_submit.jpg')");
			$(this).css({'paddingTop': '10px', 'paddingLeft': '12px'});
		},
		function () {
			$(this).css('backgroundImage', "url('img/cancel_form_submit_normal.jpg')");
			$(this).css({'paddingTop': '8px', 'paddingLeft': '10px'});
		});


	$('.cc_btn').hover(
		function() {
			$(this).css('backgroundImage', "url('img/cc_btn_pressed.png')");
		},
		function () {
			$(this).css('backgroundImage', "url('img/cc_btn.png')");
		});


	$('.btn_dgm').hover(
		function() {
			$(this).css('backgroundImage', "url('img/dgm_pressed.jpg')");
		},
		function () {
			$(this).css('backgroundImage', "url('img/dgm.jpg')");
		});

	$('.btn_webgain').hover(
		function() {
			$(this).css('backgroundImage', "url('img/webgains_pressed.jpg')");
		},
		function () {
			$(this).css('backgroundImage', "url('img/webgains.jpg')");
		});

	$('.fl_item').hover(
		function() {
			$(this).find('.fleet_icon').show();
		},
		function () {
			$(this).find('.fleet_icon').hide();
		});

	$('.faq_table td>a').bind('click',
		function () {
			$(this).parent().parent().next().slideToggle();
			return false;
		});

	$('.cr_close').bind('click',
		function () {
			$(this).parent().parent().parent()
			.parent().parent().slideToggle();
		});

	$('.step_inactive').bind('click',
		function() {
			$('.step_active').removeClass('step_active');
			$(this).addClass('step_active');
			$('.step_banner').not('#' + $(this).attr('id') + '_banner').hide();
			$('#' + $(this).attr('id') + '_banner').show();
		});

	$('.fl_icons td').hover(
		function() {
			$(this).find('.hint').fadeIn();
		},
		function () {
			$(this).find('.hint').fadeOut();
		});

	$('.cc_b_head_item').bind('click',
		function() {
			$('.cc_b_head_select').removeClass('cc_b_head_select');
			$(this).addClass('cc_b_head_select');
			$('.contact_form').not('#' + $(this).attr('id') + '_form').hide();
			$('#' + $(this).attr('id') + '_form').show();
		});

	$('.cc_b_head_item a').bind('click',
		function() {
			return false;
		});

	$('.menu2_item').not('.menu2_select').hover(
		function() {
			$(this).addClass('menu2_select');
			$(this).html('<span>' + $(this).html() + '</span>');
		},
		function() {
			$(this).removeClass('menu2_select');
			$(this).html($(this).children()[0].html());
		});
});

// Strategy

	$(document).ready(
		function(){
		$('.step_in').hover(
			function() {
				$(this).css('backgroundColor', '#ecf1f1');
				},
			function() {
				$('.step_inactive .step_in').css('backgroundColor', 'transparent');
				$('.step_active .step_in').css('backgroundColor', '#595b5b');
			});
		});


// Special Offers

	$(document).ready(
		function(){
			$('.deal_item').hover(
				function(){
					$('.deal_green',this).show();
					$('.deal_white_t',this).css('backgroundImage',"url('img/deal_hover_t.png')");
					$('.deal_white_m',this).css('backgroundImage',"url('img/deal_hover_m.png')");
					$('.deal_white_b',this).css('backgroundImage',"url('img/deal_hover_b.png')");
					},
				function(){
					$('.deal_green',this).hide();
					$('.deal_white_t',this).css('backgroundImage',"url('img/deal_white_t.png')");
					$('.deal_white_m',this).css('backgroundImage',"url('img/deal_white_m.png')");
					$('.deal_white_b',this).css('backgroundImage',"url('img/deal_white_b.png')");
			});
		});


// Fleet List

	$(document).ready(
		function(){
			$('.fl_item').hover(
				function(){
					$('.fl_item_t_first',this).css('backgroundImage',"url('img/fl_hover_t_first.png')");
					$('.fl_item_t_second',this).css('backgroundImage',"url('img/fl_hover_t_second.png')");
					$('.fl_item_t_third',this).css('backgroundImage',"url('img/fl_hover_t_m.png')");
					$('.fl_item_b_first',this).css('backgroundImage',"url('img/fl_hover_b_first.png')");
					$('.fl_item_b_second',this).css('backgroundImage',"url('img/fl_hover_b_second.png')");
					$('.fl_item_b_third',this).css('backgroundImage',"url('img/fl_hover_b_m.png')");
					$('.fl_item_m',this).css
						({
							'border-right':'1px solid #999d9d',
							'border-left':'1px solid #999d9d'
						});
					},
				function(){
					$('.fl_item_t_first',this).css('backgroundImage',"url('img/fl_item_t_first.png')");
					$('.fl_item_t_second',this).css('backgroundImage',"url('img/fl_item_t_second.png')");
					$('.fl_item_t_third',this).css('backgroundImage',"url('img/fl_item_t_m.png')");
					$('.fl_item_b_first',this).css('backgroundImage',"url('img/fl_item_b_first.png')");
					$('.fl_item_b_second',this).css('backgroundImage',"url('img/fl_item_b_second.png')");
					$('.fl_item_b_third',this).css('backgroundImage',"url('img/fl_item_b_m.png')");
					$('.fl_item_m',this).css
						({
							'border-right':'1px solid #d1dcde',
							'border-left':'1px solid #d1dcde'
						});
					});
				});

$(document).ready(function() {
	// Menu drop down
	$('div.menu_wrap >ul.nav >li').mouseover(function() {
		$(this).children('ul').show();
	});
	$('div.menu_wrap >ul.nav >li').mouseout(function() {
		$(this).children('ul').hide();
	});


	// Banners slider
	$(document).ready(function(){
		$("#preview").easySlider({
			auto: true,
			continuous: true,
			numeric: true,
			pause: 5000
		});
	});
});