$(function () {
//tabs
		var tabContainers = $('div.tabs > div');
		tabContainers.hide().filter(':first').show();
		
		$('div.tabs ul.tabNavigation a').click(function () {
			tabContainers.hide();
			tabContainers.filter(this.hash).show();
			$('div.tabs ul.tabNavigation a').removeClass('selected');
			$(this).addClass('selected');
			return false;
		}).filter(':first').click();
	});
//form validation
    jQuery(document).ready(function($){
    	$("#commentForm").validate();
        $('#commentForm').ajaxForm(function(data) {
            if (data==1){
                $('#success').fadeIn("slow");
                $('#commentForm').resetForm();
                $('#commentForm').fadeOut("slow");
            }
            else if (data==2) $('#badserver').fadeIn("slow");
            else if (data==3) {
                $('#emaillabel').css("color","red");
                $('#emailinput').focus();
            }            
        });
    });
    
//hide / show panel
$(document).ready(function() {
	$(".panel_button").click(function(){
		$("div#panel").animate({
			height: "350px"
		})
		.animate({
			height: "300px"
		}, "fast");
		$(".panel_button").toggle();
	
	});	
	
   $("div#hide_button").click(function(){
		$("div#panel").animate({
			height: "0px"
		}, "fast");
	});	
});

//png fix for IE 1.6 & below

