

var showingExecs = false;
var timeoutMemoryExecs = false;

var showingPr = false;
var timeoutMemoryPr = false;




function showExecs()
{
	if (timeoutMemoryExecs)
	{
		clearTimeout(timeoutMemoryExecs);
		timeoutMemoryExecs = false;
	}
	if (showingPr) {
		hidePr();
	}
	if (!showingExecs) {
		//Effect.BlindDown('exec-corner', { scaleX: false, queue: { position: 'end', scope: 'menuscope' }, duration: 0.5});
		$('exec-corner').show();
		showingExecs = true;
		$('exec-button').className = "button active";
	}
}

function triggerHideExecs() {
	if (timeoutMemoryExecs)
	{
		clearTimeout(timeoutMemoryExecs);
	}
	timeoutMemoryExecs = setTimeout("hideExecs()", 300);
}

function hideExecs()
{
	if (showingExecs) {
		if (timeoutMemoryExecs)
		{
			clearTimeout(timeoutMemoryExecs);
		}
		//Effect.BlindUp('exec-corner', { scaleX: false, queue: { position: 'end', scope: 'menuscope' }, duration: 0.5});
		$('exec-corner').hide();
		showingExecs = false;
		$('exec-button').className = "button";
	}
}



function showPr()
{
	if (timeoutMemoryPr)
	{
		clearTimeout(timeoutMemoryPr);
		timeoutMemoryPr = false;
	}
	if (showingExecs) {
		hideExecs();
	}
	if (!showingPr) {
		//Effect.BlindDown('pr-corner', { scaleX: false, queue: { position: 'end', scope: 'menuscope' }, duration: 0.5});
		$('pr-corner').show();
		showingPr = true;
		$('pr-button').className = "button active";
	}
}

function triggerHidePr() {
	if (timeoutMemoryPr)
	{
		clearTimeout(timeoutMemoryPr);
	}
	timeoutMemoryPr = setTimeout("hidePr()", 300);
}

function hidePr()
{
	if (showingPr) {
		if (timeoutMemoryPr)
		{
			clearTimeout(timeoutMemoryPr);
		}
		//Effect.BlindUp('pr-corner', { scaleX: false, queue: { position: 'end', scope: 'menuscope' }, duration: 0.5});
		$('pr-corner').hide();
		showingPr = false;
		$('pr-button').className = "button";
	}
}
