$(document).ready(function(){
  
  // color box launch
    	$('#comments .thickbox, .login-link').colorbox({iframe:true,width:400, height:250});
    	$('#footer .thickbox').colorbox();
    	$('#content #text .slideshow').colorbox({
    		slideshow:true,
    		photo:true,
    		preloading:true,
    		slideshowSpeed:5000
    		});
    	$('.rsvp .thickbox, a[title=Checkout].thickbox,a[title=Donate]').colorbox({iframe:true,width:450, height:570});
    	$('#options .thickbox,.section .thickbox, a[title="Edit Your Profile"]').colorbox({iframe:true,width:500, height:570}); 


        $(".mi-btn").click(function(e){
            $(".mi-content").slideToggle("fast");
            e.preventDefault();
        });
        if($("#rotator").length > 0){
            $('#rotator > div').cycle({ 
                fx:     'fade', 
                speed:  'slow', 
                timeout: 7000,
                pager:'#btns',
                activePagerClass: 'activeSlide'            
            });
        }
    	
});
