function showLoaderGraphic(thisID) {
		jQuery("#loadingGIF").removeClass("hidden");
		$("#loadingGIF ~ input").remove();
	}

jQuery( function () {
		jQuery('a.lightbox').lightBox({
		imageLoading: 'pub/images/lightbox-ico-loading.gif',
		imageBtnClose: 'pub/images/lightbox-btn-close.gif ',
		imageBtnPrev: 'pub/images/lightbox-btn-prev.gif',
		imageBtnNext: 'pub/images/lightbox-btn-next.gif'
	});
});

//jQuery( function () {jQuery('a.lightbox').lightBox();	});

jQuery(document).ready( function () {
	
	//36" selected
	jQuery("#sel_rail_height").change(function(){ (jQuery(this).val()=="36"&&(jQuery("#sel_system").val()=="Glass"||jQuery("#sel_system").val()=="Picket"))?jQuery("#stairs").fadeIn('fast'):jQuery("#stairs").fadeOut('fast',function(){jQuery("#txt_stair").val('');});});
	//Glass or Picket selected
	jQuery("#sel_system").change(function(){ (jQuery("#sel_rail_height").val()=="36"&&(jQuery(this).val()=="Glass"||jQuery(this).val()=="Picket"))?jQuery("#stairs").fadeIn('fast'):jQuery("#stairs").fadeOut('fast',function(){jQuery("#txt_stair").val('');});});

	
	
	//Set up Tiny MCE textarea elements
	jQuery('textarea.tinymce').tinymce({
		script_url : 'lib/js/tiny_mce/tiny_mce.js',
		theme : "advanced",
		plugins : "advhr,advlink,insertdatetime,layer,nonbreaking,noneditable,paste,searchreplace,visualchars,xhtmlxtras",
		theme_advanced_buttons1 : "pasteword,|,link,unlink,anchor,|,cleanup,code,|,undo,redo,|,charmap,advhr,nonbreaking,|,forecolor,backcolor",
		theme_advanced_buttons2 : "bold,italic,underline,strikethrough,removeformat,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,indent,|,sub,sup",
		theme_advanced_buttons3 : "",
		content_css : "skin/admin.css",
		gecko_spellcheck : "true",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_path_location : "bottom",
		plugin_insertdate_dateFormat : "%Y-%m-%d",
		plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "hr[class|width|size|noshade],span[class|align|style]",
		file_browser_callback : "fileBrowserCallBack",
		theme_advanced_resize_horizontal : false,
		theme_advanced_resizing : true,
		convert_fonts_to_spans : true,
		nonbreaking_force_tab : true,
		apply_source_formatting : false,
		force_p_newlines : true,
		relative_urls : false,
		convert_urls : false,
		remove_script_host : true
	});
	
	// STYLING for calculated fields
	//	jQuery("input[name=txt_acc_tax]").attr('readonly', true);
	
	// Update Total
	//jQuery("input[name=rad_event]").change(function(){
	//	calculateTotal();
	//});

});	