



//subpagehandle_MA =  function(current) {
	
	document.observe('dom:loaded', function () {
	
	
	 var Meffects = new Array();
		

	$$('.toclose').each(function(element) {
		
								 
		var options_out = {									
							  sync: true,
							  style: 'height: 26px;', // CSS Properties
							  beforeStart: function() {
								   //var idn = getUrlVars()["idlast"];
									//new Ajax.Updater(element.down(0), 'rpc.php', {method: 'post', postBody:'idn='+ idn +''});
									
							   },
							  afterFinish: function() {
								   element.removeClassName('toclose');
							   }
						};		
						
		Meffects.push(new Effect.Morph(element, options_out));
		Meffects.push(new Effect.Fade(element.down(0), { sync: true, from: 1, to: 0 }));

						 
	})
	
	
	$$('.toopen').each(function(element) {
		
								 
		var options_in = { 
							  sync: true,
							  style: 'height: 445px;', // CSS Properties
							  beforeStart: function() {
								  	//element.down(0).setOpacity(0.01);
									element.down(0).hide();
							
							   },
							   afterFinish: function() {
								   element.removeClassName('toopen');
								  
							   }
						};						 
		
		
		Meffects.push(new Effect.Morph(element, options_in));
								 
		Meffects.push(new Effect.Appear(element.down(0), { sync: true, from: 0.01, to: 1 }));
								 
	})
	
	
		new Effect.Parallel(Meffects, {
            duration: 1,
            delay: 0.1, 
            queue:'end',
			 afterFinish: function() {
				 				init_scrollme ();
							   }
        });
		
		
 });	
	  
//};






