function echo(txt)
{
	document.write(txt);
}
function q_bg(obj, mode)
{
	if (obj && obj.style)
	{
		obj.style.backgroundPosition = (mode != 'off' && obj.value == "" ? "0 2px" : "0 -15px");
	}
}

function toggle_nav(show)
{
	var b = $("#aa_header .aa_banner");
	var n = $("#aa_header .aa_nav");
	var s = jQuery.support.opacity ? "fast" : 0;
	if (show)
	{
		b.fadeOut(s);
		n.fadeIn(s);
	}
	else
	{
		n.fadeOut(s);
		b.fadeIn(s);
	}
}

function jump_to_top()
{
	if(document.location.href.indexOf('#') > 0) { document.location.href = document.location.href.substr(0,document.location.href.indexOf('#')); return(false); }
	var amt = (window.pageYOffset) ? 50 : 100, y = document.body.scrollTop || window.pageYOffset;
	amt = Math.max(parseInt(y / 5), amt);
	scrollBy(0,-amt);
	if(y - amt > 0) setTimeout("jump_to_top()", 1); //else if(document.location.href.indexOf('#') > 0) document.location.href = document.location.href.substr(0,document.location.href.indexOf('#'));
	return(false);
}

function panel_toggle(obj)
{
	var c = $(obj.parentNode).siblings(".aa_section_content").eq(0);
	if ($(c).is(":visible"))
	{
		$(obj).text("Show").attr("title", "Show Panel").removeClass("aa_panel-hide").addClass("aa_panel-show");
	}
	else
	{
		$(obj).text("Hide").attr("title", "Hide Panel").removeClass("aa_panel-show").addClass("aa_panel-hide");
	}
	c.slideToggle("normal");
	return(false);
}


