Ext.ns('DJIndexes.ContactUs');

DJIndexes.ContactUs = function() {
	
	var tabContainer = 'overview-tabs';
	var tabContent = [
		{ title: 'North America', contentEl: 'north-america' },
		{ title: 'Latin America / Mexico', contentEl: 'latin-america' },
		{ title: 'Europe', contentEl: 'europe' },
		{ title: 'Asia Pacific', contentEl: 'asia-pacific' },
		{ title: 'Middle East', contentEl: 'middle-east' }
	];
	
	function _init() {
		overviewTabs();
		contactUs();
	}

	function overviewTabs() {
		
		var tabContentEl = Ext.get('overview-tabs');
		
		if (tabContentEl) {
			new DJIndexes.widget.InfoTabs(tabContentEl,{
				tabs: tabContent
			});
		}
		
	}
	
	
	function contactUs() {
		var tabContainer = 'contact-form';
		var container = Ext.get(tabContainer);
		if ( Ext.get(container) ) {
			new DJIndexes.widget.ContactForm(container,{
				additionalParams: [
					{ name: '00N60000001N3cm', value: 'Dow Jones Indexes Contact Form' }
				]
			});
		}
	}
	
	
	
	return {
		init: _init
	}
	
}();
Ext.onReady(DJIndexes.ContactUs.init,DJIndexes.ContactUs);
