(function (w, $) {
	w.toolbelt = {};

	w.toolbelt.resizeFunctions = [];
	w.toolbelt.addEventOnWindowResize = function (f) {
		$(window).unbind('resize').bind('resize', w.toolbelt.runWindowResizeEvents);
		w.toolbelt.resizeFunctions.push(f);
		f();
	};
	w.toolbelt.runWindowResizeEvents = function () {
		for (var i = 0, l = w.toolbelt.resizeFunctions.length; i < l; i++) {
			w.toolbelt.resizeFunctions[i]();
		}
	};

	w.toolbelt.checkSWFObject = function (cb) {
		if (typeof swfobject === 'undefined' || swfobject === null) {
			$.getScript(window.location.protocol + '//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js', function () {
				if (!!cb) {
					cb();
				}
			});
		} else {
			if (!!cb) {
				cb();
			}
		}
	};

	w.toolbelt.exists = function(obj) {
		return typeof obj !== 'undefined' && !!obj;
	};

	//I know people don't like this, but sometimes you need to know if it's iOS, IE or Android, sorry
	w.toolbelt.checkBrowser = function(browser) {
		return navigator.userAgent.toLowerCase().match(new RegExp(type)) != null;
	};

	w.toolbelt.visible = function(obj) {
		if (typeof obj === 'string') {
			obj = $(obj);
		}

		if (!obj.is(':visible')) {
			return false;
		} else if (obj.is(':hidden')) {
			return true;
		}

		var $window = $(w),
			docViewTop = $window.scrollTop(),
			docViewBottom = docViewTop + $window.height(),
			elemTop = obj.offset().top,
			elemBottom = elemTop + obj.height();

		return elemBottom >= docViewTop && elemTop <= docViewBottom;
	};
}(window, jQuery));
@@ -1026,22 +1026,675 @@
 Exp(
-type)) != null
+browser)) != null;%0A%09%7D;%0A%09w.toolbelt.isMobile = function() %7B%0A%09%09return w.toolbelt.checkBrowser('iphone%7Cipod%7Cipad%7Cmobile%7Candroid');%0A%09%7D;%0A%09w.toolbelt.isIOS = function() %7B%0A%09%09return w.toolbelt.checkBrowser('iphone%7Cipod%7Cipad%7Cmobile safari');%0A%09%7D;%0A%09w.toolbelt.isIPad = function() %7B%0A%09%09return w.toolbelt.checkBrowser('ipad');%0A%09%7D;%0A%09w.toolbelt.isIPod = function() %7B%0A%09%09return w.toolbelt.checkBrowser('ipod');%0A%09%7D;%0A%09w.toolbelt.isIPhone = function() %7B%0A%09%09return w.toolbelt.checkBrowser('iphone');%0A%09%7D;%0A%09w.toolbelt.isAndroid = function() %7B%0A%09%09return w.toolbelt.checkBrowser('android');%0A%09%7D;%0A%09w.toolbelt.isWindowsPhone = function() %7B%0A%09%09return w.toolbelt.checkBrowser('iemobile%7CWindows Phone')
 ;%0A%09%7D

Add some sample browser sniffing