// Author:              Matt Rossi
// Website:             ifohdesigns.com
// Article Source:      http://ifohdesigns.com/blog/tutorials/
// Last Modified:       August 26, 2008
// IF YOU WISH TO USE THIS SCRIPT I WOULD APPRECIATE A BACKLINK
$(document).ready(function(){$("#openpost-comments").hide();var a=$("<a>toggle header</a>").attr('href','#').addClass("btn-slide");$('#wrapper').before(a);$(".btn-slide").click(function(){if($("#openpost-comments").is(":hidden")){$("#openpost-comments").slideDown("slow");$(this).addClass("active");$.cookie('showTop','collapsed');return false}else{$("#openpost-comments").slideUp("slow");$(this).removeClass("active");$.cookie('showTop','expanded');return false}});var showTop=$.cookie('showTop');if(showTop=='collapsed'){$("#openpost-comments").show();$(".btn-slide").addClass("active")}});