function menu_mouseover(id, movement) 
{     
    new Effect.Move (id,{ x: 0, y: movement, mode: 'relative', duration: 0.3, queue: {position:'end', scope: id, limit: 2}});      
}
function menu_mouseout(id) 
{    
    new Effect.Move (id,{ x: 0, y: 0, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: id, limit: 3}});      
}

function start_up(animation) 
{  
	if (animation) {
		new Effect.Move ('lcc',{ x: 548, y: 0, mode: 'absolute', duration: 1.1});              

		new Effect.Move ('menu1',{ x: 0, y: -6, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu1', limit: 2}});              
		new Effect.Move ('menu1',{ x: 0, y: 0, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu1', limit: 2}});                          
		
		new Effect.Move ('menu2',{ delay: 0.2, x: 0, y: -6, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu2', limit: 2}});              
		new Effect.Move ('menu2',{ x: 0, y: 0, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu2', limit: 2}});
		
		new Effect.Move ('menu3',{ delay: 0.4, x: 0, y: -6, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu3', limit: 2}});              
		new Effect.Move ('menu3',{ x: 0, y: 0, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu3', limit: 2}});          
		
		new Effect.Move ('menu4',{ delay: 0.6, x: 0, y: -6, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu4', limit: 2}});              
		new Effect.Move ('menu4',{ x: 0, y: 0, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu4', limit: 2}});          
		
		new Effect.Move ('menu5',{ delay: 0.8, x: 0, y: -6, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu5', limit: 2}});              
		new Effect.Move ('menu5',{ x: 0, y: 0, mode: 'absolute', duration: 0.3, queue: {position:'end', scope: 'menu5', limit: 2}});       
		
		new Effect.Highlight('submenu1', {delay: 1.05, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'}) 
		new Effect.Highlight('submenu2', {delay: 1.1, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu3', {delay: 1.15, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu4', {delay: 1.2, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu5', {delay: 1.25, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu6', {delay: 1.3, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu7', {delay: 1.35, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu8', {delay: 1.4, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu9', {delay: 1.45, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu10', {delay: 1.5, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu11', {delay: 1.55, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu12', {delay: 1.6, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
		new Effect.Highlight('submenu13', {delay: 1.75, duration: 0.5, startcolor:'#e4e4e4', endcolor:'#ffffff'})
	} else {
		new Effect.Move ('lcc',{ x: 548, y: 0, mode: 'absolute', duration: 0});
	}
}

function mouseover(id)
{
	new Effect.Morph(id,{ style:'background:#bbbbbb; color: #ffffff;', duration:0.3, queue: {position:'end', scope: id, limit:1}});
}
function mouseout(id)
{
	new Effect.Morph(id,{ style:'background:#ffffff; color: #000000;', duration:0.3, queue: {position:'end', scope: id, limit:2}});
}


function flagclick(id)
{
	new Effect.Puff(id, { duration:0.3, queue: {position:'end', scope: id, limit:2}});
	window.setTimeout('window.location="?lang='+id+'"', 300);		
}
