/*
	* jReject (jQuery Browser Rejection Plugin)
	* Version 0.7-Beta
	* URL: http://jreject.turnwheel.com/
	* Description: jReject gives you a customizable and easy solution to reject/allowing specific browsers access to your pages
	* Author: Steven Bower (TurnWheel Designs) http://turnwheel.com/
	* Copyright: Copyright (c) 2009-2010 Steven Bower under dual MIT/GPL license.
	* Depends On: jQuery Browser Plugin (http://jquery.thewikies.com/browser)
*/
(function($){$.reject=function(h){var h=$.extend(true,{reject:{all:false,msie5:true,msie6:true},display:[],browserInfo:{firefox:{text:'Firefox 3.5+',url:'http://www.mozilla.com/firefox/'},safari:{text:'Safari 4',url:'http://www.apple.com/safari/download/'},opera:{text:'Opera 10.5',url:'http://www.opera.com/download/'},chrome:{text:'Chrome 5',url:'http://www.google.com/chrome/'},msie:{text:'Internet Explorer 8',url:'http://www.microsoft.com/windows/Internet-explorer/'},gcf:{text:'Google Chrome Frame',url:'http://code.google.com/chrome/chromeframe/',allow:{all:false,msie:true}}},header:'Did you know that your Internet Browser is out of date?',paragraph1:'Your browser is out of date, and may not be compatible with our website. A list of the most popular web browsers can be found below.',paragraph2:'Just click on the icons to get to the download page',close:true,closeMessage:'By closing this window you acknowledge that your experience on this website may be degraded',closeLink:'Close This Window',closeURL:'#',closeESC:true,closeCookie:false,cookieSettings:{path:'/',expires:0},imagePath:'/images/',overlayBgColor:'#000',overlayOpacity:0.8,fadeInTime:'fast',fadeOutTime:'fast'},h);if(h.display.length<1)h.display=['firefox','chrome','msie','safari','opera','gcf'];if($.isFunction(h.beforeReject))h.beforeReject(h);if(!h.close)h.closeESC=false;var j=function(a){return(a['all']?true:false)||(a[$.os.name]?true:false)||(a[$.layout.name]?true:false)||(a[$.browser.name]?true:false)||(a[$.browser.className]?true:false)};if(!j(h.reject)){if($.isFunction(h.onFail))h.onFail(h);return false}if(h.close&&h.closeCookie){var k='jreject-close';var l=function(a,b){if(typeof b!='undefined'){var c='';if(h.cookieSettings.expires!=0){var d=new Date();d.setTime(d.getTime()+(h.cookieSettings.expires));var c="; expires="+d.toGMTString()}var e=h.cookieSettings.path||'/';document.cookie=a+'='+encodeURIComponent(b==null?'':b)+c+'; path='+e}else{var f,val=null;if(document.cookie&&document.cookie!=''){var g=document.cookie.split(';');for(var i=0;i<g.length;++i){f=$.trim(g[i]);if(f.substring(0,a.length+1)==(a+'=')){val=decodeURIComponent(f.substring(a.length+1));break}}}return val}};if(l(k)!=null)return false}var m='<div id="jr_overlay"></div><div id="jr_wrap"><div id="jr_inner"><h1 id="jr_header">'+h.header+'</h1>'+(h.paragraph1===''?'':'<p>'+h.paragraph1+'</p>')+(h.paragraph2===''?'':'<p>'+h.paragraph2+'</p>')+'<ul>';var n=0;for(var x in h.display){var o=h.display[x];var p=h.browserInfo[o]||false;if(!p||(p['allow']!=undefined&&!j(p['allow'])))continue;var q=p.url||'#';m+='<li id="jr_'+o+'"><div class="jr_icon"></div>'+'<div><a href="'+q+'">'+(p.text||'Unknown')+'</a></div></li>';++n}m+='</ul><div id="jr_close">'+(h.close?'<a href="'+h.closeURL+'">'+h.closeLink+'</a><p>'+h.closeMessage+'</p>':'')+'</div>'+'</div></div>';var r=$('<div>'+m+'</div>');var s=u();var t=v();r.bind('closejr',function(){if(!h.close)return false;if($.isFunction(h.beforeClose))h.beforeClose(h);$(this).unbind('closejr');$('#jr_overlay,#jr_wrap').fadeOut(h.fadeOutTime,function(){$(this).remove();if($.isFunction(h.afterClose))h.afterClose(h)});$('embed, object, select, applet').show();if(h.closeCookie)l(k,'true');return true});r.find('#jr_overlay').css({width:s[0],height:s[1],position:'absolute',top:0,left:0,background:h.overlayBgColor,zIndex:200,opacity:h.overlayOpacity,padding:0,margin:0}).next('#jr_wrap').css({position:'absolute',width:'100%',top:t[1]+(s[3]/4),left:t[0],zIndex:300,textAlign:'center',padding:0,margin:0}).children('#jr_inner').css({background:'#FFF',border:'1px solid #CCC',fontFamily:'"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif',color:'#4F4F4F',margin:'0 auto',position:'relative',height:'auto',minWidth:n*100,maxWidth:n*140,width:$.layout.name=='trident'?n*155:'auto',padding:20,fontSize:12}).children('#jr_header').css({display:'block',fontSize:'1.3em',marginBottom:'0.5em',color:'#333',fontFamily:'Helvetica,Arial,sans-serif',fontWeight:'bold',textAlign:'left',padding:5,margin:0}).nextAll('p').css({textAlign:'left',padding:5,margin:0}).siblings('ul').css({listStyleImage:'none',listStylePosition:'outside',listStyleType:'none',margin:0,padding:0}).children('li').css({background:'transparent url("'+h.imagePath+'background_browser.gif") no-repeat scroll left top',cusor:'pointer','float':'left',width:120,height:122,margin:'0 10px 10px 10px',padding:0,textAlign:'center'}).children('.jr_icon').css({width:100,height:100,margin:'1px auto',padding:0,background:'transparent no-repeat scroll left top',cursor:'pointer'}).each(function(){var a=$(this);a.css('background','transparent url('+h.imagePath+'browser_'+(a.parent('li').attr('id').replace(/jr_/,''))+'.gif) no-repeat scroll left top');a.click(function(){window.open($(this).next('div').children('a').attr('href'),'jr_'+Math.round(Math.random()*11));return false})}).siblings('div').css({color:'#808080',fontSize:'0.8em',height:18,lineHeight:'17px',margin:'1px auto',padding:0,width:118,textAlign:'center'}).children('a').css({color:'#333',textDecoration:'none',padding:0,margin:0}).hover(function(){$(this).css('textDecoration','underline')},function(){$(this).css('textDecoration','none')}).click(function(){window.open($(this).attr('href'),'jr_'+Math.round(Math.random()*11));return false}).parents('#jr_inner').children('#jr_close').css({margin:'0 0 0 50px',clear:'both',textAlign:'left',padding:0,margin:0}).children('a').css({color:'#000',display:'block',width:'auto',margin:0,padding:0,textDecoration:'underline'}).click(function(){$(this).trigger('closejr');if(h.closeURL==='#')return false}).nextAll('p').css({padding:'10px 0 0 0',margin:0});$('#jr_overlay').focus();$('embed, object, select, applet').hide();$('body').append(r.hide().fadeIn(h.fadeInTime));$(window).bind('resize scroll',function(){var a=u();$('#jr_overlay').css({width:a[0],height:a[1]});var b=v();$('#jr_wrap').css({top:b[1]+(a[3]/4),left:b[0]})});if(h.closeESC){$(document).bind('keydown',function(a){if(a.keyCode==27)r.trigger('closejr')})}if($.isFunction(h.afterReject))h.afterReject(h);return true};var u=function(){var a=window.innerWidth&&window.scrollMaxX?window.innerWidth+window.scrollMaxX:(document.body.scrollWidth>document.body.offsetWidth?document.body.scrollWidth:document.body.offsetWidth);var b=window.innerHeight&&window.scrollMaxY?window.innerHeight+window.scrollMaxY:(document.body.scrollHeight>document.body.offsetHeight?document.body.scrollHeight:document.body.offsetHeight);var c=window.innerWidth?window.innerWidth:(document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth);var d=window.innerHeight?window.innerHeight:(document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight);return[a<c?a:c,b<d?d:b,c,d]};var v=function(){return[window.pageXOffset?window.pageXOffset:(document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollLeft:document.body.scrollLeft),window.pageYOffset?window.pageYOffset:(document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)]}})(jQuery);


