Ext.ns('DJIndexes.Custom');

DJIndexes.Custom = function() {
	
	function _init() {
		contactUs();
		large_img();
	}
	
	function contactUs() {
		var tabContainer = 'contact-form';
		var container = Ext.get(tabContainer);
		if ( Ext.get(container) ) {
			new DJIndexes.widget.ContactForm(container,{
				additionalParams: [
					{ name: '00N60000001N3cm', value: 'Custom Index Inquiry' }
				]
			});
		}
	}
		// info windows
	function large_img() {
		var autoLinkSelector = '.large-image';
		if (Ext.select(autoLinkSelector).getCount()) {
			new DJIndexes.widget.InfoWindow({
				title: 'Custom Solutions Logo',
				width: 615,
				height: 430,
				autoLoad: 'large-image.html',
				autoShow: false,
				autoLinkCls: autoLinkSelector
			});
		}
	}
		
	return {
		init: _init
	}
	
}();
Ext.onReady(DJIndexes.Custom.init,DJIndexes.Custom);
