// Pixelsilk IE Detector Plugin - minified
// Version 1.0.1 - DMC
// Last Update: 4/16/2010 - DMC
// This simple plugin will detect which version of Internet Explorer the user is using and display an appropriate "upgrade" message.

// ## Syntax ##
// if you wish to add the message to the <body> tag, use this:

// $('body').ieDetector();

jQuery.fn.ieDetector=function(options){var defaults={browserVersion:6,slideDownSpeed:1000,slideUpSpeed:500,elementID:'browserAlert',barClose:true,barTextAlign:'center',barPosition:'absolute',barPositionLeft:'0',barWidth:'100%',barZindex:'1000',barOpacity:'0.90',barBorderBottom:'solid 1px #a29330',barAlertGraphic:'/browser-alert.gif',barForegroundColor:'#000',barBackgroundColor:'#fdf2ab',contentMargin:'0 auto',contentPadding:'5px 30px',contentMaxWidth:'850px',content:'<p><strong>Did you know that your version of Internet Explorer is out of date?</strong> To get the best possible experience using our website, we recommend that you <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx" target="_blank">upgrade your current browser</a>, or install another web browser. Here is a list of the most popular web browsers: <strong><a href="http://www.getfirefox.com" target="_blank">FireFox</a></strong>, <a href="http://www.google.com/chrome" target="_blank">Chrome</a>, <a href="http://www.opera.com" target="_blank">Opera</a>.</p>'};var options=$.extend(defaults,options);if(jQuery.browser.msie&&jQuery.browser.version<=options.browserVersion){$(this).append('<div id="'+options.elementID+'" style="color:'+options.barForegroundColor+';"></div>');var barStyle={'text-align':options.barTextAlign,'position':options.barPosition,'left':options.barPositionLeft,'width':options.barWidth,'z-index':options.barZindex,'opacity':options.barOpacity,'border-bottom':options.barBorderBottom,'background':''+options.barBackgroundColor+' url('+options.barAlertGraphic+') no-repeat 5px center'}
var contentStyle={'margin':options.contentMargin,'padding':options.contentPadding,'max-width':options.contentMaxWidth}
if($('#'+options.elementID).size()>0){$('#'+options.elementID).css({'top':'-'+$(this).height()+'px'}).html(options.content).css(barStyle).find('p').css(contentStyle).parent().animate({top:'0'},options.slideDownSpeed);}
if(options.barClose){$('#'+options.elementID).append('<div id="barClose" title="Close">X</div>');$('#barClose').css({'position':'absolute','top':'5px','right':'5px','display':'block','width':'18px','height':'18px','overflow':'hidden','cursor':'pointer','color':'#000','border':'solid 2px #f00','background':'#fff'});$('#barClose').click(function(){$('#'+options.elementID).animate({top:'-'+$('#'+options.elementID).height()+'px'},options.slideUpSpeed);});}}};