$(window).scroll(function() {

   	var t = $(window).scrollTop();

	$("#tour-info").css("top", (t>245) ? (t-245) + "px" : "0px");



});



$(document).ready(function() { 



		/* Highlight */

		var pathname = window.location.pathname;

		pathname = pathname.split("/");

		pathname = pathname[pathname.length-1];



		/* Flash Header */

		

		// Pathname control

		

		switch(pathname) {



			case 'incajungle4dias.html':

				pathname = 'santateresa_river_rafting.html';

			break;

			

			case 'rio_urubambatropical.html':

				pathname = 'urubamba_river_1d.html';

			break;

			

			case 'tambopatarafting9dias.html':

				pathname = 'huchuyqosqo.html';

			break;

			

			case '':

			case 'inca-trail-availability.html':

			case 'our_guides.html':

			case 'testimonials.html':

			case 'links.html':

			case 'booking_form.php':

			case 'contact-us.php':

			case 'reserve.php':

			case 'huchuyqosqo_machupicchu.html':

				pathname = 'index.html';

			break;

		}

		

		$('#swf').flash({

				swf: '/extras/flash/' + pathname + '.swf'

				,width:560

				,height:150

				,wmode:'transparent'

			});

		

		/* Lightbox */

		$('a.lightbox').lightBox();

	

	/* Inca Trail */



	var loading = '<img src="/extras/images/ajax-loader.gif" alt="Loading" />';

	$('#viewav').bind("click", function() {

		$('#itresults').empty();								 

		$('#itresults').append(loading);

		m = $('#dateav').val().split("-")[0];

		a = $('#dateav').val().split("-")[1];

		l = $('#lang').val();

		$.ajax({

			type: "GET",

			url: "/itresults.php",

			data: "mes="+m+"&ano="+a+"&lang="+l,

			success: function(msg){

			$('#itresults').empty();

			$('#itresults').append(msg);

		}

		});

	});

	

	/* Collapsable */

	// Menus Colapsables



	$('.col-title').bind('click', function() {

		$(this).next().slideToggle();

	});

		



}); //document.ready