// On DOM ready
jQuery(document).ready( function($) {
	
// Mobile Detection Functions

/*		var ua = navigator.userAgent;
		var checker = {
		  iphone: ua.match(/(iPhone|iPod|iPad)/),
		  blackberry: ua.match(/BlackBerry/),
		  android: ua.match(/Android/)
		};
		
		
		
	if (checker.blackberry || checker.iphone || checker.android){
		
		if($.cookie("bb_mobile") == null) {
			$.cookie("bb_mobile", 'mobileon', { path: '/', domain: 'beyondbatten.org' });
		} 
		

		
		var state = $.cookie("bb_mobile");
		
		if(state == "mobileon") {
			window.location.href = "http://beyondbatten.org/mobile/";
		} 

	}
	
		$("#mobileswitchon").click(function(){
			$.cookie("bb_mobile", "mobileon", { path: '/', domain: 'beyondbatten.org' });
			window.location.href = "http://beyondbatten.org/mobile/";
		});*/
	
	
});
