
$(document).ready(function()
  
  {
  
  //alert("wooooo");

	$(".lbox").lightBox();
  
$(".changemain").livequery('click',function(event)
							{
								
								$(".changemain").removeClass("active");
								$(this).addClass("active");
								$.ajax({
										url: $(this).attr("id")+".php?parent=1",
										cache: false,
										success: function(html){
										$("#content").fadeOut("600", function() {$("#content").html(html).fadeIn("600");$('.lbox').lightBox();});
										}
										});
								
								//$("#content").html("sdlfjsdklfjsdlkfsdksdfj");
									//alert("oh no!");
									$(this).blur();
									return false;
							}
						);
						
$(".changesub").livequery('click',function(event)
							{
							
								
								$(".changesub").removeClass("active");
								$(this).addClass("active");
								var tempname = $(this).attr("id");
								//alert("this is the id "+tempname);
								
								// hide all the stuff here that doesn't need to be shown
							$("#subcontent *:visible:not(.keep)").fadeOut("slow",function(){$("#subcontent *."+tempname+", #subcontent ul."+tempname+", #subcontent ul."+tempname+" *").fadeIn("fast");});
								$(this).blur();

							$('.lbox').lightBox();
							
								return false;
							});
						
  	} // end of the shit you have to do when you load the document
 
 );
 
 function initialize()
	{

		return false;
	}
 