/**
 * @name BaddHabit User Interface
 * @version 2008.12.24
 * @author nick herold (nick@axisweb.com)
 * 
 * @type jQuery
 * @requires jQuery v1.2.6
 * @requires jquery.ifixpng v3.1.2 (2008.09.01)
 */
$(function() {
	// externalizes outside links
	$("a[@href^='//'],a[@href^='http://']").attr('target','_blank');

	//png fix for stupid ie6
	$.ifixpng('/_ui/img/x.gif');
	$('#home-nav').ifixpng();

	// nav preload and mouseovers
	$(".nav img").preload({
		find: '.png',
		replace: '-on.png'
	}).hover(
		function(){
			this.src = this.src.replace('.png','-on.png');	
		},function(){
			this.src = this.src.replace('-on','');
	});
});