$j(document).ready(function() {
							
	if (self != top) {
        if (document.images)
            top.location.replace(window.location.href);
        else
            top.location.href = window.location.href;
    }
	
	$j("#sidebar, #content").equalizeCols();
	
	$j('#splash_content').cycle({ 
		fx:      'scrollLeft', 
		speed:    300, 
		timeout:  10000 
	});
	
	$j('#headlines ul').cycle({ 
		fx:      'scrollUp', 
		speed:    300, 
		timeout:  3000 
	});
	
	btt = $j("#interior_content").height();
	if(btt >= 700) {
		$j("#interior_content").append('<div id="btt"><p><a href="#">Back to Top</a></p></div><!--btt-->');
	}
	
	//IE Cycle Background fix
	$j("#headlines li").css("background","none");
	
	$j("#tabs li").click(function() {
		
		tabID = $j(this).attr("class");
		if($j("#" + tabID).is(':hidden')) {
			$j("#tab_content div").hide();
			$j("#" + tabID).show();
			$j("#tabs li").each(function() {
				$j(this).removeAttr("id");
			});
			$j(this).attr("id","active_tab");
			$j("#sidebar, #content").equalizeCols();
		}
	});
	
	// Toll Map
	$j("#toll_map ul li.dallas").hover(function() {
		var blockwidth = $j(this).width(); 
		$j(this).find(".tolls").animate({opacity: "show", top: "25px"}, "fast");
	}, function() {
		$j(this).find(".tolls").animate({opacity: "hide", top: "20px"}, "fast");
	});
	// Bubble for Austin
	$j("#toll_map ul li.austin").hover(function() {
		var blockwidth = $j(this).width(); 
		$j(this).find(".tolls").animate({opacity: "show", top: "24px"}, "fast");
	}, function() {
		$j(this).find(".tolls").animate({opacity: "hide", top: "19px"}, "fast");
	});
	// // Bubble for Houston
		$j("#toll_map ul li.houston").hover(function() {
		var blockwidth = $j(this).width(); 
		$j(this).find(".tolls").animate({opacity: "show", top: "49px", left: "56px"}, "fast");
	}, function() {
		$j(this).find(".tolls").animate({opacity: "hide", top: "54px", left: "56px"}, "fast");
	});
	
});

