/**
 *
 * Code =>
 *         Last Modified : 22 July 2009
 *
 */

$(function() {
	// activate png fix
	$(document).pngFix();
	
	// external links open in a new window
	$('a[rel=external]').click(function(e) {
		open(this.href);
		e.preventDefault();
	}).attr('title', 'Opens in a new window');
	
	// fancy slide up and down effect on navigation hover
	$("#header ul li a").hover(function() {
		$(this).parent().find("ul.subnav").show();
		
		$(this).parent().hover(function() {
		}, function() {
			$(this).parent().find("ul.subnav").hide();
		});
	});
	
	// append extra markup to the header sub navigation so we can give it rounded edges at the bottom
	$('#header ul li ul').append('<li><span></span></li>');
});