/* ********** (C) TAXI2AIRPORT 2011 ********** */

/* ********** ****** ********* ********** */
/* ********** JQUERY FUNCTIONS ********** */
/* ********** ****** ********* ********** */

$(document).ready(function() {
	
    $("div.countryinfo span.button").css('cursor', 'pointer');
    
    $("li#contactlink").click(function() {
		$("div#contentmail").show();
		$("div#contentphone").hide();
		$("div#contentcallback").hide();
		$("div#contentskype").hide();
		
		$("div.numbers ol.contact li").removeClass('current');
		$("div.numbers ol.contact li#contactlink").addClass('current');
	});
	
	$("li#phonelink").click(function() {
		$("div#contentmail").hide();
		$("div#contentphone").show();
		$("div#contentcallback").hide();
		$("div#contentskype").hide();

		$("div.numbers ol.contact li").removeClass('current');
		$("div.numbers ol.contact li#phonelink").addClass('current');
	});
	
	$("li#skypelink").click(function() {
		$("div#contentmail").hide();
		$("div#contentphone").hide();
		$("div#contentcallback").hide();
		$("div#contentskype").show();

		$("div.numbers ol.contact li").removeClass('current');
		$("div.numbers ol.contact li#skypelink").addClass('current');
	});
	
	$("li#callbacklink").click(function() {
		$("div#contentmail").hide();
		$("div#contentphone").hide();
		$("div#contentcallback").show();
		$("div#contentskype").hide();

		$("div.numbers ol.contact li").removeClass('current');
		$("div.numbers ol.contact li#callbacklink").addClass('current');
	});
    
    /* Countryinfo above quote and module */
	// see http://henrik.nyh.se/examples/truncator/
	$(function()
	{
		$('div.countryinfo').truncate({max_length: 500});
    });
	
	/*
	 * Script to expand a chosen airport 
	 * For countries that use the quoteform
	 */
	/*
	$("ul.expand li").css("height", "40px").css( 'cursor', 'pointer' );

	$("ul.expand li").click(function() {
		$("ul.expand li").css("height", "40px");
		$(this).css("height", "80px");
	});
	 */
	
});

/* ********** ********** ********* ********** */
/* ********** JAVASCRIPT FUNCTIONS ********** */
/* ********** ********** ********* ********** */

/*

*/

