	function fitImages()
	{
	   //Get the width of the image
	   var width = jQuery(this).width();

	   //Max-width substitution (works for all browsers)
	   if (width > 542) {
		 jQuery(this).css("width", "542");
		 // scale height
		 var ratio = width / 542;
		 jQuery	(this).css("height", jQuery(this).height() / ratio);
	   }

	}
	function toggleTwitterFeed()
	{
		var btnPos = jQuery("#toggleTwitterBtn").offset();
		jQuery("#twitterfeed").css({
			'position':'absolute',
			'top': btnPos.top - 50,
			'left': btnPos.left + 50
		});
		jQuery("#twitterfeed").toggle();
	}
