/*
|--------------------------------------------------------------------------
| On The Move > Front-End > Core JavaScript Calls
|--------------------------------------------------------------------------
|
| @package		On The Move
| @subpackage	Frontend JavaScript
| @company		Amedia Creative, Inc.
| @phone		310/651/8733
| @fax			310/388/1210
| @author		
| @email		
| @link			
| @copyright	2008 Amedia Creative, Inc.
| @requires 	mootools.1.2.js
|
*/

/*
|--------------------------------------------------------------------------
| On The Move > Forms
|--------------------------------------------------------------------------
|
*/

	/**
	* Function to call the JavaScript Validation.
	*
	* @name 	Load Form Styles
	* @access 	public
	* @param 	var-type none
	* @return 	none
	* @author 	Joey Avino
	* @email	joey@amediacreative.com
	*/ 
	function load_contact_form()  {

		var check_list = new Array(); // List of inputs you want to check for validation and their val type.
			check_list[0] = '.val_min_len_3';
			check_list[1] = '.val_phone';
			check_list[2] = '.val_email';
			check_list[3] = '.val_dropdown';
			check_list[4] = '.val_min_len_4';

		var form = $('id_contact_form'); // Form the inputs are in.
		init_val(check_list, form); // Call the initial form validation
		//dropdown('dropdown'); // This is for a custom dropdown, will take your id and id_label.
		submit_toggle(); // If you want a button with class = submit to toggle.

	}
	
/*
|--------------------------------------------------------------------------
| On The Move > JavaScript Framework > External Links
|--------------------------------------------------------------------------
|
*/

	/**
	* Function to handle the External Links
	*
	* @name 	Handle External Links
	* @access 	public
	* @param 	var-type none
	* @return 	none
	* @author 	Ever Daniel Barreto
	* @email	e.barreto@amediacreative.com
	*/
	function handle_external_links() {

		$$('.external').each(function(element) {
									  
			element.setProperty('target', '_blank');
			
		});

	}
