if (typeof(ASPERITY) == 'undefined') {
	ASPERITY	= {};
	ASPERITY.UI	= {};
}

ASPERITY.UI.Global	= function()
{
	var init	= function() {
		$('body').addClass('js');
		replaceSubmits();
		enhanceCSS();
		$('#promo').supersleight();
	};
	
	var replaceSubmits	= function() {
		$('form input.replace').each(function(i, obj) {
			
		
			obj = $(obj);
			
			obj.hide();
			if (obj.hasClass('go')) {
				obj.after($('<button type="submit" class="replaced go"><img src="/img/button-go.gif" /></button>'));
			}else{
				obj.after($('<button type="submit" class="replaced submit"><img src="/img/button-submit.gif" /></button>'));
			}
		});
		
		
	};
	
	var enhanceCSS = function() {
		$('.box blockquote + p').addClass('attrib');
	};
	

	
	return {
		init: init
	};
	
}();

jQuery(function($) { ASPERITY.UI.Global.init(); });