/* http://keith-wood.name/localisation.html
   Localisation assistance for jQuery v1.0.5.
   Written by Keith Wood (kbwood{at}iinet.com.au) June 2007. 
   Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and 
   MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. 
   Please attribute the author if you use it. */
(function($){$.localise=function(c,d,e,f,g){if(typeof d!='object'&&typeof d!='string'){g=f;f=e;e=d;d=''}if(typeof e!='boolean'){g=f;f=e;e=false}if(typeof f!='string'&&!$.isArray(f)){g=f;f=['','']}d=(typeof d!='string'?d||{}:{language:d,loadBase:e,path:f,timeout:g});var h=(!d.path?['','']:($.isArray(d.path)?d.path:[d.path,d.path]));var j={async:false,dataType:'script',timeout:(d.timeout!=null?d.timeout:500)};var k=function(a,b){if(d.loadBase){$.ajax($.extend(j,{url:h[0]+a+'.js'}))}if(b.length>=2){$.ajax($.extend(j,{url:h[1]+a+'-'+b.substring(0,2)+'.js'}))}if(b.length>=5){$.ajax($.extend(j,{url:h[1]+a+'-'+b.substring(0,5)+'.js'}))}};var l=normaliseLang(d.language||$.localise.defaultLanguage);c=($.isArray(c)?c:[c]);for(i=0;i<c.length;i++){k(c[i],l)}};$.localize=$.localise;$.localise.defaultLanguage=normaliseLang(navigator.language||navigator.userLanguage);function normaliseLang(a){a=a.replace(/_/,'-').toLowerCase();if(a.length>3){a=a.substring(0,3)+a.substring(3).toUpperCase()}return a}})(jQuery);
