$(document).ready(function() {
	$(".controller").removeAttr("href");

	$(".controller").click(function(){
		var slave = $("div#"+$(this).attr("slave"));
		var slaveParent = slave.parent();
		var controllerDiv = $(this).parent();

		slaveParent.find("div.submenu").not(slave).hide();
		slaveParent.find("div.item").not(controllerDiv).removeClass("itemDown");

//		slave.toggle();
		slave.toggle("slow");
		controllerDiv.toggleClass("itemDown");
	});

	$(".mover_highlight").mouseover(function() {
		$(this).attr("bgColor", "#f8f8f8");
	});

	$(".mover_highlight").mouseout(function() {
		$(this).attr("bgColor", "#ffffff");
	});
	

	$('#form').submit(function() { 
	  $("#webFormContainer").hide();

		$(this).ajaxSubmit(function(ajaxRet) { 
		  $("#webFormContainer").html(ajaxRet);
		  $("#webFormContainer").show();
    });
    
    return false;
//		alert('x');
//	  $(this).ajaxSubmit()
	})
	
// onMouseOut ="this.bgColor ='#FFFFFF'"
});

