/*
	J.L. Hawkins & Associates, P.C.
	Site Javascript
*/

// show flash if Flash Player 9 or higher is installed
jQuery.swfobject.registerObject("header_flash", "9.0.0"); 
jQuery.swfobject.registerObject("commercial_flash", "9.0.0"); 

// document ready handler
$(function(){
	// no click-to-activate flash nonsense on IE
	$.browser.msie && $('object').each(function(){ this.outerHTML = this.outerHTML; });
	// eliminate persistent focus rectangles in the navigation bar
	$('ul#navigation a').click(function(){ this.blur(); });
	// make each service area div behave like a hyperlink
	$('div.service')
		.each(function(){ // get hrefs for each service area
			this.href = $(this).children('h2').children('a').attr('href');
			$(this).addClass('hover_select');
		})
		.click(function(){ // navigate on click
			window.location = this.href;
			return false;
		});
});
