$(document).ready(function() {
        $(function() {        
            $('#slideshow').cycle({
                fx:      'fade',
                speed:    2000, 
                timeout:  7000,
                pause:    1,
                prev:    '#prev',
                next:    '#next',
                pager:   '#nav',
                pagerAnchorBuilder: pagerFactory
            });        
            function pagerFactory(idx, slide) {
                var s = idx > 7 ? ' style="display:none"' : '';
                return '<li'+s+'><a href="#">'+(idx+1)+'</a></li>';
            };
            
            $("#mapa img").hover(
      function () {
        $(this).attr("src","/gfx/cupamat_color.gif");
      }, 
      function () {
        $(this).attr("src","/gfx/cupamat_grey.gif");
      }
    );
            
        });              		



$(document).ready(function(){
        $('a.thumb').lightBox({fixedNavigation:true});	
        if (document.all) {
        		$("#menu li").hoverClass ("sfHover");
        	}
        });	  
        $.fn.hoverClass = function(c) {
        	return this.each(function(){
        		$(this).hover( 
        			function() { $(this).addClass(c);  },
        			function() { $(this).removeClass(c); }
        		);
        	});
        };
});

