

/************ kickouts *************/
var Kickout = Class.create();
Kickout.prototype = {
	initialize: function(trigger, container) {
		this.trigger = $(trigger);
		this.container = $(container);
		this.setup();
	},
	setup: function() {
		this.trigger.observe('mouseenter', this.open.bindAsEventListener(this));
		this.trigger.observe('mouseleave', this.close.bindAsEventListener(this));
	},
	open: function(event) {
		this.trigger.addClassName('active');
		this.container.show();
		this.container.style.zIndex = 9999;
		event.stop();
	},
	close: function(event) {
		this.trigger.removeClassName('active');
		this.container.hide();
		event.stop();
	}
}



/************ dom ready function calls *************/
document.observe('dom:loaded', function() {
	
	if($('navProducts')) {
		new Kickout('productsMenu', 'navProducts');
	}
	
	if($('navApplications')) {
		new Kickout('applicationsMenu', 'navApplications');
	}

});

try{
	document.execCommand("BackgroundImageCache", false, true);
}catch(e){}