// controls the submenus  
jQuery(function(){

	// we need the immediate descendant selector here
	// this will have to be changed if/when we implement submenus
	var MenuLIs = jQuery('#nav > ul > li');
	MenuLIs.bind('mouseenter', function(){
		var realTarget = jQuery(this);
		
		// fade in the child of the target
		realTarget.children('ul').show();
		return false;
	})
	.bind('mouseleave', function(){
		var realTarget = jQuery(this);
		realTarget.children('ul').hide();
		return false;
	});
});

// controls the tertiary menus
/*
jQuery(function(){

	// we need the immediate descendant selector here
	// this will have to be changed if/when we implement submenus
	var MenuLIs = jQuery('#nav > ul > li > ul > li');
		
	MenuLIs.bind('mouseenter', function(){
		var realTarget = jQuery(this);
		var ParentWidth = realTarget.outerWidth() + 2;

		// fade in the child of the target
		realTarget.children('ul').css('left', ParentWidth + 'px');
		realTarget.children('ul').show();
		// return false;
	})
	.bind('mouseleave', function(){
		var realTarget = jQuery(this);
		realTarget.children('ul').hide();
		// return false;
	});
});
*/

// Print Links 
jQuery(function(){
	var PrintLinks = jQuery('a.IsPrint');
	PrintLinks.click(function(){
		window.print();
		return false;
	});
});

jQuery(function(){
	// flash banner menu
	var flashvars = {};
	var params = {wmode: "transparent"};
	var attributes = {};
	swfobject.embedSWF("_flashs/banner.swf", "flashBanner", "900", "77", "8", "_flashs/expressinstall.swf", flashvars, params, attributes);
});
