$(document).ready(function(){
    $(".noticeBlock .pane-content .view-notices .views-row").each(function() {
			if ($(".views-field-teaser .field-content", this).text() == '') {
				$(".views-field-title span", this).hide();
			}
	});

	$(".view-links table.views-table td.views-field-title").each(function() {
			var bodyTag = $(".linkbody", this);
			$(".linktitle", this).addClass('closed');
			bodyTag.hide();

			$(".linktitle", this).addClass ('cursor_pointer');

			$(".linktitle", this).bind("click", function(e) {
					if ($(this).hasClass('closed')) {
						$(this).removeClass('closed');
						$(this).addClass('open');
						bodyTag.slideDown("fast");
					} else {
						bodyTag.slideUp("fast");
						$(this).removeClass('open');
						$(this).addClass('closed');
					}
					return FALSE;
			});
	});
	$("body.defaultpage form#uc-order-view-update-form input#edit-notify").attr('checked', true);
	$("ul#nice-menu-1 li#menu-730 a").bind("click", function(e) {
			return false;
	});
    $("ul#nice-menu-1 li#menu-546 a").bind("click", function(e) {
			return false;
	});
    $("#block-menu-primary-links ul.menu li:eq(6)").hide();
    $("#block-menu-primary-links ul.menu li:eq(7)").hide();

    $("body.defaultpage #tabs-wrapper ul.tabs li").each(function() {
			//alert ($("a", this).text());
			if ($("a", this).text() == 'Signups') {
				$(this).hide();
			}
	});

     $("body.defaultpage div.profile h3").each(function() {
			if ($(this).text() == 'History') {
				$(this).hide();
			}
	});
	$("body.defaultpage div.profile dl.user-member").hide();

    $("body.defaultpage span.order-admin-icons a").text ('(modify order)');
    $(".node-payevent .product-info span.uc-price").each(function() {
	if ($(this).text() == '$0.00') {
	    $(this).html ('<div class="warning">BOOKING CLOSED!</div>');
	}
    });
});
