/* start fu-top.js
 * JavaScript Debug - v0.3 - 6/8/2009
 * http://benalman.com/projects/javascript-debug-console-log/
 * 
 * Copyright (c) 2009 "Cowboy" Ben Alman
 * Licensed under the MIT license
 * http://benalman.com/about/license/
 * 
 * With lots of help from Paul Irish!
 * http://paulirish.com/
*/
window.debug=(function(){var x=this,v=Array.prototype.slice,y=x.console,r={},u,t,q=9,w=["error","warn","info","debug","log"],n="assert clear count dir dirxml group groupEnd profile profileEnd time timeEnd trace".split(" "),p=n.length,z=[];while(--p>=0){(function(a){r[a]=function(){q!==0&&y&&y[a]&&y[a].apply(y,arguments)}})(n[p])}p=w.length;while(--p>=0){(function(b,a){r[a]=function(){var c=v.call(arguments),d=[a].concat(c);z.push(d);s(d);if(!y||!o(b)){return}y.firebug?y[a].apply(x,c):y[a]?y[a](c):y.log(c)}})(p,w[p])}function s(a){if(u&&(t||!y||!y.log)){u.apply(x,a)}}r.setLevel=function(a){q=typeof a==="number"?a:9};function o(a){return q>0?q>a:w.length+q<=a}r.setCallback=function(){var b=v.call(arguments),c=z.length,a=c;u=b.shift()||null;t=typeof b[0]==="boolean"?b.shift():false;a-=typeof b[0]==="number"?b.shift():c;while(a<c){s(z[a++])}};return r})();jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};if(typeof FU=="undefined"){var FU={}}FU.dashboard=function(){var a=function(d){function b(){jQuery("#dashboard").data("loggedin",true);jQuery("#join").hide();jQuery("#signin").hide().removeClass("last-child");jQuery("#signout").show().addClass("last-child");jQuery("#myhome").show()}function c(){jQuery("#dashboard").data("loggedin",false);jQuery("#myhome").hide();jQuery("#signout").hide().removeClass("last-child");jQuery("#signin").show().addClass("last-child");jQuery("#join").show()}if(typeof d=="undefined"){var d=!(jQuery("#dashboard").data("loggedin"))}if(d){b()}else{c()}};return{toggle:a,loggedIn:function(){a(true)},loggedOut:function(){a(false)}}}();/* end fu-top.js */
