var mnlast="";
function chIM(obj,pic){
	obj.src=obj.src.substring(0,obj.src.lastIndexOf('/')+1)+pic;
}
function getActiveMenu(){
	for(i=0;i<document.links.length;i++){
		obj=document.links[i].parentNode;
		if(obj.tagName=='LI'&&obj.className=='active'&&obj.id.indexOf('mn')==0) mnlast=obj.id.substring(2);
	}
}
function mnShow(n){
	if(mnlast!=""){
		document.getElementById('mn'+mnlast).className="passive";
		mn=n;
		if(mn!=mnlast&&document.getElementById('mn'+mn)){
			document.getElementById('mn'+mn).className="active";
			mnlast=mn;
		}else mnlast="";
	}else if(document.getElementById('mn'+n)){
		mnlast=n;
		document.getElementById('mn'+mnlast).className="active";
	}
}
function addFavorite(){
	if(navigator.appName=="Microsoft Internet Explorer") window.external.AddFavorite(this.location.href,document.title);
}
function setStartPage(o){
	if(navigator.appName=="Microsoft Internet Explorer") o.setHomePage(this.location.href);
}
function setLang(l){
	document.getElementById(l).className='active';
}
function preload(){
	var obj=document.images;
	var im=new Array();
	for(i=0;i<obj.length;i++){
		if(obj.item(i).id.substring(0,2)=='bt'&&obj.item(i).src.indexOf('-over')==-1&&obj.item(i).src.indexOf('-down')==-1){
			im[i]=new Image();
			im[i].src=obj.item(i).src.substring(0,obj.item(i).src.lastIndexOf('.'))+'-over'+obj.item(i).src.substring(obj.item(i).src.lastIndexOf('.'));
		}
	}
}
function winopen(href,w,h,sb){
	window.open(href,'more','width='+w+'px,height='+h+'px,location=0,menubar=0,resizable=0,scrollbars='+sb+',status=0,toolbar=0');
}