jQuery.noConflict();
jQuery(document).ready(function($){
	function trace (str) {
		if (window.fireunit && $.browser.mozilla ) 
			fireunit.ok(true, str.toString());
	}
	trace(1);
	
	// if level is empty, making padding 0
	$("div[class^='level']").each(function(){
		if ($.trim($(this).text().toString()) == '') {
			$(this).css('padding', '0');
			trace(2);
		}
	});
	
	// control table width
	$("#user__manager table.inline").each(function(){
		if ($(this).width() > 700) {
			$(this).find("input.edit").width(140);
			trace(3);
		}
	});
	
	// replace html
	$("b").each(function(){
		$(this).replaceWith("<strong>" + $(this).html() + "</strong>");
		trace(4);
	});
	
	// replace content
	$("input.button[value^='subscribe']").each(function(){
		var v = $(this).attr('value').replace('changes', '');
		v = v.replace('subscribe', 'subscribe to');
		$(this).attr('value', v);
		trace(5);
	});

	if ($.browser.msie) {
		// add hover class to submit on hover
		$("input.button").hover(function(){
			$(this).addClass('buttonHover');
		}, function(){
			$(this).removeClass('buttonHover');
		});

	}
	
});
