SimpleClass = function(){
	this.title = null;
	
	this.notify = function(html, title, cookieName, skipCheck){
		$('#simple_notifier_content').html(html);
		if(cookieName == undefined) cookieName = '';
		skipCheck = skipCheck !== true ? false : true;
		if (skipCheck || !getCookie('invSh'+cookieName, false)) {
			BodyMask.show();
			topOffest = 150;
			if (jQuery.support.allowFixed()	) {
				$('#simple_notifier').parent().parent().css( { position: 'fixed', top: topOffest } );
			} else {
				$('#simple_notifier').parent().parent().css( { position: 'absolute', top: topOffest + $(window).scrollTop() } );
			}
			
			$('#simple_notifier').stop(true).css( {opacity: 0}).show().fadeTo(333, 1);
			this.title = title;
			if(skipCheck) pageTracker._trackEvent('Simple Click', this.title);
			setCookie('invSh'+cookieName, 'true');
		}
	}
	
	this.hide = function(){
		pageTracker._trackEvent('Simple', this.title);
		$('#simple_notifier').stop(true).fadeOut(333, 0, function(){$(this).hide()});
		BodyMask.hide();
	}
}

simple = new SimpleClass();
