/**
 * Cactusbunker Framework
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @category   Cactusbunker
 * @package    Cactusbunker
 * @copyright  Copyright (c) 2009 Cactusbunker Inc. Cactusbunker (http://www.cactusbunker.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @version    $Id: main.js 20 2010-04-21 18:26:45Z Andy $
 */

/**
 * The onload function.
 *
 * @access public
 * @return void
 */
function init()
{
	//var ticker = new Cactusbunker.Fx.Ticker("news-ticker");
	//ticker.start();
	
	// Scroll smoothly to anchor elements
	var smoothScroll = new Fx.SmoothScroll();
	
	// Add input text to form fields
	$$('input').each((function(item){
	    new OverText(item);
	}));
}

/**
 * Add the initialize function to the window domready event.
 */
window.addEvent('domready', function(){
	init();
});
