$(document).ready(function() {
$('#slideshow').cycle({
    fx:     'scrollHorz',
    speed:  '1500',
    timeout: '4000',
    pager:  '#slideshow-thumbs',
    before: function () {
      	  var slideshowlink = $(this).attr("rel");
		$('#slideshow-link').attr("href", slideshowlink);
    },
    pagerAnchorBuilder: function(idx, slide) {
        // return sel string for existing anchor
        return '#slideshow-thumbs li:eq(' + (idx) + ') a';
    }
  });
});

$(document).ready(function () {
    $("#project-list li span", this).hover(

    function () {
        $(".project-list-hover", this).animate({
            "bottom": "0"
        }, 400);
    }, function () {
        $(".project-list-hover", this).animate({
            "bottom": "-100"
        }, 400);
    });
});

$(function(){

    $("ul#nav-main li").hover(function(){
    
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
    
    }, function(){
    
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    
    });
    
    $("ul#nav-main li ul li:has(ul)").find("a:first").append(" &raquo; ");

});
