/**
 * davidleinweber.cjs
 * Tom McFarlin / December 2007
 *
 * This script is responsible for instantiating all
 * objects necessary for the website.
 */
Event.observe(window, 'load', function() {
			
    // setup the navigation manager
    new NavigationManager();
			
    // setup the image rotater if we're on the home page
    if($('rotating-images') != null) {
        var rotater = new ImageRotater($('rotating-images'), true);
        rotater.start();
    } // end if

    // setup the email manager scripts
    if($('email-form') != null) {
        new AJAXEmail();
    } // end if

    // setup the guestbook manager
	if($('guestbook-form') != null) {
		new AJAXGuestbook();	
	} // end if

}); // end load observer
