$(document).ready(function() {

	//$('.media').media( { width: 868, height: 73, autoplay:  true, params: { wmode: 'transparent'} } ); 

	$('#case_study div').hide();
	$('#case_study_1').show();

	$('#case_studies img').hover(function () 
		{	
			$('#case_study div').hide();
			var thisTarget = $(this).attr('id'); 
			$(thisTarget).show();
			return false;
		}
	);

	$('.teacher_details div').hide();
	$('#teacher_details_1').show();

	$('#teachers div').hover(function () 
		{	
			$('.teacher_details div').hide();
			var thisTarget = $(this).attr('id'); 
			$(thisTarget).show();
			return false;
		}
	);


    $(".testimonial").truncate( 120, {
        chars: /\s/,
        trail: [ ".. <a href='#' class='truncate_show'>&gt;&gt; Read More</a>", "<a href='#' class='truncate_hide'>&lt;&lt; Read Less</a>" ]
    });

	$(".article").truncate( 100, {
        chars: /\s/,
        trail: [ ".. <br /><a href='#' class='truncate_show'>Read More</a>", "<br /><a href='#' class='truncate_hide'>Read Less</a>" ]
    });

	$(".moreinfo_text").truncate( 70, {
        chars: /\s/,
        trail: [ ".. <br /><a href='#' class='truncate_show'>&gt&gt More</a>", "<br /><a href='#' class='truncate_hide'>&lt&lt less</a>" ]
    });

	$.validator.setDefaults({
		submitHandler: function() { alert("submitted!"); }
	});

	$("#form_contact").validate();

	$('#focus_flash').blur(function(){
        //$(this).focus();
		alert('hello');
    });

});


