function convover(obg){
	obg.className='over';
	settings = {
	  tl: { radius: 5 },
	  tr: { radius: 5 },
	  bl: { radius: 0 },
	  br: { radius: 0 },
	  antiAlias: true,
	  autoPad: true,
	  validTags: ["td","div"]
	}

	var myBoxObject = new curvyCorners(settings, "over");
	myBoxObject.applyCornersToAll();

}
 
function convout(){
	document.getElementById('p1').className='out';
	document.getElementById('p2').className='out';
	document.getElementById('p3').className='out';
	document.getElementById('p4').className='out';
	document.getElementById('p5').className='out';
	document.getElementById('p6').className='out';
	document.getElementById('p7').className='out';
	document.getElementById('p8').className='out';
	document.getElementById('p9').className='out';

	settings = {
	  tl: { radius: 5 },
	  tr: { radius: 5 },
	  bl: { radius: 0 },
	  br: { radius: 0 },
	  antiAlias: true,
	  autoPad: true,
	  validTags: ["td","div"]
	}
	
	var myBoxObject1 = new curvyCorners(settings, "out");
	myBoxObject1.applyCornersToAll();
}


function over_menu(lang,id){
	out_menu(lang);
	document.getElementById(id).style.display='block';
	document.getElementById('p'+id).src='../images/menu/menu_r_'+lang+'_'+id+'.gif';
}
	
function out_menu(lang){
	//convout();
	document.getElementById('0').style.display='none';
	document.getElementById('1').style.display='none';
	document.getElementById('2').style.display='none';
	document.getElementById('3').style.display='none';
	document.getElementById('4').style.display='none';
	document.getElementById('5').style.display='none';
	document.getElementById('6').style.display='none';
	document.getElementById('7').style.display='none';
	document.getElementById('8').style.display='none';
	document.getElementById('9').style.display='none';
	document.getElementById('p1').src='../images/menu/menu_'+lang+'_1.gif';
	document.getElementById('p2').src='../images/menu/menu_'+lang+'_2.gif';
	document.getElementById('p3').src='../images/menu/menu_'+lang+'_3.gif';
	document.getElementById('p4').src='../images/menu/menu_'+lang+'_4.gif';
	document.getElementById('p5').src='../images/menu/menu_'+lang+'_5.gif';
	document.getElementById('p6').src='../images/menu/menu_'+lang+'_6.gif';
	document.getElementById('p7').src='../images/menu/menu_'+lang+'_7.gif';
	document.getElementById('p8').src='../images/menu/menu_'+lang+'_8.gif';
	document.getElementById('p9').src='../images/menu/menu_'+lang+'_9.gif';
}

function active_menu(id){
	document.getElementById(id).style.color = 'ab5f9a';
	document.getElementById(id).style.fontWeight = 'bold';
}

function page_menu(main,subm,lang){
	over_menu(lang,main);
//	active_menu('<?=$sm?>');
}