$(document).ready(function() {
	// --------------------------------------------------------------------------------------
	// IE6 PNG Fix
	// --------------------------------------------------------------------------------------
	// Not really a jquery element, but thought it would be best to place it here
	if ( document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) &&
	     document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule)
	{
		document.styleSheets[0].addRule('*', 'behavior: url(styles/iepngfix.htc)');
		// Feel free to add rules for specific elements only, as above.
		// You have to call this once for each selector, like so:
		//document.styleSheets[0].addRule('img', 'behavior: url(iepngfix.htc)');
		//document.styleSheets[0].addRule('div', 'behavior: url(iepngfix.htc)');
	}

	// Suppress errors
	function silentErrorHandler() {return true;}
	window.onerror=silentErrorHandler;

	$('#page-join .tabbernav a').corner('top');

	$('#panel-share .print a').click( function() {
		window.print();
		return false;
	});
	
	$('#email-page-form').hide();
	$('#panel-share .email a').click( function() {		
		$('#email-page-form').slideToggle();	
		$('#email-page-form input[name=your_name]').focus();
	});
});
