var IE6 = (navigator.userAgent.indexOf("MSIE 6")>=0) ? true : false;
if(IE6){

	$(function(){
		
		$("<div>")
			.css({
				'position': 'absolute',
				'top': '0px',
				'left': '0px',
				backgroundColor: 'white',
				'opacity': '0.75',
				'width': '100%',
				'height': $(window).height(),
				zIndex: 5000
			})
			.appendTo("body");
			
		$("<div><a href='http://windows.microsoft.com/en-US/internet-explorer/products/ie/home'>upgrade your browser</a><BR><a href='http://www.mozilla.org/en-US/firefox/new/'>or get a better one</a></p>")
			.css({
				backgroundColor: 'white',
				'top': '50%',
				'left': '50%',
				'text-align': 'center',
				'line-height': '20px',
				marginLeft: -80,
				marginTop: -10,
				width: 160,
				paddingRight: 10,
				'height': '0px',
				'position': 'absolute',
				zIndex: 6000
			})
			.appendTo("body");
	});		
}

var IE7 = (navigator.userAgent.indexOf("MSIE 7")>=0) ? true : false;
if(IE7){

	$(function(){
		
		$("<div>")
			.css({
				'position': 'absolute',
				'top': '0px',
				'left': '0px',
				backgroundColor: 'white',
				'opacity': '0.85',
				'width': '100%',
				'height': $(window).height(),
				zIndex: 5000
			})
			.appendTo("body");
			
		$("<div><a href='http://windows.microsoft.com/en-US/internet-explorer/products/ie/home'>upgrade your browser</a><BR><a href='http://www.mozilla.org/en-US/firefox/new/'>or get a better one</a></p>")
			.css({
				backgroundColor: 'white',
				'top': '50%',
				'left': '50%',
				'text-align': 'center',
				'line-height': '20px',
				marginLeft: -80,
				marginTop: -10,
				width: 160,
				paddingRight: 10,
				'height': '0px',
				'position': 'absolute',
				zIndex: 6000
			})
			.appendTo("body");
	});		
}
var IE8 = (navigator.userAgent.indexOf("MSIE 8")>=0) ? true : false;
if(IE8){

	$(function(){
		
		$("<div>")
			.css({
				'position': 'absolute',
				'top': '0px',
				'left': '0px',
				backgroundColor: 'white',
				'opacity': '0.85',
				'width': '100%',
				'height': $(window).height(),
				zIndex: 5000
			})
			.appendTo("body");
			
		$("<div><a href='http://windows.microsoft.com/en-US/internet-explorer/products/ie/home'>upgrade your browser</a><BR><a href='http://www.mozilla.org/en-US/firefox/new/'>or get a better one</a></p>")
			.css({
				backgroundColor: 'white',
				'top': '50%',
				'left': '50%',
				'text-align': 'center',
				'line-height': '20px',
				marginLeft: -80,
				marginTop: -10,
				width: 160,
				paddingRight: 10,
				'height': '0px',
				'position': 'absolute',
				zIndex: 6000
			})
			.appendTo("body");
	});		
}	


