// only intended as a hook for further functionality - please use something better than this!
function doEmailPage() {
	var location = window.location;
	var title = document.title;
	window.location = "mailto://?subject=Interesting Article: "+title+"&body="+location;
}

function doReplaceHomepageContent(tab) {
	// called from the onclick event of a tab.  possible values delivered to tab are:
	// understanding, work, donate, give, volunteer, advocate
	// function currently uses jquery to call back to flat html file and replaces content of #introductions container on home page
	// jquery get function is use (documentation: http://docs.jquery.com/Ajax/jQuery.get)
	// this could easily be tweaked to instead call a single server function which supplies content.
	// if used this way, returned content needs to be HTML
	var filename = STRINGS.CALLBACK_LOCATION.home_tabs + tab;
	$j.get(filename, function(data){ $j("#introductions").fadeOut('fast', function(){ $j(this).html(data).fadeIn('slow');}); });
}

function doReplaceViewerContent(name) {
	$j.get(name, function(data){ $j("#viewer").fadeOut('fast', function(){ $j(this).html(data).fadeIn('slow');}); });
}

