$(document).ready(function(){$("#links li a").parent().mouseover(function(){$(this).animate({width:95},"fast");return false});$("#links li a").parent().mouseout(function(){$(this).animate({width:90},"fast");return false});$("#links li:nth-child(1) a").click(function(){$("div.top-element:visible").animate({height:"hide",opacity:"hide"},"slow");return false});$("#links li:nth-child(2) a").click(function(){if($("#projects:visible, #places:visible").size()>0){$("div.top-element:visible").animate({height:"hide",opacity:"hide"},"slow",function(){$("#skills").animate({height:"show",opacity:"show"},"slow")})}else{$("#skills").animate({height:"show",opacity:"show"},"slow")}return false});$("#links li:nth-child(3) a").click(function(){if($("#skills:visible, #places:visible").size()>0){$("div.top-element:visible").animate({height:"hide",opacity:"hide"},"slow",function(){$("#projects").animate({height:"show",opacity:"show"},"slow")})}else{$("#projects").animate({height:"show",opacity:"show"},"slow")}return false});$("#links li:nth-child(4) a").click(function(){if($("#skills:visible, #projects:visible").size()>0){$("div.top-element:visible").animate({height:"hide",opacity:"hide"},"slow",function(){$("#places").animate({height:"show",opacity:"show"},"slow")})}else{$("#places").animate({height:"show",opacity:"show"},"slow")}return false})});