var IE6 = (navigator.userAgent.indexOf("MSIE 6")>=0) ? true : false;
if(IE6){

	$(function(){
		
		$("<div id='test'></div>").appendTo("body");
		$("#test").css({
				'position': 'absolute',
				'top': '0px',
				'left': '0px',
				backgroundColor: 'black',
				'opacity': '0.75',
				'width': '100%',
				'height': $(document).height(),
				zIndex: 5000
			})
		var cont="<div id='cont'><img src='IE6Blocker/no-ie6.png' alt='' style='float: left;'/><p><br /><strong>Sorry! This page doesn't support Internet Explorer 6.</strong><br /><br />If you'd like to read our content please <a href='http://getfirefox.org'>upgrade your browser</a>.</p></div>";
			
		$("#test").html(cont);
		
		$("#cont").css({
				backgroundColor: 'white',
				'top': '20%',
				'left': '50%',
				marginLeft: -210,
				marginTop: -100,
				width: 410,
				paddingRight: 10,
				height: 200,
				'position': 'absolute',
				zIndex: 6000
			})
		
//		$("<div><img src='IE6Blocker/no-ie6.png' alt='' style='float: left;'/><p><br /><strong>Sorry! This page doesn't support Internet Explorer 6.</strong><br /><br />If you'd like to read our content please <a href='http://getfirefox.org'>upgrade your browser</a>.</p></div>")
//		.css({
//				backgroundColor: 'white',
//				'top': '50%',
//				'left': '50%',
//				marginLeft: -210,
//				marginTop: -100,
//				width: 410,
//				paddingRight: 10,
//				height: 200,
//				'position': 'absolute',
//				zIndex: 6000
//			})
//			.appendTo("body");
	});		
}
