/**
 * @author George Miller
 */
window.addEvent('domready', init);	
function init() {	

Ext.namespace('mht');

mht.morphTabs = new MorphTabs('hometabs', {
	width: 760,
	height: 540,
	changeTransition: {
			transition: 'linear',
			duration: 'short'
		},
		panelStartFx: 'slide:up',
		panelEndFx: 'slide:down',
		mouseOverClass: 'over',
		activateOnLoad: 'first',
		useAjax: true,
		ajaxUrl: 'includes/get_script.php',
		ajaxOptions: {
			method:'get',
			evalScripts: true
		},
		ajaxLoadingText: 'Loading...'
});	

mht.myTips = new Tips('.toolTipLinks');

Ext.get('abouttop').on('click', function(){//the basic top links
mht.morphTabs.activate('Monkey About');	
});

Ext.get('contacttop').on('click', function(){//and again
mht.morphTabs.activate('Monkey Contact');	
});


//the ext stuff
//initalize the quicktips
Ext.QuickTips.init();

//reference the default image
Ext.BLANK_IMAGE_URL = 'ext-2.1/resources/images/default/s.gif';


}
