$(function()
{
	// initialize Cycle plugin
	$("#site-header-left").cycle({
		fx: "fade"
	});
	
	// initialize jScrollPane plugin
	$(".scroll-pane").jScrollPane({
		showArrows: true,
		verticalDragMinHeight: 1,
		verticalDragMaxHeight: 1,
		arrowScrollOnHover: true,
		arrowButtonSpeed: 8
	});
	
	// initialize jQuery Lightbox
	$("#gallery a").lightBox();
	
	$("#fee_driver_amount").keypress(function()
	{
		setTotalFee();
	});
	
	function setTotalFee()
	{
		$("#fee_total").val();
	}
});

// Function to create a EasySlider gallery via ajax
/*function setGallerySlider(gid,div,slider_class)
{
	$.get('/wp-content/themes/twentyten/inc/php/get_gallery_slider.php?gid=' + gid + '&slider_class=' + slider_class, function(data)
	{
		$(div).html(data);
	});
}*/

// Function to create a Thumbnail Paging with Ajax
function setGalleryThumbnails(gid,div,from,dl)
{
	$.get("/wp-content/themes/twentyten/inc/php/get_gallery_thumbnails.php?gid=" + gid + "&from=" + from + "&dl=" + dl, function(data)
	{
		$(div).html(data);
	});
}
