/*------------------------------------------------------------
	Initialize (DOM Ready & onload)
------------------------------------------------------------*/
(function($){
$(function(){
	$('.topNavColumn').elmHover({ hoverClass : 'hoverColumn' });
	$('#topNavSection li img').imgHover({ suffix : '_o' });
});
})(jQueryBase);

(function($){
$(window).load(function(){
	$.alignBox('#topNavSection', '.topNavColumn');
	$('#contentsTopNav').addClass('visibleNav').fadeIn('slow');
});
})(jQueryBase);

/*------------------------------------------------------------
	Align Nav Box
------------------------------------------------------------*/
(function($){
$.extend({
	alignBox: function(wrapStr, boxStr) {
		$(wrapStr).each(function(){
			var maxHeight = 0;
			var alignBox = $(this).find(boxStr);
			setTimeout(function(){
				for(var i=0; i<alignBox.length; i++){
					maxHeight = Math.max(maxHeight, alignBox.eq(i).height());
				}
				alignBox.height(maxHeight);
			},1);
		});
	}
});
})(jQueryBase);


/*------------------------------------------------------------
	Top Seat Available Form
------------------------------------------------------------*/
(function($){
$(function(){
	var selectElms = $('#sFormSection select');
	var sFormImage = $('#sFormImage').click(function(){
		sFormImage.hide();
		selectElms.show();
	});
	var sFormClose = $('#sFormClose').click(function(){
		selectElms.hide();
		sFormImage.show();
	});
});
})(jQueryBase);
/*------------------------------------------------------------
	Top SWF ExternalInterface Call
------------------------------------------------------------*/
(function($){
$(function(){
	var topSwf01 = swfobject.getObjectById('topSwf01');
	if (topSwf01) {
		$('#headingSegment a,p#sFormImage,p#sFormClose').hover(
			function(){ topSwf01.onOver(); },
			function(){ topSwf01.onOut(); }
		);
	}
});
})(jQueryBase);