/*
 * Application wide js functions, theme independent / theme aware
 */


/*
 * remove all content area elements and show loading Flash object
 * called when posting back results in long response time (eg holiday search)
 */


$(document).ready(function () {

	// bind interstitial display function to links to pages with long response times.
	$('a.interstitial-link').bind('click', Global.interstitial);

});


Global = {

	interstitial : function() {

		if (Global.theme == "hnjww" || Global.theme == "tww"|| Global.theme == "jetsv") {
			$('#container-content').hide();
		}

		$('#breadcrumbs').hide();
		$('#three_col_container').hide();
		$('#menu_main_long').show();

		if (Global.theme == "cit") {
			$('#container-content').hide();
			$('#noSearchResultsContainer').hide();
			$('#popBook').hide();
			$('#holiday_summary_div').show();
		}

		if (Global.theme == "sov") {
			$('#container-content').hide();
			$('#noSearchResultsContainer').hide();
			//$('#twoColContainer').hide();
		}

		if (Global.theme == "meon") {
			$('#contentContainer').hide();
			//$('#twoColContainer').hide();
		}

		if (Global.theme == "austrv") {
			window.scrollTo(0,0);
			$('#content').hide();
			$('offerOfTheWeek').hide();
			$('div.centralColumn').hide();
		}
		$('#waiting').show();

	}

}