	/*function tweetMemeButton() {
		if (document.getElementById("entry-social-retweet")) {
			var iframeCode = "";
			iframeCode += "<iframe src=\"http://api.tweetmeme.com/button.js?url=" + escape(document.URL) + "&amp;style=normal&amp;&amp;source=loan_mortgage&amp;service=bit.ly\" scrolling=\"no\" frameborder=\"0\" width=\"50\" height=\"61\" >";
			document.getElementById("entry-social-retweet").innerHTML = iframeCode;
		}
	}*/

	//window.onload = tweetMemeButton;

	$(document).ready(function() {
		$('#entries-links').css('display', 'none');
		
		$('#entries-menus').html(function() {
			var sContents = '';
			$('#entries-links').children('dl').each(function() {
				sContents += '<dl class="menu">' + $(this).html() + '</dl>';
			});
			return sContents;
		});
		
		$('#entries-menus').children('.menu').children('.heading').each(function() {
			var sText = $(this).text();
			$(this).html('<div class="css-arrow-down"></div>' + sText);
		});
		
		$('#entries-menus').children('.menu').hover(
			function() {
				var oItems = $(this).children('.items');
				var nPos = $('#entries-menus').offset();
				var nWidth = $('#entries-menus').width();
				var nHeight = $('#entries-menus').height();
				
				$('#entries-menus-popup').html(function() {
					return oItems.html();
				}).css({
					'display': 'block',
					'left': (nPos.left) + 'px',
					'top': (nPos.top + nHeight + 3) + 'px',
					'width': (nWidth) + 'px'
				});
			}
		);
		$('#entries-menus-popup').hover(
			function() {
				// in
			},
			function() {
				$('#entries-menus-popup').css('display', 'none');
			}
		);
	});
	/*.mouseout(function() {
		$('#entries-menu-popup').css('display', 'none');
	});*/
