var currentDesignerID = "p1";
$(document).ready(function(){
	$('.designer_container').hide().css('visibility','visible');
	$('#p1').show();
	$('.designernavspace').click(function(e){
		var newDesignerID = $(this).attr('designerContainer');
		e.preventDefault();
		if (newDesignerID != currentDesignerID){
			$('#'+currentDesignerID).stop().fadeOut(500,function(){
				currentDesignerID = newDesignerID;
				$('#'+newDesignerID).stop().fadeIn(500);
			});
		}
	});
	
	$('li.top_nav_button').hover(function(e){
		var but = $(this);
		if (but.attr('lock')!='true')
		{
			but.children('a').children('img').stop().fadeTo(500,0.01);
			but.attr('lock','true');
		}
	},function(e){
		var but = $(this);
		but.children('a').children('img').fadeTo(500,1,function(){but.attr('lock','false');});
	});
});