var fathomer={account:"",message:"Hey! It looks like you're a member of Twitter too! Join our conversation, you can follow us here!",urlcheck:"http://twitter.com/account/settings",target:"body",loadcss:true,altbadge:"",checkcookie:function(){if(document.cookie.match(/fathomer=closed/i)){return true;}},setcookie:function(){document.cookie="fathomer=closed; expires=Thu, 21 Dec 2012 20:00:00 UTC; path=/";},showbadge:function(){$("#fathomerdiscover").remove();if(typeof this.altbadge!="function"){$(this.target).append('
'+this.message+'http://twitter.com/'+this.account+"");$("#fathomerclose").bind("click",function(){$("#fathomer").fadeOut(1000);fathomer.setcookie();});if(this.loadcss){$("head").append('');}$("#fathomer").fadeIn(1000);}else{if(typeof this.altbadge=="function"){this.altbadge();}}},discover:function(){if(!this.checkcookie()){$("body").append('
twit');matchcolor=this.rgbhex($("#fathomerdiscover a").css("color"));matchcolor=="#0000cc"?this.showbadge():"";}},rgbhex:function(rgbval){var s=rgbval.match(/rgb\s*\x28((?:25[0-5])|(?:2[0-4]\d)|(?:[01]?\d?\d))\s*,\s*((?:25[0-5])|(?:2[0-4]\d)|(?:[01]?\d?\d))\s*,\s*((?:25[0-5])|(?:2[0-4]\d)|(?:[01]?\d?\d))\s*\x29/);if(s){s=s.splice(1);}if(s&&s.length==3){d="";for(i in s){e=parseInt(s[i],10).toString(16);e=="0"?d+="00":d+=e;}return"#"+d;}else{return rgbval;}},init:function(){window.onload=function(){if(typeof jQuery=="undefined"){a=document.createElement("script");a.type="text/javascript";a.src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js";document.getElementsByTagName("html")[0].appendChild(a);t=setInterval(function(){if(typeof jQuery=="function"){clearInterval(t);fathomer.discover();}},1);}else{fathomer.discover();}};}};