<!--
function loadModule(m) {
	resetEditor();
	switch (m) {
		case 'content':
			$('#treepane').attr('src','/admin/pages');
			$('h3').html("Site Content Structure");
			break;
		case 'users':
			$('#treepane').attr('src','/admin/users');
			$('h3').html("Users");
			break;
		case 'home':
			$('#treepane').attr('src','/admin/pages');
			loadEditor('/admin/pages/welcome',parent.document);
			$('h3').html("Site Content Structure");
			break;
	}
}

function loadEditor(url,ref) {
	$('#editorpane',ref).attr('src',url);
}

function reloadTree(ref) {
	$('#treepane',ref).attr('src',$('#treepane',ref).attr('src'));	
}

function reloadEditor(ref) {
	$('#editorpane',ref).attr('src',$('#editorpane',ref).attr('src'));	
}

function resetEditor(ref) {
	$('#editorpane',ref).attr('src','');	
}

$(document).ready(function(){
	$("a#button-edit-site").hover(
	  function () {
		$(this).find("img").attr('src','/images/admin/button-edit-site-on.gif');
	  }, 
	  function () {
		$(this).find("img").attr('src','/images/admin/button-edit-site.gif');
	  }
	);
	
	$("a#button-users").hover(
	  function () {
		$(this).find("img").attr('src','/images/admin/button-users-on.gif');
	  }, 
	  function () {
		$(this).find("img").attr('src','/images/admin/button-users.gif');
	  }
	);
	
	$("a#button-workflows").hover(
	  function () {
		$(this).find("img").attr('src','/images/admin/button-workflows-on.gif');
	  }, 
	  function () {
		$(this).find("img").attr('src','/images/admin/button-workflows.gif');
	  }
	);
	
	$("a#button-home").hover(
	  function () {
		$(this).find("img").attr('src','/images/admin/button-home-on.gif');
	  }, 
	  function () {
		$(this).find("img").attr('src','/images/admin/button-home.gif');
	  }
	);
	
	$('.toggle-photo').click(function(){
	  $('.hidden-photo').toggle('fast');
	  return false;
	});
	
});

-->