
	var K = {

		init : function() {

			K.sub_form();
			K.tweaks();

			if ($('#slideshow_links a').get(0)) $('#slideshow_links a').cycle('#main_img');

		},	//	END init: function()



		sub_form : function() {

			var labels = new Object;

			$('#sub_form input:text').each(function() {

				this_label = $(this).prev().html();
				this_input = $(this).attr('id');

				labels[this_input] = this_label.substr(0, this_label.length - 1);

			});


			$.each(labels, function(input, label) {

				$('label[for=' + input + ']').remove();

				$('input#' + input).val(label).css({color: '#3D9D91'}).focus(function() {
					if ($(this).val() == label) $(this).css({color: '#333'}).val('');
				}).blur(function() {
					if ($(this).val() == '') $(this).css({color: '#3D9D91'}).val(label);
				});

			});

			$('#sub_form').submit(function() {
				$.each(labels, function(input, label) {
					if ($('input#' + input).val() == label) $('input#' + input).val('');
				});
			});

		},



		tweaks : function () {

			//	Hide stuff
			$('.hide_inner').each(function() {
				$(this).removeClass('hide_inner').wrapInner('<span class="hide_this"></span>');
			});

			//	Remove stuff
			$('.remove_this').each(function() {
				$(this).remove();
			});


			//	Tweak CSS using jQuery to take advantage of
			//	CSS selectors that IE doesn't understand.

			$('#content form p').addClass('clearfix').css({marginTop : 0, marginBottom : 10});

			$('#content form input').focus(function() {
				$(this).addClass('focus').prev().addClass('current_field');
			}).blur(function() {
				$(this).removeClass('focus').prev().removeClass('current_field');
			});

			$('#content form input:radio').css({ borderColor : '#FFF', float : 'none', width : 'auto', verticalAlign : 'middle' });
			$('#content form input:checkbox').css({ float : 'none', width : 'auto' });

			$('.cancel_float').css({ float : 'none', marginLeft : 80 });

			$('#content form textarea').focus(function() {
				$(this).addClass('focus').prev().addClass('current_field');
			}).blur(function() {
				$(this).removeClass('focus').prev().removeClass('current_field');
			});

			$('#sidebar > ul li:last').css({borderColor : '#3D9D91'});

		}	//	END	tweaks : function ()

	};	//	END	var Crombie = {}


	//	If we're using Firefox and the Firebug console function exists, load it.. Load it up real good!
//	if ($.isFunction(loadFirebugConsole)) window.loadFirebugConsole();


	//	Set this thing on fire!
	$(function() { K.init(); });
