Date.prototype.format=function(e){var d="";var c=Date.replaceChars;for(var b=0;b<e.length;b++){var a=e.charAt(b);if(c[a]){d+=c[a].call(this)}else{d+=a}}return d};Date.replaceChars={shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d:function(){return(this.getDate()<10?"0":"")+this.getDate()},D:function(){return Date.replaceChars.shortDays[this.getDay()]},j:function(){return this.getDate()},l:function(){return Date.replaceChars.longDays[this.getDay()]},N:function(){return this.getDay()+1},S:function(){return(this.getDate()%10==1&&this.getDate()!=11?"st":(this.getDate()%10==2&&this.getDate()!=12?"nd":(this.getDate()%10==3&&this.getDate()!=13?"rd":"th")))},w:function(){return this.getDay()},z:function(){return"Not Yet Supported"},W:function(){return"Not Yet Supported"},F:function(){return Date.replaceChars.longMonths[this.getMonth()]},m:function(){return(this.getMonth()<9?"0":"")+(this.getMonth()+1)},M:function(){return Date.replaceChars.shortMonths[this.getMonth()]},n:function(){return this.getMonth()+1},t:function(){return"Not Yet Supported"},L:function(){return"Not Yet Supported"},o:function(){return"Not Supported"},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},a:function(){return this.getHours()<12?"am":"pm"},A:function(){return this.getHours()<12?"AM":"PM"},B:function(){return"Not Yet Supported"},g:function(){return this.getHours()%12||12},G:function(){return this.getHours()},h:function(){return((this.getHours()%12||12)<10?"0":"")+(this.getHours()%12||12)},H:function(){return(this.getHours()<10?"0":"")+this.getHours()},i:function(){return(this.getMinutes()<10?"0":"")+this.getMinutes()},s:function(){return(this.getSeconds()<10?"0":"")+this.getSeconds()},e:function(){return"Not Yet Supported"},I:function(){return"Not Supported"},O:function(){return(-this.getTimezoneOffset()<0?"-":"+")+(Math.abs(this.getTimezoneOffset()/60)<10?"0":"")+(Math.abs(this.getTimezoneOffset()/60))+"00"},T:function(){var b=this.getMonth();this.setMonth(0);var a=this.toTimeString().replace(/^.+ \(?([^\)]+)\)?$/,"$1");this.setMonth(b);return a},Z:function(){return -this.getTimezoneOffset()*60},c:function(){return"Not Yet Supported"},r:function(){return this.toString()},U:function(){return this.getTime()/1000}};function doPopup(b,d,a,e){if(typeof e=="undefined"){e="1"}leftPixel=(screen.width/2)-(d/2);topPixel=(screen.height/2)-(a/2);a=a+20;d=d+20;var c;c=window.open(b,"pop_win","width="+d+", height="+a+", scrollbars="+e+",status=no,left="+leftPixel+",top="+topPixel);if(window.focus){c.focus()}}function calculateTime(a){currentTimeMS=new Date().getTime();currentTimeS=currentTimeMS/1000;seconds=Math.round(currentTimeS-a);minutes=Math.round(seconds/60);hours=Math.round(minutes/60);days=Math.round(hours/24);weeks=Math.round(days/7);months=Math.round(days/31);years=Math.round(days/365);if(minutes<60){if(minutes<2){return"just now"}return minutes+" min. ago"}else{if(hours<24){if(hours==1){return hours+" hour ago"}else{return hours+" hours ago"}}else{if(days<7){if(days==1){return days+" day ago"}else{return days+" days ago"}}else{if(days<31){if(weeks==1){return weeks+" week ago"}else{return weeks+" weeks ago"}}else{if(days<365){if(months==1){return months+" month ago"}else{return months+" months ago"}}else{if(years==1){return years+" year ago"}else{return years+" years ago"}}}}}}}function trim(a){return a.replace(/^\s+|\s+$/g,"")}function setCookie(c,d,b){if(typeof b=="undefined"){b=false}var e="boo_"+c;var a=new Date();if(b){document.cookie=e+"="+d+"; path=/"}else{a.setTime(a.getTime()+(365*24*60*60*1000));document.cookie=e+"="+d+"; expires="+a+"; path=/"}}function getCookie(c){var e="boo_"+c;var d=document.cookie;var b=d.split(";");for(var a in b){d=b[a].split("=");if(trim(d[0])==e){return(d[1])}}return"none"}function toggleSearchType(b,a){jLink=jQuery(b);jLink.attr("checked","checked");if(a=="odds"){setCookie("selsearchtype","odds",true);$("#search_text").attr("value","Search by odds (ex. 10)")}else{setCookie("selsearchtype","keyword",true);$("#search_text").attr("value","Search all Book of Odds")}}function clearSearchBox(){if($("#search_text").attr("value")=="Search all Book of Odds"||$("#search_text").attr("value")=="Search by odds (ex. 10)"){$("#search_text").attr("value","")}}(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(r){q=this}}if(q==this){return false}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(r.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);function showDropdown(){$(this).children(".button").addClass("hover");o=$(this).offset();op=$(this).offsetParent().offset();$(this).children(".dropdown-box").css("top",o.top-op.top+24);$(this).children(".dropdown-box").css("left",o.left-op.left+3);$(this).children(".dropdown-box").removeClass("hide")}function hideDropdown(){$(this).children(".button").removeClass("hover");$(this).children(".dropdown-box").addClass("hide")}$(document).ready(function(){if($("#header-search-form").length){if(getCookie("selsearchtype")=="odds"){toggleSearchType($("#search-type-odds"),"odds")}}if($("div.dropdown").length){$("div.dropdown").hoverIntent({sensitivity:3,interval:100,over:showDropdown,timeout:250,out:hideDropdown})}if($(".collapsible-box").length){$(".collapsible-box .trigger a").click(function(){$(this).parents(".collapsible-box").children(".content").slideToggle("fast");if($(this).hasClass("active")){$(this).removeClass("active")}else{$(this).addClass("active");if($(this).attr("id")=="sources-trigger"){pageTracker._trackPageview("/Sources")}}})}if($("#home-teaser").length){$.ajax({type:"POST",url:"/content/view/ajax/2",beforeSend:function(){$("#home-teaser").html('<div class="loader"><img src="/design/site/images/loading_animation.gif" alt="Loading..."/></div>')},success:function(b){$("#home-teaser").html(b)}})}if($("#twitter-search").length){$.ajax({type:"POST",url:"/twitter/feed",beforeSend:function(){$("#twitter-search").html('<div class="loader"><img src="/design/site/images/loading_animation.gif" alt="Loading..."/></div>')},success:function(b){$("#twitter-search").html(b);$("#twitter-search span.time").each(function(){ts=$(this).text();timespan=calculateTime(ts);$(this).text(timespan)})}})}if($("#cite-date").length){var a=new Date();current=a.format("m/d/Y");$("#cite-date").html(current)}});function loadTagCloud(a){if($("#tagcloud-inject").length){$.ajax({type:"POST",url:"/content/view/tagcloud/"+a,beforeSend:function(){$("#tagcloud-inject").html('<div class="loader"><img src="/design/site/images/loading_animation.gif" alt="Loading..."/></div>')},success:function(b){$("#tagcloud-inject").html(b)}})}}var swfConfig={xi:"flash/expressInstall.swf",version:"9.0.0",params:{allowScriptAccess:"always",wmode:"opaque"}};var RecaptchaOptions={theme:"blackglass"};(function(a){a.fn.extend({setAccordion:function(){var b=a(this);b.children("ul").hide();b.children("div:first").addClass("expanded");b.children("ul:first").show();var c=a("div a",b);c.parent().click(function(){var d=a(this);if(d.hasClass("expanded")==true){b.children("div").removeClass("expanded");b.children("ul").slideUp("normal");return false}else{b.children("div").removeClass("expanded");b.children("ul").slideUp("normal");d.addClass("expanded");d.next("ul").slideDown("normal");return false}})}})})(jQuery);