// JavaScript Document
$(document).ready(function(){
	$("#b1").bind("mouseover", function(){
		$(this).removeClass("b1_on");
		$(this).addClass("b1_off");
	});
	$("#b1").bind("mouseout", function(){
		$(this).removeClass("b1_off");
		$(this).addClass("b1_on");
	});
	$("#b2").bind("mouseover", function(){
		$(this).removeClass("b2_on");
		$(this).addClass("b2_off");
	});
	$("#b2").bind("mouseout", function(){
		$(this).removeClass("b2_off");
		$(this).addClass("b2_on");
	});
	$("#b3").bind("mouseover", function(){
		$(this).removeClass("b3_on");
		$(this).addClass("b3_off");
	});
	$("#b3").bind("mouseout", function(){
		$(this).removeClass("b3_off");
		$(this).addClass("b3_on");
	});
	$("#b4").bind("mouseover", function(){
		$(this).removeClass("b4_on");
		$(this).addClass("b4_off");
	});
	$("#b4").bind("mouseout", function(){
		$(this).removeClass("b4_off");
		$(this).addClass("b4_on");
	});
	$("#b5").bind("mouseover", function(){
		$(this).removeClass("b5_on");
		$(this).addClass("b5_off");
	});
	$("#b5").bind("mouseout", function(){
		$(this).removeClass("b5_off");
		$(this).addClass("b5_on");
	});
	$("#b6").bind("mouseover", function(){
		$(this).removeClass("b6_on");
		$(this).addClass("b6_off");
	});
	$("#b6").bind("mouseout", function(){
		$(this).removeClass("b6_off");
		$(this).addClass("b6_on");
	});
	$("#b7").bind("mouseover", function(){
		$(this).removeClass("b7_on");
		$(this).addClass("b7_off");
	});
	$("#b7").bind("mouseout", function(){
		$(this).removeClass("b7_off");
		$(this).addClass("b7_on");
	});
        var pathname = document.location.pathname;
        if($("div.uactive:visible:has(a[href='" + pathname + "'])")) { 
            var idval = $("div.uactive:visible:has(a[href='" + pathname + "'])").attr("id");
            if(idval){idnum = idval.substr(2, idval.length);
            //alert(idnum);
            $("#ss" + idnum).slideDown("fast");
            $("#ss" + idnum).removeClass("hiders");
            $("#ss" + idnum).addClass("ahiders");
            $("div.uactive:visible:has(a[href='" + pathname + "'])").addClass("active");
            $("div.uactive:visible:has(a[href='" + pathname + "'])").removeClass("uactive")}
        }
});
