// remap jQuery to $
(function($){})(window.jQuery);


/* trigger when page is ready */
$(document).ready(function (){
var $j = jQuery.noConflict();

$j(function()
{
    $j('#banners').cycle(
        { 
                fx:     'fade', 
                speed:  'slow',
                timeout: 10000,
				random: true
        });

    $j('#photos').cycle(
        { 
                fx:     'fade', 
                speed:  'slow',
                timeout: 2500,
				random: true,
				after: function onAfter(curr, next, opts, fwd){
        //get the height of the current slide
        var $ht = $j(this).height();
        //set the container's height to that of the current slide
        $j(this).parent().css("height", $ht);
}        	
		});
            

        
});


	
	( function($) {
		$(document).ready(function() {
			
			$("a#example").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',

			});

			$("a.example2").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'titlePosition'	: 'over',

			});

		});
		
		} ) ( jQuery );

	// your functions go here

});


/* optional triggers

$(window).load(function() {
	
});

$(window).resize(function() {
	
});

*/