/*
	* jQuery Browser Plugin
	* Version 2.3
	* 2008-09-17 19:27:05
	* URL: http://jquery.thewikies.com/browser
	* Description: jQuery Browser Plugin extends browser detection capabilities and can assign browser selectors to CSS classes.
	* Author: Nate Cavanaugh, Minhchau Dang, & Jonathan Neal
	* Copyright: Copyright (c) 2008 Jonathan Neal under dual MIT/GPL license.
*/
(function($){$.browserTest=function(a,z){var u='unknown',x='X',m=function(r,h){for(var i=0;i<h.length;i=i+1){r=r.replace(h[i][0],h[i][1]);}return r;},c=function(i,a,b,c){var r={name:m((a.exec(i)||[u,u])[1],b)};r[r.name]=true;r.version=(c.exec(i)||[x,x,x,x])[3];if(r.name.match(/safari/)&&r.version>400){r.version='2.0';}if(r.name==='presto'){r.version=($.browser.version>9.27)?'futhark':'linear_b';}r.versionNumber=parseFloat(r.version,10)||0;r.versionX=(r.version!==x)?(r.version+'').substr(0,1):x;r.className=r.name+r.versionX;return r;};a=(a.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?m(a,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,''],['Chrome Safari','Chrome'],['KHTML','Konqueror'],['Minefield','Firefox'],['Navigator','Netscape']]):a).toLowerCase();$.browser=$.extend((!z)?$.browser:{},c(a,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));$.layout=c(a,/(gecko|konqueror|msie|opera|webkit)/,[['konqueror','khtml'],['msie','trident'],['opera','presto']],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);$.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[u])[0].replace('sunos','solaris')};if(!z){$('html').addClass([$.os.name,$.browser.name,$.browser.className,$.layout.name,$.layout.className].join(' '));}};$.browserTest(navigator.userAgent);})(jQuery);

