    $(document).ready(function(){
        $("#gallery_one").jqGalScroll({
        ease: null,
	speed:1400,
	height: 600,
	width: 640,
	direction : 'vertical'} // vertical horizontal diagonal// vertical horizontal diagonal
	);
	 $("#gallery_two").jqGalScroll({
        ease: null,
	speed:1400,
	height: 600,
	width: 640,
	direction : 'vertical'} // vertical horizontal diagonal// vertical horizontal diagonal
	);

//back and forward code
//still to be done: show or hide based on position
$('#photoforward').click(function(){
			$('#photoback').show();
			var nextup = $('#photogallery').find('a.selected').attr("href").substring(1,2);
			nextup++;
			$('#photogallery').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').click();
			nextup++;
			if(!$('#photogallery').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').length)$('#photoforward').hide();
		});
$('#photoback').hide();
$('#photoback').click(function(){
			$('#photoforward').show();
			var nextup = $('#photogallery').find('a.selected').attr("href").substring(1,2);
			nextup--;
			$('#photogallery').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').click();
			nextup--;
			if(!$('#photogallery').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').length)$('#photoback').hide();
		});
$('#photogallery').find('.jqGSPagination').find('ul').find('li').each(function(){
	$(this).find('a').click(function(){
	var nextup = $('#photogallery').find('a.selected').attr("href").substring(1,2);
	nextup++;
	if(!$('#photogallery').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').length)$('#photoforward').hide();
	else $('#photoforward').show();
	nextup-=2;
	if(!$('#photogallery').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').length)$('#photoback').hide();
	else $('#photoback').show();
		});
	});
//the rooms
$('#photoforward_rooms').click(function(){
			$('#photoback_rooms').show();
			var nextup = $('#therooms').find('a.selected').attr("href").substring(1,2);
			nextup++;
			$('#therooms').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').click();
			nextup++;
			if(!$('#therooms').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').length)$('#photoforward_rooms').hide();
		});
$('#photoback_rooms').hide();
$('#photoback_rooms').click(function(){
			$('#photoforward_rooms').show();
			var nextup = $('#therooms').find('a.selected').attr("href").substring(1,2);
			nextup--;
			$('#therooms').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').click();
			nextup--;
			if(!$('#therooms').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').length)$('#photoback_rooms').hide();
		});
$('#therooms').find('.jqGSPagination').find('ul').find('li').each(function(){
	$(this).find('a').click(function(){
	var nextup = $('#therooms').find('a.selected').attr("href").substring(1,2);
	nextup++;
	if(!$('#therooms').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').length)$('#photoforward_rooms').hide();
	else $('#photoforward_rooms').show();
	nextup-=2;
	if(!$('#therooms').find('.jqGSPagination').find('ul').find('li:eq('+nextup+')').find('a').length)$('#photoback_rooms').hide();
	else $('#photoback_rooms').show();
		});
	});
  });

			$(function(){

				  $('#date_from').datepicker({
				  	//showOn: 'button',
				  	//buttonText: 'click here for a calendar',
				  	closeText: "X",
				  	showButtonPanel: true
				  	}); 
				 $('#date_to').datepicker({
				  	//showOn: 'button',
				  	//buttonText: 'click here for a calendar',
				  	closeText: "X",
				  	showButtonPanel: true
				  	}); 
			 });

