
var fi=fi||{};fi.common=fi.common||{};fi.common.Footer=function(){this.init();}
fi.common.Footer.prototype.init=function(){this.root=$("#main-footer");$("ul li a",this.root).bind("click",$.proxy(this.onShareClicked,this));if(navigator.platform=='iPad'||navigator.platform=='iPhone'||navigator.platform=='iPod'){if($('#splash').length==0){this.root.css("position","static");}}}
fi.common.Footer.prototype.onShareClicked=function(e){var type=$(e.currentTarget).attr("id");var location=encodeURIComponent(window.location);var title=encodeURIComponent(document.title);if(type=="buzz"){window.open("http://www.google.com/buzz/post?message="+title+"&amp;url="+location+"");return false;}else if(type=="twitter"){window.open("http://twitter.com/share?url="+location+'&text='+title+"");return false;}else if(type=="facebook"){window.open('http://www.facebook.com/sharer.php?u='+location+'&t='+title,'sharer','toolbar=0,status=0,width=626,height=436');return false;}}
