$(window).load(function() {
	if (document.all&&document.getElementById) {
		// this is needed for the IE 6 pseudo hover class bug
		$(".navtop li").hover(function () {
			$(this).addClass("hover");
		},function () {
			$(this).removeClass("hover");
		});
	} else {
		// this is need for safari when nav covers flash
		$(".navtop li ul").hover(function () {
			$(this).addClass("redraw");
		},function () {
			$(this).removeClass("redraw");
		});
	}
	
	var pageArray = new Array("for_business.html", "for_properties.html","for_life.html","for_litigation.html");
	var current = 0;
	function rotate() {
		$("#loadhere").load(pageArray[current] + " #load",function () {
			$("#loadhere").fadeIn("slow", function () {
				setTimeout(function () {
					$("#loadhere").fadeOut("slow", function () {
						current++;
						if(current >= pageArray.length)
							current = 0;
						rotate();
					});
				},10000);
			});
		});
	}
	if($("#home_body").length > 0) {
		$("#loadhere").css("display","none");
		rotate(0,pageArray);
	}
});
