//IE6 Background Color
var ie6BGColor = '#cccccc';

var DHTMLSlides = {
	navmenu: function(){
		$$('.Menu').each( function(button, i) {
			if($defined($('Sub' + button.id))) {
				
				$('Sub' + button.id).parentNode.style.top = '32px';
				if (window.ie6) {
					$('Sub' + button.id).parentNode.style.width = '175px';
				}
				var width = 0;
				
				for(c = 0;c < i; c++){
					if(c != i){
						width = width + $$('.Menu')[c].getChildren()[0].width;
					}
				}
				
				$('Sub' + button.id).getParent().setStyle('left', width + 'px');
				
				var myFx = new Fx.Slide($('Sub' + button.id), {duration: 400}).hide();			
				$('Sub' + button.id).onmouseover = function(){
					myFx.cancel();
					myFx.slideIn();
				}
			
				$('Sub' + button.id).onmouseout = function(){
					myFx.cancel();
					myFx.slideOut();
				}
				
				button.onmouseover = function(){
					myFx.cancel();
					myFx.slideIn();	
				}
					
				button.onmouseout = function(){
					myFx.cancel();
					myFx.slideOut();	
				}
			}
		});
		$$('.slideMenu A').each(function(link){
			if(Browser.Engine.trident4){
				link.setStyle('width', 175);
			}
		});
	}
}
window.addEvent('domready',function() {
	$('navigationSliders').setStyle('display', 'block');
	DHTMLSlides.navmenu();
});
