// 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(){$("#login-content").hide();
var a=$("<a>toggle header</a>")
.attr('href','#')
.addClass("btn-login");$('#wrapper')
.before(a);$("#btn-login").click(function(){if($("#login-content")
.is(":hidden")){$("#login-content")
.slideDown("slow");$(this)
.addClass("active");$.cookie('showTop','collapsed');return false}else{$("#login-content")
.slideUp("slow");$(this)
.removeClass("active");$.cookie('showTop','expanded');return false}});var showTop=$.cookie('showTop');if(showTop=='collapsed'){$("#login-content").show();$("#btn-login")
.addClass("active")}});
