// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


/*
** January 31, 2009
** Christopher Kolb <kolbcp@gmail.com>
**
** This script runs code upon the loading of the HTML document.
*/

Event.observe(window, 'load', function() {
	
	/*
	** Probe browser to determine browser type and version as well as the operating system.
	** Append class selectors to the HTML element based on what was found.
	*/
	
	css_browser_selector(navigator.userAgent); /* */
	
	/*
	** Probe browser to determine the presence of various fonts.  Append class selectors to
	** the HTML element based on what was found.
	*/
	
	css_font_family_selector('Zapfino', 'sans-serif'); /* */
	css_font_family_selector('Lucida Calligraphy', 'sans-serif'); /* */
	
	/*
	**
	*/
	
	if ($('index_page')) {
		var gallery = new Gallery({	
												first: 'link_to_first',										
												last: 'link_to_last',	
			                  next: 'link_to_next',	
												pause: 'link_to_pause',										
												play: 'link_to_play',	
												previous: 'link_to_previous',										
												thumbnails: [ 'thumbnail_01', 'thumbnail_02', 'thumbnail_03',
													            'thumbnail_04', 'thumbnail_05', 'thumbnail_06',
													            'thumbnail_07', 'thumbnail_08', 'thumbnail_09',
													            'thumbnail_10', 'thumbnail_11', 'thumbnail_12',
													            'thumbnail_13', 'thumbnail_14', 'thumbnail_15'
												            ],	
			                  views: [ 'view_01', 'view_02', 'view_03',
													       'view_04', 'view_05', 'view_06',
													       'view_07', 'view_08', 'view_09',
													       'view_10', 'view_11', 'view_12',
													       'view_13', 'view_14', 'view_15'
			                         ]										
											});
	}

	/*
	** Debugging
	*/
	
	/* alert($$('HTML')[0].className); /* */
});
