/* ----------------------------------
jQuery killIE v0.3
very basic plugin to help kill Internet Explorer 6 and/or 7
tested with jQuery v1.2+
©2008 CSSLab.cl
free for any use, of course... :D
instructions: http://www.csslab.cl/2008/09/24/muerte-a-ie-nuevo-plugin/
---------------------------------- */

var firefox = 	"<a href='http://www.getfirefox.com/' title='Link to download Firefox browser'>Firefox</a>";
var opera = 	"<a href='http://www.opera.com/download/' title='Link to download Opera Browser'>Opera</a>";
var safari = 	"<a href='http://www.apple.com/safari/download/' title='Link to download Apple Safari browser'>Safari</a>";
var chrome = 	"<a href='http://www.google.com/chrome' title='Link to download Google Chrome browser'>Chrome</a>";

var ie6 = "6.0";
var ie7 = "7.0";

jQuery.fn.killIE = function(settings){
	
	settings = jQuery.extend({
		text: "You're using Internet Explorer 6, which is a terrible browser. Why don't you try",
		style: "text-align: center; font-weight: bold; color: #fff; font-family: Arial, sans-serif; ",
		browser: firefox,
		version: ie6
	}, settings);
		
	return this.each(function(){
/*	    jQuery.each(jQuery.browser, function(i, val) {
			if(i=="msie" && jQuery.browser.version.substr(0,3)==settings.version)
				$("body").prepend(
					"<p style='"+settings.style+"'>"+settings.text+" "+settings.browser+"?</p>"
				);
				$('#content').css('display', 'none');
				$('#footer').css('display', 'none');	

			});
		*/	
		
		jQuery.each(jQuery.browser, function(i, val) {
		if((i=="msie")&&(val==true)){
			$("body").prepend(
					"<p style='"+settings.style+"'>"+settings.text+" "+settings.browser+"</p>"
				);
				$('#content').css('display', 'none');
				$('#footer').css('display', 'none');
		}
	});

	});

};
