// IE HOVER FIX FOR NAV

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfHover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfHover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


// ROLLOVERS -- FULLY QUALIFIED URLS TO SRC FOR STAND-ALONE TEMPLATES

var about_us = [], attorneys = [], practices_industries = [], newsletters = [], press_room = [], careers = [], events = [], offices = [];

about_us[0]=new Image(); about_us[0].src="http://www.hansonbridgett.com/img/nav2_about_us_0.gif";
about_us[1]=new Image(); about_us[1].src="http://www.hansonbridgett.com/img/nav2_about_us_1.gif";

attorneys[0]=new Image(); attorneys[0].src="http://www.hansonbridgett.com/img/nav2_attorneys_0.gif";
attorneys[1]=new Image(); attorneys[1].src="http://www.hansonbridgett.com/img/nav2_attorneys_1.gif";

practices_industries[0]=new Image(); practices_industries[0].src="http://www.hansonbridgett.com/img/nav2_practices_industries_0.gif";
practices_industries[1]=new Image(); practices_industries[1].src="http://www.hansonbridgett.com/img/nav2_practices_industries_1.gif";

newsletters[0]=new Image(); newsletters[0].src="http://www.hansonbridgett.com/img/nav2_newsletters_0.gif";
newsletters[1]=new Image(); newsletters[1].src="http://www.hansonbridgett.com/img/nav2_newsletters_1.gif";

press_room[0]=new Image(); press_room[0].src="http://www.hansonbridgett.com/img/nav2_press_room_0.gif";
press_room[1]=new Image(); press_room[1].src="http://www.hansonbridgett.com/img/nav2_press_room_1.gif";

careers[0]=new Image(); careers[0].src="http://www.hansonbridgett.com/img/nav2_careers_0.gif";
careers[1]=new Image(); careers[1].src="http://www.hansonbridgett.com/img/nav2_careers_1.gif";

events[0]=new Image(); events[0].src="http://www.hansonbridgett.com/img/nav2_events_0.gif";
events[1]=new Image(); events[1].src="http://www.hansonbridgett.com/img/nav2_events_1.gif";

offices[0]=new Image(); offices[0].src="http://www.hansonbridgett.com/img/nav2_offices_0.gif";
offices[1]=new Image(); offices[1].src="http://www.hansonbridgett.com/img/nav2_offices_1.gif";


function roll(n,s)	{
	document.images[n].src = window[n][s].src;
	}



	$(document).ready(function(){ 
		$("img.attorneyPhoto").fadeIn(1000); 
		$("div#reCaptchaHelp").hide(); 
		$("a#hideReCaptchaHelp").hide(); 
		$("a#hideReCaptchaHelp").click(toggleSlideDownReCaptchaHelp); 
		$("a#showReCaptchaHelp").click(toggleSlideUpReCaptchaHelp); 
		$("div#about_thank").animate({opacity: 1.0}, 3000).fadeOut("slow");
	});
		
	function toggleReCaptchaHelp(){
		$('div#reCaptchaHelp').toggle();
		$('a#showReCaptchaHelp').toggle();
		$('a#hideReCaptchaHelp').toggle();
	}		
	
	function toggleSlideUpReCaptchaHelp(){
		$('div#reCaptchaHelp').show("slow");
		$('a#showReCaptchaHelp').toggle();
		$('a#hideReCaptchaHelp').toggle();
	}	
	
	function toggleSlideDownReCaptchaHelp(){
		$('div#reCaptchaHelp').toggle();
		$('a#showReCaptchaHelp').toggle();
		$('a#hideReCaptchaHelp').toggle();
	}	