// JavaScript Document
	$(document).ready(function() {
		$(".btnhelppanel").click(function(){ $("#helpbox").slideToggle("slow"); });
		
		$(".btnRelatedParent").click(function(){ 
			$(this).next("ul").toggle("slow"); 
			return false
		});
		
		//$(".btnRelatedParent").next("ul").style.display = 'none';

		$(".btnshowhide").click(function(){ 
			$(this).children("span").slideToggle("slow"); 
		});
		
		$("dt.showhidelink").siblings("dd").hide();
		
		$("dt.showhidelink").click(function(){
			//$("dd").hide(500);
			$(this).siblings("dd").slideToggle(500);
			return false
		});
		
		$("dt.showhidelinktabs").siblings("dd").hide();
		
		$("dt.showhidelinktabs").click(function(){
            $(this).siblings("dd").slideToggle(500);
            return false
        });
		
		// hide all divs with class showhidediv
		$("div.showhidediv").hide();
		// show the first div with class showhidediv
		$("div.showhidediv:eq(0)").show();
		
		$("a.showhidelink").click(function(){
			$("div.showhidediv").hide();
			$("div.showhidediv:eq(" + $(this).attr("id") + ")").show();
		});

		$(".edcom_id_lookup").click(function(){
			spanswap = $(this);
			DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'getfullname', $(this).html(), showname);
		});
		
		$(".btnhidden").click(function(){
			$(this).siblings(".spanhidden").show();
			$(this).remove();
		});
	});

function ajaxMsg(msg) {
		$("#ajaxMsg").html(msg);
		$("#ajaxMsg").show("slow");
	setTimeout(function(){
		$("#ajaxMsg").hide("slow");
	}, 4000);
};

function showname(r){
	spanswap.html(r);
	spanswap.removeClass("edcom_id_lookup");
};
