function openCenteredWindow(url,width,height) {
	var myWindow;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable=0,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
    myWindow = window.open(url, "subWind", windowFeatures);
	myWindow.focus();
}
sfHover = function() {
	if (document.getElementById("nav") != null) {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	}
}

$(document).ready(function() {
	$("#twitter, #blog").hover(function() {
		 $(this).animate({ right: "-10px" }, 300 );
	
	}, function() {
		 $(this).animate({ right: "-40px" }, 300 );
	});
});

if (window.attachEvent) window.attachEvent("onload", sfHover);
