$(document).ready( function () {
  jQuery('.funpics').each ( function(i) {
      var delay = i * 1000;
      jQuery(this).cycle({
        fx: 'scrollLeft',
        delay: delay,
        speed: 'slow',
        speedIn: 1000,
        speedOut: 1000,
        timeout: 6000
      });
  });

  $('.funcat-ul li').hover(function() {
    $('#img_' + this.id ).css('border' , '1px solid #FFF' );
    $('#img_' + this.id ).css('width' , '215px' );
  }, function() {
    $('#img_' + this.id ).css('border' , '1px solid #000' );
  });
	
	$('.funcat-ul li').click(function() {
		$('#img_' + this.id + ' img' ).click();
	});

  $('a.fun_thumbnails').tooltip( {
    tip : ".demotip",
    offset : [ -18, 0 ],
    onShow : function() {
    }
  });

});

