jQuery(function() { $=jQuery; var userAgent = navigator.userAgent.toLowerCase(); // Figure out what browser is being used this is to fix jquery out of the box chrome problem $.browser = { version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1], chrome: /chrome/.test( userAgent ), safari: /webkit/.test( userAgent ) && !/chrome/.test( userAgent ), opera: /opera/.test( userAgent ), msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ), mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent ) }; var notSupportedBrowserText="Sorry, but we've detected that you are using a browser type or version which may not work on parts of this site. To limit costs we only support Internet Explore versions 7 and 8, Firefox 3 + and Chrome 8 +.If you are using an older version of these browsers you could consider getting a free upgrade to the current version, to get the best user experience from our site." var cookieName = "rspcaNonSupportedBrowser"; var coolieValue="rspcaNonSupportedBrowser"; $(document).ready(function() { if (!(($.browser.mozilla && $.browser.version >= "1.9") ||($.browser.msie && $.browser.version.substring(0,$.browser.version.indexOf('.')) > 6 ) || ($.browser.chrome && $.browser.version.substring(0,$.browser.version.indexOf('.')) > 8 ))) { if(null==readCookie(cookieName)){ createCookie(cookieName, coolieValue); $.uiLock(notSupportedBrowserText); } $('.nonSupportedClose').click(function(){ $.uiUnlock(); return false; }); } }); function createCookie(name,value) { document.cookie = name+"="+value+"; path=/"; }; function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }; }); (function($) { $.extend({ uiLock: function(content){ if(content == 'undefined') content = ''; $('