/*modified to make centered podium with absolutely positioned stuff in the banner work*/
(function($) { 
    $.fn.extend({ 
        getTopLeft: function() {
        	var left = 0, top = 0, elem = this[0], results;
        	left = this.getLeft();
        	top = this.getTop();
    		results = {top: top ,  left: left};
 			return results;
		 },
		 	
 	    getLeft : function () {
 	    	var obj = this[0]
			var curleft = 0;
				if (obj.offsetParent)
				{
					while (obj.offsetParent)
					{
						curleft += obj.offsetLeft; lastleft = obj.offsetLeft; //this "lastleft" is used for problems with positioning when centered
						obj = obj.offsetParent;
					}
					curleft += 0-(lastleft);
				}
				else if (obj.x)
					curleft += obj.x;
				return curleft;
		},
			
		getTop : function () {
			var obj = this[0]
			var curtop = 0;
			if (obj.offsetParent)
			{
				while (obj.offsetParent)
				{
					curtop += obj.offsetTop
					obj = obj.offsetParent;
				}
			}
			else if (obj.y)
				curtop += obj.y;
			return curtop;
		}  
	}); 
})(jQuery);


