$(function() {
	$('.chevyBTN').click(function() {
		$('#chevyBox').show(0, function() {
		});
		$('#chevyBox').mouseleave(function(){
			$("#chevyBox").hide();
	    });
		$("div.makeBox:not(#chevyBox)").hide();
	});
});
$(function() {
	$('.cadillacBTN').click(function() {
		$('#cadillacBox').show(0, function() {
		});
		$('#cadillacBox').mouseleave(function(){
			$("#cadillacBox").hide();
	    });
		$("div.makeBox:not(#cadillacBox)").hide();
	});
});
$(function() {
	$('.chevyCommBTN').click(function() {
		$('#chevyCommBox').show(0, function() {
		});
		$('#chevyCommBox').mouseleave(function(){
			$("#chevyCommBox").hide();
	    });
		$("div.makeBox:not(#chevyCommBox)").hide();
	});
});

/*$(function() {
	$('.isuzuBTN').click(function() {
		$('#chevyCommBox').show(0, function() {
		});
		$('#chevyCommBox').mouseleave(function(){
			$("#chevyCommBox").hide();
	    });
		$("div.makeBox:not(#chevyCommBox)").hide();
	});
});*/

$(function() {
	$('.dodgeBTN').click(function() {
		$('#dodgeBox').show(0, function() {
		});
		$('#dodgeBox').mouseleave(function(){
			$("#dodgeBox").hide();
	    });
		$("div.makeBox:not(#dodgeBox)").hide();
	});
});
$(function() {
	$('.chryslerBTN').click(function() {
		$('#chryslerBox').show(0, function() {
		});
		$('#chryslerBox').mouseleave(function(){
			$("#chryslerBox").hide();
	    });
		$("div.makeBox:not(#chryslerBox)").hide();
	});
});
$(function() {
	$('.jeepBTN').click(function() {
		$('#jeepBox').show(0, function() {
		});
		$('#jeepBox').mouseleave(function(){
			$("#jeepBox").hide();
	    });
		$("div.makeBox:not(#jeepBox)").hide();
	});
});
$(function() {
	$('.hyundaiBTN').click(function() {
		$('#hyundaiBox').show(0, function() {
		});
		$('#hyundaiBox').mouseleave(function(){
			$("#hyundaiBox").hide();
	    });
		$("div.makeBox:not(#hyundaiBox)").hide();
	});
});
$(function() {
	$('.RAMBTN').click(function() {
		$('#RAMBox').show(0, function() {
		});
		$('#RAMBox').mouseleave(function(){
			$("#RAMBox").hide();
	    });
		$("div.makeBox:not(#RAMBox)").hide();
	});
});
function toggleMakes() {
	if ($('#makesSelect').length > 0) {
		$('#typesSelect, #pricesSelect').attr('disabled', 'disabled');
		$('#typesSelect, #pricesSelect').attr('style', 'background:#ccc;');
    }
	if ($('#makesSelect').val() == "") {
		$('#typesSelect, #pricesSelect').removeAttr('disabled');
		$('#typesSelect, #pricesSelect').removeAttr('style');
    }
}	
function toggleTypes() {
	if ($('#typesSelect').length > 0) {
        $('#makesSelect, #pricesSelect').attr('disabled', 'disabled');
        $('#makesSelect, #pricesSelect').attr('style', 'background:#ccc;');
    }
	if ($('#typesSelect').val() == "") {
    	$('#makesSelect, #pricesSelect').removeAttr('disabled');
    	$('#makesSelect, #pricesSelect').removeAttr('style');
    }  
}	
function togglePrices() {
	if ($('#pricesSelect').length > 0) {
		$('#makesSelect, #typesSelect').attr('disabled', 'disabled');
		$('#makesSelect, #typesSelect').attr('style', 'background:#ccc;');
    }
	if ($('#pricesSelect').val() == "") {
    	$('#makesSelect, #typesSelect').removeAttr('disabled');
    	$('#makesSelect, #typesSelect').removeAttr('style');
    }  
}
$(function (){
	if ($('#advert-coupon').length) { 
		$('#advert-coupon').cycle({ 
		    fx:      'fade', 
		    sync: 1,
		    random: 1,
		    pause: 1,
		    timeout: 0
		});
	};
	if ($('#inner-advert-coupon').length) { 
		$('#inner-advert-coupon').cycle({ 
		    fx:      'fade', 
		    sync: 1,
		    random: 1,
		    pause: 1,
		    timeout: 0
		});
	};	
});

$(function (){
	if ($('.clearField').length) {
		$('.clearField').clearField({
			blurClass: 'idleField',
			activeClass: 'focusField'
		});
	};
});