jQuery.noConflict();
jQuery(document).ready(function(){	
	// Fix the hated IE6 png transparency issue.
	jQuery(document).pngFix();
	
	// For New Tab info
	jQuery("ul.tabs").tabs("div.panes > div");
	jQuery("ul.blogTabs").tabs("div.panes > div");
	
	jQuery(".navUL li:last").css("borderBottom","none");
	jQuery("ul.navUL li ul li:last").css("borderBottom","none");
	

	// If a file is a linked pdf, it will open cleanly.							
	jQuery("a[href*=.pdf]").click(function()	{
		jQuery(this).attr({"target":"_self"});
		return false;
	});
	
	// same as target=_blank, but w3c
	jQuery('a[rel="external"]').click( function() {
        window.open( jQuery(this).attr('href') );
        return false;
    });
	
	jQuery(".photoStream a:last").css("marginRight",0);
	
	// Lets Deal with the drop down menus.							
	jQuery("#van-one li").hover(function(){
		jQuery(this).addClass("sfHover");
		jQuery("ul", this).fadeIn("slow");
	}, 
		function(){jQuery(this).removeClass("sfHover");}
	);
	if (document.all) {
		jQuery("#van-one li").hoverClass("sfHover");
	}


});

// For the Dropdowns in the main menu as well.
jQuery.fn.hoverClass = function(c) {
	return this.each(function(){
		jQuery(this).hover( 
			function() { jQuery(this).addClass(c);  },
			function() { jQuery(this).removeClass(c); }
		);
	});
};	