
	/* Misc Functions */

	var Des = Des || {};

	Des.css_on = function() {
		//	FOR THIS TO WORK make sure the following CSS is being referenced somewhere:
		//	.css_test { display: none; height: 1px; width: 1px; }

		$('<div class="css_test"></div>').appendTo('body');
		result = $('.css_test').width() > 0;
		$('.css_test').remove();
		return result;
	}

	Des.print_mode = function() {
		//	FOR THIS TO WORK make sure the following CSS is being referenced somewhere:
		//	.print_test { display: none; height: 1px; width: 1px; }

		$('<div class="print_test"></div>').appendTo('body');
		result = $('.print_test').width() > 0;
		$('.print_test').remove();
		return result;
	}



	/* Functions are DONE */
	$(function() {
		$('body').addClass('js');

		$('.jMail').jMail()
	});



	/* PLUGINS */

		//	Log
		;(function($){$.fn.log=function(message){console.log("%s: %o",message,this);return this}})(jQuery);

		//	jMail
		;(function($) {
			$.fn.jMail = function() {
				return this.each(function() {
					var jMail = $(this);
					address = jMail.text().replace(' [at] ', '@');
					while (address != (address = address.replace(' [dot] ', '.')));

					jMail.html('<a href="mailto:'+address+'">'+address+'</a>');
				});
			}
		})(jQuery);

