/*
$(function() {
	$('.scrollable').jScrollPane({animateTo:true, showArrows:false, scrollbarWidth:13, scrollbarMargin:10, reinitialiseOnImageLoad:true});
	document.getElementById("air_frame").style.display = "none";
	document.getElementById("multiCityForm").style.display = "none";
});
*/


function DoScroll()
{
	jQuery('.scrollable').jScrollPane({animateTo:true, showArrows:false, scrollbarWidth:20, scrollbarMargin:10, reinitialiseOnImageLoad:true});

	hide("air_frame");
	hide("multiCityForm");
	hide("flight3");
	hide("flight4");

	document.getElementById("multi_form").style.left = "0";
	
	//flip(fliptab);
	var aflip = document.getElementById("linktab_" + fliptab);
	aflip.onclick();

}


function addEvent( obj, type, fn )
{
	if (obj.addEventListener) obj.addEventListener( type, fn, false );
	else 
		if (obj.attachEvent)
		{
			obj["e"+type+fn] = fn;
			obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
			obj.attachEvent( "on"+type, obj[type+fn] );	
		}
}
		

addEvent(window, 'load', DoScroll);
