// main functions - hummingbird site

/* tabs */
$(function() {
	$('ul.tabs').tabs();
})

/* carousel */
jQuery(document).ready(function() {
    jQuery('#usedCarByTypeCarousel').jcarousel();
});
jQuery(document).ready(function() {
    jQuery('#newCarByTypeCarousel').jcarousel();
});
jQuery(document).ready(function() {
    jQuery('#usedCarThumbsCarousel').jcarousel();
});

/* advanced search toggle */
$(function()
{
	$("#showUsedAdvancedSearch").click(function(event) {
		event.preventDefault();
		$("#usedAdvancedSearchTab").slideToggle();
	});
	$("#usedAdvancedSearchTab a").click(function(event) {
		event.preventDefault();
		$("#usedAdvancedSearchTab").slideUp();
	});

});

/* lightbox */
$(function() {
	$('a.lightbox').lightBox(); // Select all links with lightbox class
});

/* hide form value on click */
<!--
function doClear(theText) {
	if (theText.value == theText.defaultValue) {
		theText.value = ""
	}
}
//-->
