$(document).ready(function(){

//Logo Function
$("div#logo").click(function() {
 window.location="/";
});

//Box Functions
$("div.entry").bind("mouseenter",function() {
 $("div.entry div#info"+this.id+":hidden").slideDown({duration: 333, easing: 'easeOutExpo'});
 return false;
}).bind("mouseleave",function() {
 $("div.entry div#info"+this.id+":visible").slideUp({duration: 333, easing: 'easeOutExpo'});
 return false;
}).click(function() {
 if(window.location.pathname == "/sort/web/") {
 var sortId = "/w/";
 } else if (window.location.pathname == "/sort/illustration/") {
 var sortId = "/i/";
 } else if (window.location.pathname == "/sort/print/") {
 var sortId = "/p/";
 } else if (window.location.pathname == "/sort/photography/") {
 var sortId = "/ph/";
 } else {
 var sortId = "/a/"
 }
 var str = this.id;
 var entryId = str.replace(/e/,"");
 window.location=entryId+".html";
});

//Sorting
$("div#sort a.select").bind("mouseenter",function() {
 $("div#sort ul").css("display", "block");
 return false;
}).bind("mouseleave",function() {
 $("div#sort ul").css("display", "none");
 return false;
});

$("div#sort ul").bind("mouseenter",function() {
 $("div#sort ul").css("display", "block");
 return false;
}).bind("mouseleave",function() {
 $("div#sort ul").css("display", "none");
 return false;
});

});