
// Do OnLoad Help Popups
jQuery(document).ready(function() {
	if (typeof(PAGE_URL) == 'undefined')
		PAGE_URL = window.location.href.replace(/(^https?:\/\/[^\/]*)|(#.*)|(\?.*)/, '');
	jQuery('.titleHelp').bind('click', function(e) {
		smallPopup.pop({url: '/help', type: 'post', data: 'url='+PAGE_URL});
		e.preventDefault();
		return false;
	});
	jQuery('.help').bind('click', function(e) {
		smallPopup.pop({url: jQuery(e.target).attr('href'), type: 'post', data: 'url='+PAGE_URL});
		e.preventDefault();
		return false;
	});
	jQuery('.helpTerm').bind('click', function(e) {
		smallPopup.pop({url: jQuery(e.target).attr('href'),type: 'post', data: 'url='});
		e.preventDefault();
		return false;
	});
});
