function initMenu() {
    $('ul.columntext').css("display","none");
    $('.topcolumn a.toggle').click(function() {
            
        var checkElement = $(this).next();
        var clickedElement = $(this);
        
        if((checkElement.is('ul.columntext')) && (checkElement.is(':visible'))) {            
            
            clickedElement.find('span.plus').css("display","block");
            clickedElement.find('span.minus').css("display","none");
            
            checkElement.slideUp();
            
            return false;
        }
        
        if((checkElement.is('ul.columntext')) && (!checkElement.is(':visible'))) {
            $('span.plus').css("display","block");
            $('span.minus').css("display","none");
            
            clickedElement.find('span.plus').css("display","none");
            clickedElement.find('span.minus').css("display","block");
            
            $('ul:visible.columntext').slideUp('normal');
            checkElement.slideDown('normal');
            return false;
        }
        
    });
}

$(document).ready(function() {initMenu();});

jQuery(document).ready(function() { 
    //if this is not the first tab, hide it
    jQuery(".tab:not(:first)").hide();
    
    //to fix u know who
    jQuery(".tab:first").show();
    
    //when we click one of the tabs
    jQuery(".tabmenu a").click(function(){
        //get the ID of the element we need to show
        stringref = jQuery(this).attr("href").split('#')[1];
        //hide the tabs that doesn't match the ID
        jQuery('.tab:not(#'+stringref+')').hide();
        //fix
        if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") {
            jQuery('.tab#' + stringref).show();
        }else{
            //display our tab fading it in
            jQuery('.tab#' + stringref).fadeIn();
            //stay with me
            return false;
        }
    });

});

$(function () { // this line makes sure this code runs on page load
	$('#check_all').click(function () {
		$(this).parents('form:eq(0)').find('.box').attr('checked', this.checked);
	});
});
