
var TSComments={setup:function(){TSComments.commentsshow=jQuery(".comments-show");TSComments.commentshide=jQuery(".comments-hide");TSComments.entry=jQuery(".post-entry");if(TSComments.commentsshow.length>0){TSComments.entry.removeClass("borderbottom");TSComments.entry.addClass("no-bot-border");TSComments.dyncomments=jQuery(".dyncomments");TSComments.commentslink=jQuery(".commentslink");if(TSComments.commentsshow.hasClass("hide")){TSComments.hidden=true;TSComments.show(0);}else{TSComments.hidden=false;TSComments.hide(0);}
TSComments.commentsshow.click(function(){TSComments.show(500);});TSComments.commentshide.click(function(){TSComments.hide(500);});TSComments.commentslink.click(TSComments.gotocomments);}},hide:function(speed){if(TSComments.hidden==false){if(speed<=0){TSComments.dyncomments.hide();}else{TSComments.dyncomments.slideUp(speed,function(){TSComments.entry.removeClass("borderbottom");TSComments.entry.addClass("no-bot-border");});}
TSComments.commentshide.hide();TSComments.commentsshow.show();TSComments.hidden=true;}},show:function(speed){if(TSComments.hidden==true){TSComments.entry.removeClass("no-bot-border");TSComments.entry.addClass("borderbottom");if(speed<=0){TSComments.dyncomments.show();}else{TSComments.dyncomments.slideDown(speed);}
TSComments.commentsshow.hide();TSComments.commentshide.show();TSComments.hidden=false;}},gotocomments:function(){if(TSComments.hidden==true){TSComments.show(0);}},};var TSTitle={setup:function(expl){TSTitle.expl=expl;TSTitle.curTitle="is awesome";TSTitle.titleList=["is awesome",];},change:function(){var newTitle=TSTitle.curTitle;if(newTitle=="is awesome"){newTitle="thinks you are awesome too";}
while(newTitle==TSTitle.curTitle){var rand=Math.floor(Math.random()*TSTitle.titleList.length);newTitle=TSTitle.titleList[rand];}
TSTitle.curTitle=newTitle;TSTitle.expl.html(TS_make_expl_text(newTitle));}};function TS_make_expl_text(expl){var new_expl='{&nbsp;'+expl+'&nbsp;}';return new_expl;}
function TS_make_rollover_expl(link,expl,speed_in,speed_out,out_func){var title=jQuery(link).attr("title");jQuery(link).attr("title",'');var new_title=TS_make_expl_text(title);jQuery(expl).html(new_title).hide();jQuery(link).hover(function(){jQuery(expl).fadeIn(speed_in);},function(){jQuery(expl).fadeOut(speed_out,out_func);});}
function TS_make_category_expl(container,expl){var catlinks=jQuery(container+" > a");jQuery(expl).hide();jQuery.each(catlinks,function(){var title=jQuery(this).attr("title");jQuery(this).attr("title",'');jQuery(this).hover(function(){jQuery(expl).html(TS_make_expl_text(title));if(jQuery(this).hasClass('altlink')){jQuery(expl).addClass('altcolor');}else{jQuery(expl).removeClass('altcolor');}
jQuery(expl).fadeIn(200);},function(){jQuery(expl).fadeOut(200);});});}
function TS_make_comments_expl(link,expl){jQuery(expl).hide();jQuery(link).hover(function(){jQuery(expl).fadeIn(200);},function(){jQuery(expl).fadeOut(200);});}
function TS_alternate_colors(list,even){var dir=":odd";if(even)dir=":even";jQuery(list+dir).not(".noalt").addClass("altlink");}
jQuery(document).ready(function(){TSTitle.setup(jQuery("#sitetitle-expl"));TS_make_rollover_expl("#sitetitle-link","#sitetitle-expl",500,200,TSTitle.change);TS_make_rollover_expl("#prev-post-link","#prev-post-expl",200,200);TS_make_rollover_expl("#next-post-link","#next-post-expl",200,200);TS_make_rollover_expl("#meta-date-link","#meta-date-expl",200,200);TS_make_rollover_expl("#meta-comments-link","#meta-comments-expl",200,200);TS_make_comments_expl("#comments","#comments-breakdown");TS_make_category_expl("#meta-category","#meta-cat-expl");TS_alternate_colors("#mainmenu > li > a",false);TS_alternate_colors(".entry a",false);TS_alternate_colors(".entry-meta > li > a",false);TSComments.setup();});