﻿
// this function is used to fade in an element
            function FadeThisIn(element){
            
            
            $(element).fadeIn('slow');
        
            }
                // this function is used to fade out an element        
           function FadeThisOut(element){
                        
           $(element).fadeOut('slow');
                        
                        
            }


            
// scripts run one page is ready
            
            $(document).ready( function(){

              
              
              $('#photos').cycle({
                fx: 'scrollDown',
                timeout: 5000,
                speed: 3000,
                delay: - 1000
                });
                
                $('#ads').cycle({
                fx: 'fade',
                timeout: 5000,
                speed: 3000,
                delay: - 500
                });
                
                
              
            }); // end of document.ready