var tips = new function() {
	this.show = function(text, autoHide,seconds) {
		var self = this;
		if(seconds == null){
			seconds=2000;
		}
		$('.top-tips').html('<span>'+text+ '</span>');
		$('.top-tips span').fadeIn(1000, function() {
			if (autoHide == null || autoHide == true) {
				setTimeout(function() {
					self.hide(true);
				}, seconds);
			}
		});
	}
	
	this.hide = function(fade) {
		if (fade == true) {
			$('.top-tips span').fadeOut(1000, function() {
				$('.top-tips span').remove();
			});
		}
	}
}