
	 window.onload=function(){
	
	    var list = $$('a.dnl');
	    list.each(function(element) {
     
		    var fx = new Fx.Styles(element, {duration:200, wait:false});
    	 
			    element.addEvent('mouseenter', function(){
					    fx.start({
						    'margin-right': 0
					    });
				    });
    				
				    element.addEvent('mouseleave', function(){
					    fx.start({
						    'margin-right': 5
					    });
				    });
	    });
	    
	    var listLeft = $$('a.dnlleft');
	  
	    listLeft.each(function(element) {
     
		    var fx = new Fx.Styles(element, {duration:200, wait:false});
    	 
			    element.addEvent('mouseenter', function(){
					    fx.start({
						    'margin-left': 5
					    });
				    });
    				
				    element.addEvent('mouseleave', function(){
					    fx.start({
						    'margin-left': 0
					    });
				    });
	    });
	    
		var stretchers = $$('div.atStart');
	    var togglers = $$('h3.atStart');

	    stretchers.setStyles({'height': '0', 'overflow': 'hidden'});
			
		//initialization of togglers effects
	
		togglers.each(function(toggler, i){
			toggler.color = toggler.getStyle('background-image');
			toggler.$tmp.first = toggler;
			toggler.$tmp.fx = new Fx.Style(toggler, 'background-image', {'wait': false, 'transition': Fx.Transitions.Quart.easeOut});
		});
	
		//the accordion
		
		var myAccordion = new Accordion(togglers, stretchers, {
			
			'opacity': false,
			
			'start': false,
			
			'transition': Fx.Transitions.Quad.easeOut,
			
			onActive: function(toggler){
			 //toggler.setStyles({color: '#fff', background: '#333'});
					toggler.setStyles({background: 'transparent url(http://www.imedialinux.com/themes/aMain/images/highlight.gif) repeat-y'});
				//toggler.$tmp.first.setStyle('color', '#fff');
			},
		
			onBackground: function(toggler){
				toggler.setStyles({background: 'transparent none no-repeat'});
        //toggler.$tmp.fx.stop();
				//toggler.$tmp.first.setStyle('color', '#000');
			}
		});
		
		//open the accordion section relative to the url
		
		myAccordion.display(-1);
		
		
		var stretchers1 = $$('div.atStart1');
	    var togglers1 = $$('h3.atStart1');

	    stretchers1.setStyles({'height': '0', 'overflow': 'hidden'});
			
		//initialization of togglers effects
	
		togglers1.each(function(toggler, i){
			toggler.color = toggler.getStyle('background');
			toggler.$tmp.first = toggler;
			toggler.$tmp.fx = new Fx.Style(toggler, 'background', {'wait': false, 'transition': Fx.Transitions.Quart.easeOut});
			
		});
		
		var myAccordion1 = new Accordion(togglers1, stretchers1,{
			
			'opacity': false,
			
			'start': false,
			
			'transition': Fx.Transitions.Quad.easeOut,
			
			onActive: function(toggler){
		  	toggler.setStyles({background: 'transparent url(http://www.imedialinux.com/themes/aMain/images/highlight.gif) repeat-y'});
			  //toggler.$tmp.fx.start('transparent url(http://www.imedialinux.com/themes/aMain/images/highlight.gif) repeat-y');
				//toggler.$tmp.first.setStyle('background-image', 'url(http:www.imedialinux.com/themes/aMain/images/highlight.gif)');
			},
		
			onBackground: function(toggler){
				//toggler.$tmp.fx.stop();
				toggler.setStyles({background: 'transparent none no-repeat'});
				//toggler.$tmp.first.setStyle('background-image', 'url(http:www.imedialinux.com/themes/aMain/images/highlight.gif)');
			}
		});
		myAccordion1.display(0);
	};