var $j = jQuery.noConflict();

jQuery(document).ready(function($){	
	$("#normalView").show();
	$("#processingView").hide();
	$("form").submit(function() {
		if(this.id != 'bookfrm' && this.id != 'getRates') {
			$("#normalView").hide();
			$("#processingView").show();
			window.scroll(0, 0);
		}
	});	
	$("a").click(function() {	
		if($(this).attr("href").indexOf("#") != 0 && $(this).attr("href").indexOf("javascript") != 0 && $(this).attr('target') == undefined) {
			$("#normalView").hide();
			$("#processingView").show();
			window.scroll(0, 0);
		}
	});
});
jQuery(window).unload( function () { 
	setTimeout('(function(){$("#normalView").show(); $("#processingView").hide();});', 5000);
});

function changeParentUrl(url) {
	document.location = url;
}