function UnsupportedBrowserBanner(n,t){function c(n){n==null&&(n=navigator.userAgent);this.source=n.replace(/^\s*/,"").replace(/\s*$/,"");this.browser_name=e(this.source);this.browser_version=o(this.source);this.os=s(this.source);this.platform=h(this.source)}function l(){var n=new c;return t.ie&&n.browser_name=="ie"&&parseInt(n.browser_version)<t.ie?!1:t.firefox&&n.browser_name=="firefox"&&parseInt(n.browser_version)<t.firefox?!1:t.safari&&n.browser_name=="safari"&&parseInt(n.browser_version)<t.safari?!1:t.chrome&&n.browser_name=="chrome"&&parseInt(n.browser_version)<t.chrome?!1:t.opera&&n.browser_name=="opera"&&parseInt(n.browser_version)<t.opera?!1:!0}function a(){if(!l()){if(n(".browser-banner").length>0)return;var i=n('<div class="browser-banner">');i.css(t.bannerCss);i.html(t.message+'<br /><a href="javascript:closeUnsupportedBrowserBanner();void(0);">'+t.closeText+"<\/a>");n(document.body).prepend(i);i.animate({"margin-top":"+=100px"},1e3)}}if(setUnsupportedBrowserBannerCookie=function(){document.cookie="unsupportedNotice=closed; path=/"},getUnsupportedBrowserBannerCookie=function(){for(var i="unsupportedNotice=",r=document.cookie.split(";"),t,n=0;n<r.length;n++)if(t=r[n].trim(),t.indexOf(i)==0)return t.substring(i.length,t.length);return""},getUnsupportedBrowserBannerCookie()!="closed"){var t=jQuery.extend({message:"You are using an unsupported browser, so some features may not work.",closeText:"ok",bannerCss:{"text-align":"center","font-size":"12px",padding:"10px 0px",background:"#FFEEA9","margin-top":"-100px","border-bottom":"1px solid #CCC","z-index":99999,position:"relative"}},t),u,i,r,f,e,o,s,h;(f={Firefox:/firefox\/([\d\w\.\-]+)/i,IE:/msie\s([\d\.]+[\d])/i,Chrome:/chrome\/([\d\w\.\-]+)/i,Safari:/version\/([\d\w\.\-]+)/i,Ps3:/([\d\w\.\-]+)\)\s*$/i,Psp:/([\d\w\.\-]+)\)?\s*$/i},u={Konqueror:/konqueror/i,Chrome:/chrome/i,Safari:/safari/i,IE:/msie/i,Opera:/opera/i,PS3:/playstation 3/i,PSP:/playstation portable/i,Firefox:/firefox/i},i={WindowsVista:/windows nt 6\.0/i,Windows7:/windows nt 6\.\d+/i,Windows2003:/windows nt 5\.2/i,WindowsXP:/windows nt 5\.1/i,Windows2000:/windows nt 5\.0/i,OSX:/os x (\d+)[._](\d+)/i,Linux:/linux/i,Wii:/wii/i,PS3:/playstation 3/i,PSP:/playstation portable/i,Ipad:/\(iPad.*os (\d+)[._](\d+)/i,Iphone:/\(iPhone.*os (\d+)[._](\d+)/i},r={Windows:/windows/i,Mac:/macintosh/i,Linux:/linux/i,Wii:/wii/i,Playstation:/playstation/i,Ipad:/ipad/i,Ipod:/ipod/i,Iphone:/iphone/i,Android:/android/i,Blackberry:/blackberry/i},e=function(n){return u.Konqueror.test(n)?"konqueror":u.Chrome.test(n)?"chrome":u.Safari.test(n)?"safari":u.IE.test(n)?"ie":u.Opera.test(n)?"opera":u.PS3.test(n)?"ps3":u.PSP.test(n)?"psp":u.Firefox.test(n)?"firefox":"unknown"},o=function(n){var t;switch(e(n)){case"chrome":if(f.Chrome.test(n))return RegExp.$1;break;case"safari":if(f.Safari.test(n))return RegExp.$1;break;case"firefox":if(f.Firefox.test(n))return RegExp.$1;break;case"ie":if(f.IE.test(n))return RegExp.$1;break;case"ps3":if(f.Ps3.test(n))return RegExp.$1;break;case"psp":if(f.Psp.test(n))return RegExp.$1;break;default:if(t=/#\{name\}[\/ ]([\d\w\.\-]+)/i,t.test(n))return RegExp.$1}},s=function(n){return i.WindowsVista.test(n)?"Windows Vista":i.Windows7.test(n)?"Windows 7":i.Windows2003.test(n)?"Windows 2003":i.WindowsXP.test(n)?"Windows XP":i.Windows2000.test(n)?"Windows 2000":i.Linux.test(n)?"Linux":i.Wii.test(n)?"Wii":i.PS3.test(n)?"Playstation":i.PSP.test(n)?"Playstation":i.OSX.test(n)?n.match(i.OSX)[0].replace("_","."):i.Ipad.test(n)?n.match(i.Ipad)[0].replace("_","."):i.Iphone.test(n)?n.match(i.Iphone)[0].replace("_","."):"unknown"},h=function(n){return r.Windows.test(n)?"Microsoft Windows":r.Mac.test(n)?"Apple Mac":r.Android.test(n)?"Android":r.Blackberry.test(n)?"Blackberry":r.Linux.test(n)?"Linux":r.Wii.test(n)?"Wii":r.Playstation.test(n)?"Playstation":r.Ipad.test(n)?"iPad":r.Ipod.test(n)?"iPod":r.Iphone.test(n)?"iPhone":"unknown"},n)&&(closeUnsupportedBrowserBanner=function(){n(".browser-banner").hide();setUnsupportedBrowserBannerCookie()},n(document).ready(a))}}