if (!sgitin) var sgitin = {};
sgitin.debug = false;

(function($) {	
	$('html').addClass('js-enabled');
	
	sgitin.isMobileDevice = ('onorientationchange' in window || navigator.userAgent.match(/Android/i));
	sgitin.isIpad = navigator.userAgent.match(/iPad/i);
	
	if (sgitin.isMobileDevice) {
		$('html').addClass('mobile');
	}
	
	if (sgitin.isIpad) {
		$('html').addClass('ipad');
	}
	
	$(function() {
		var showSiteInfo = $('#show-site-info');
		var siteInfo = $('#site-info');
		if (showSiteInfo.length && siteInfo.length) {
			siteInfo.collapsible();
			showSiteInfo.click(function(event) {
				event.preventDefault();
				siteInfo.show();
			});
		}
	});
})(jQuery);

function log(message) {
	if (sgitin.debug && window.console) console.log(message);
}
