(function($){

	$('input.button').each(function(){
		$(this).hide().after('<div class="input-button">').next('div.input-button').text($(this).val()).click(function(){
			$(this).prev('input.button').click();
		});
	});

	Cufon.replace('h1, h2, h3, .btn a, input.button', { fontFamily: 'hn' });
	Cufon.replace('h1 em, h2 em, h3 em', { fontFamily: 'hn_i' });
	Cufon.replace('input.button, .btn a, .input-button', { fontFamily: 'hn', textShadow: '-1px -1px 0px #010101', hover: {textShadow: '-1px -1px 0px #292929'}});
	Cufon.now();

	$("ul li:first-child").addClass('first');
	$("ul li:last-child").addClass('last');

	var active_color = '#454545'; // Colour of user provided text
	var inactive_color = '#bbb'; // Colour of default text

	$(".panel input#panel_rightcolumn_MintoxPlaceHolder_1_ListView1_ctrl0_txtTextBox, .panel input#panel_rightcolumn_MintoxPlaceHolder_1_ListView1_ctrl1_txtTextBox").css("color", inactive_color);
		var default_values = new Array();
		$("input#panel_rightcolumn_MintoxPlaceHolder_1_ListView1_ctrl0_txtTextBox, .panel input#panel_rightcolumn_MintoxPlaceHolder_1_ListView1_ctrl1_txtTextBox").focus(function() {
			if (!default_values[this.id]) {
			default_values[this.id] = this.value;
		}
		if (this.value == default_values[this.id]) {
			this.value = '';
			this.style.color = active_color;
		}
		$(this).blur(function() {
			if (this.value == '') {
			this.style.color = inactive_color;
			this.value = default_values[this.id];
		}});
	});

})(this.jQuery);
