jQuery.noConflict();
jQuery(document).ready(function(){	
	
	jQuery(document).pngFix();
	
	
	// For New Tab info
	jQuery("ul.tabs").tabs("div.panes > div");
	jQuery("ul.blogTabs").tabs("div.panes > div");
	



	// 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('.blogroll li a').click( function() {
        window.open( jQuery(this).attr('href') );
        return false;
    });
	
	
	jQuery(".url").click( function() {
        window.open( jQuery(this).attr('href') );
        return false;
	});
	
	
	// Lets Deal with the drop down menus.							
	jQuery("#van-one li").hover(
		function(){ jQuery("ul", this).fadeIn("slow"); }, 
		function() { } 
	);
	if (document.all) {
		jQuery("#van-one li").hoverClass("sfHover");
	}
	
	// Cleaning up padding and borders for sub links and footer links.
	jQuery(".subTierLinkBox a:first").css("paddingLeft",0).css("marginLeft",0);
	jQuery(".subTierLinkBox a:last").css("borderRight","none");	
	jQuery(".footerLinks a:first").css("paddingLeft",0).css("marginLeft",0);
	jQuery(".footerLinks a:last").css("borderRight","none");
	
	//jQuery(".post:odd").css("backgroundColor","#f9f9f9");
	
	
		
});

// 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); }
		);
	});
};	
