/*
	For "Email this page" in footers
	
	parses the title of the current page from its own <title> tag
	appends that to the href of the link whose id is "forward"
	the rest depends on /utilities/forward-page
*/

jQuery(document).ready(function(){
	var forwardTitle = encodeURI(escape(jQuery('title').text()));
	var forwardURL = jQuery('a#forward').attr('href');
	var glue = '?';
	if (forwardURL.indexOf('?') > -1) {
		glue = '&';
		}
		
	jQuery('a#forward').attr('href', forwardURL+glue+'forwardTitle='+forwardTitle);
	});
