function callIframe(url, callback) {
	iframeCode =	'<iframe id="fbStream" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; width:383px; height:418px;"></iframe>';
	url = "http://www.facebook.com/connect/connect.php?id=372686588402&connections=0&stream=1&css=http://www.deluxebuildingsystems.com/style/facebook.css";
	$('#facebookPopUp').append(iframeCode);
	$('iframe#fbStream').attr('src', url);
	$('iframe#fbStream').load();
}

$(function(){
	$("#footer #facebook").hover(function(){
		
		$("#facebookPopUp").slideDown().find(".close").click(function(){
			$("#facebookPopUp").slideUp();
		});
		//only load iFrame if it doesn't exist.
		if ($("iframe#fbStream").length == 0) {
			callIframe();
		}
	});
});