window.addEvent('domready', function(){	$$('ul#main-menu li').each(function(el){		el.addEvent('mouseenter', function(){			if(subMenu=this.getElement('ul')){				//subMenu.setStyle('display','block');				subMenu.fade(.7);			}		});		el.addEvent('mouseleave', function(){			if(subMenu=this.getElement('ul')){				//subMenu.setStyle('display','none');				subMenu.fade(0);			}		});	});	$$('ul#main-menu ul').each(function(el){		el.setStyle('opacity', 0);	});/*	 *$$('img[src$=png]').each(function(el){		size=el.getSize();		el.src='static/images/blank.gif';		el.setStyle('filter',"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+el.src+"'),sizingMethod='scale')");		el.setAttribute('width', size.x);		el.setAttribute('height', size.y);	});*/	if(panel=$('more-content')){		panel.setStyles({			width: 0,			paddingRight: 0		});		handle=$('pull-handle');		new Fx.Tween(handle, {duration:1000, transition:Fx.Transitions.Bounce.easeOut}).start('left', [-150, -25]);		panel.opener=new Fx.Morph(panel);		panel.open=false;		handle.addEvent('click', function(){			if(panel.open){				panel.opener.start({					width:0,					paddingRight:0				});				panel.open=false;				handle.src='static/images/framework/pullhandle.png'			} else {				panel.opener.start({					width:200,					paddingRight:15				});				panel.open=true;				handle.src='static/images/framework/pushhandle.png'			}		});	}});
