jQuery(document).ready(function($){
	
	$('#home-slide').hover( 
	function() {
		$('#slide-content').cycle('pause');
		$('#controls').fadeIn();
	}, 
	function() {
		$('#slide-content').cycle('resume');
		$('#controls').fadeOut();
	}
	);
	
   $('#slide-content').cycle({
        fx: 'scrollRight',
        speed: 1000,
        next: '#controls .next',
        prev: '#controls .prev',
        timeout: 5000,
    });
    
    
     $('#quote').cycle({
        fx: 'fade',
        speed: 1000,
        timeout: 5000,
    });
	    
     $(".hoverborder").jFade({
        trigger: "mouseover",
        property: 'border-color',
        start: 'ffffff',
        end: 'cccccc',
        steps: 18,
        duration: 18,
        
    });
    
    $(".hoverborder").jFade({
        trigger: "mouseout",
        property: 'border-color',
        start: 'cccccc',
        end: 'ffffff',
        steps: 18,
        duration: 18,
    });
       
    
    
    $('#slide-sponsors').cycle({
        fx: 'scrollLeft',
        speed: 700,
        timeout: 4000,
    });
    
    $('.gallery').cycle({
    prev: '#left-arrow',
    next: '#right-arrow',
    fx: 'fade',
    timeout: 5000,
    height: 'auto'
	});
	
    $('.gallery').hover(
       function() {
    $('#slide-content').cycle('pause');
    $('#left-arrow').fadeTo('slow', '0.3');
    $('#right-arrow').fadeTo('slow', '0.3');
       },
       function() {
	$('#slide-content').cycle('resume');
	$('#left-arrow').fadeTo('slow', '1');
	$('#right-arrow').fadeTo('slow', '1');
       }
   );
   
    $('ul.twitter').cycle({
        fx: 'scrollLeft',
        speed: 1000,
        timeout: 5000,
        height: '10',

    });
    
    $("._picasaViewImage").fancybox({
		'titleShow'		: false,
		'transitionIn'	: 'swing',
		'transitionOut'	: 'swing'
	});

 
  	$(".pop-up").click(function(){  
 	$(".pop-up, .mask").fadeOut(1500);  
	 })  





});
