var Explorer = new Class({ initialize: function(){ /*//--> IE6 Specific*/ if(window.ActiveXObject && !window.XMLHttpRequest){ this.positionFixedEmulation(); } }, positionFixedEmulation: function(){ /*//--> Adds positioned fixed emulation to IE6 //--> In order for this to work the body element must have a background image. Even if it is a transparent gif. //--> These rules must be added inline in order for the dynamic expressions to create the 'Smooth Scroll' effect.*/ var c = document.styleSheets[0]; c.addRule('.fixed','top: expression(eval(document.documentElement.scrollTop));'); c.addRule('body','background-attachment: fixed;'); } });
window.addEvent('scroll', function(){ 
	if(Window.getScrollTop()){
		if(Window.getScrollTop()<200){
			$('menu_top').setStyle('border', '0'); 
			$('MJ_MainMenu').setStyle('top', '0'); 
			$('menuazienda').setStyle('top', '45px'); 
			$('menubianco').setStyle('top', '45px'); 
			$('menunews').setStyle('top', '45px'); 
		}
		else {
			var pluto=Window.getScrollTop();
			$('MJ_MainMenu').setStyle('top', pluto+'px'); 
			$('menu_top').setStyle('border', '3px solid #134779'); 
			$('menuazienda').setStyle('top', (pluto+45)+'px'); 
			$('menubianco').setStyle('top', (pluto+45)+'px'); 
			$('menunews').setStyle('top', (pluto+45)+'px'); 
		}
		var pluto=Window.getScrollTop();
		$('box_sito').setStyle('top', pluto+'px'); 
	}
	});
