jQuery.fn.ie6 = function( ) {
	
	return this.each(function(){
		if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 7 && parseInt(jQuery.browser.version, 10) > 4) {
			
			// alert( "ie6");
			// jQuery(this).hide();
			
			$(function(){
				$("<div id='browserWarning'>You are using an unsupported browser. Please switch to <a href='http://getfirefox.com'>FireFox</a>, <a href='http://www.opera.com/download/'>Opera</a>, <a href='http://www.apple.com/safari/'>Safari</a> or <a href='http://www.microsoft.com/windows/downloads/ie/getitnow.mspx'>Internet Explorer 7</a>. Thanks!&nbsp;&nbsp;&nbsp;[<a href='#' id='warningClose'>close</a>] </div> ")
					.css({
						backgroundColor: '#f37a7a',
						'width': '100%',
						'border-top': 'solid 1px #000',
						'border-bottom': 'solid 1px #000',
						'text-align': 'center',
						padding:'5px 0px 5px 0px',
						'color':'#333'
					})
					.prependTo("body");

				$('#warningClose').click(function(){
					// setBadBrowser('browserWarning','seen');
					$('#browserWarning').slideUp('slow');
					return false;
				});
			});
			
		} else {
			// alert( "not ie6");
		}
	});
};
