//==================================================================================

	submenu1on1 = new Image(44,158);
	submenu1on1.src = "/images/ml_show_on.gif";
	submenu1off1 = new Image(44,158);
	submenu1off1.src = "/images/ml_show_off.gif";
	
	submenu1on2 = new Image(44,158);
	submenu1on2.src = "/images/ml_hide_on.gif";
	submenu1off2 = new Image(44,158);
	submenu1off2.src = "/images/ml_hide_off.gif";
	
	submenu2on1 = new Image(44,158);
	submenu2on1.src = "/images/mr_show_on.gif";
	submenu2off1 = new Image(44,158);
	submenu2off1.src = "/images/mr_show_off.gif";
	
	submenu2on2 = new Image(44,158);
	submenu2on2.src = "/images/mr_hide_on.gif";
	submenu2off2 = new Image(44,158);
	submenu2off2.src = "/images/mr_hide_off.gif";
	
function active(imgName,a) {
		if (a==1)
			document[imgName].src = eval(imgName + "on1.src");
		else
			document[imgName].src = eval(imgName + "on2.src");
}

function inactive(imgName,a) {
		if (a==2) {
			document[imgName].src = eval(imgName + "on1.src");
		}
		else {
			document[imgName].src = eval(imgName + "on2.src");
		}
}
	
function show1(imgName,a) {
		if (ifseealso1==0)
			if (a==1)
				document[imgName].src = eval(imgName + "off2.src");
			else document[imgName].src = eval(imgName + "on2.src");
		else 
			if (a==1)
				document[imgName].src = eval(imgName + "off1.src");
			else document[imgName].src = eval(imgName + "on1.src");
}

function show2(imgName,a) {
		if (ifseealso2==0)
			if (a==1)
				document[imgName].src = eval(imgName + "off2.src");
			else document[imgName].src = eval(imgName + "on2.src");
		else 
			if (a==1)
				document[imgName].src = eval(imgName + "off1.src");
			else document[imgName].src = eval(imgName + "on1.src");
}
//==================================================================================
function switchleft() {
	function get_info(id,i) {
		arr_size[i]=document.getElementById(id).offsetHeight;
		arr_text[i]=document.getElementById(id).innerHTML;
	}
	function hide(id,i) {
		document.getElementById(id).innerHTML="<table border=0 cellpadding=\"0\" cellspacing=\"0\"><tr><td height="+arr_size[i]+"></td></tr></table>"; 
		document.getElementById(id+'_sp').innerHTML="<img src=\"/images/ml_rfill_2.gif\" width=44 height=11 alt=\"\">";
		document.getElementById('Ltop').innerHTML="<img src=\"/images/ml_top_2.gif\" width=44 height=9 alt=\"\">";
		active('submenu1',2);
	}
	function show(id,i){
		document.getElementById(id).innerHTML=arr_text[i];
		document.getElementById(id+'_sp').innerHTML="<img src=\"/images/ml_splitter.gif\" width=214 height=11 alt=\"\">";
		document.getElementById('Ltop').innerHTML="<img src=\"/images/ml_top.gif\" width=214 height=9 alt=\"\">";
		inactive('submenu1',2);
	}
	if (ifseealso1==1) {
		for (i=1;i<=count;i++) {
			get_info('Lmenu'+i,i);
		}
		document.getElementById('mleft').style.backgroundImage = 'url(/images/ml_rfill_2.gif)';
		document.getElementById('mleft1').style.backgroundImage = 'url(/images/ml_rfill_2.gif)';
	}
	else {
		document.getElementById('mleft').style.backgroundImage = 'url(/images/ml_downfill.gif)';
		document.getElementById('mleft1').style.backgroundImage = 'url(/images/ml_downfill.gif)';
	}
	
	for (i=1;i<=count;i++) {
		if (ifseealso1==1) {
			hide('Lmenu'+i,i);
		}
		else {
			show('Lmenu'+i,i);
		}
	}
	if (ifseealso1==1) {
		 ifseealso1=0;
	}
	else ifseealso1=1;
	
}
function switchright() {
	function get_info(id,i) {
		arr_size2[i]=document.getElementById(id).offsetHeight;
		arr_text2[i]=document.getElementById(id).innerHTML;
	}
	function hide(id,i) {
		document.getElementById(id).innerHTML="<table border=0 cellpadding=\"0\" cellspacing=\"0\"><tr><td height="+arr_size2[i]+"></td><tr></table>"; 
		document.getElementById(id+'_sp').innerHTML="<img src=\"/images/mr_rfill_2.gif\" width=44 height=11 alt=\"\">";
		document.getElementById('Rtop').innerHTML="<img src=\"/images/mr_top_2.gif\" width=44 height=9 alt=\"\">";
		active('submenu2',2);
		
	}
	function show(id,i){
		document.getElementById(id).innerHTML=arr_text2[i];
		document.getElementById(id+'_sp').innerHTML="<img src=\"/images/mr_splitter.gif\" width=214 height=11 alt=\"\">";
		document.getElementById('Rtop').innerHTML="<img src=\"/images/mr_top.gif\" width=214 height=9 alt=\"\">";
		inactive('submenu2',2);
	}
	if (ifseealso2==1) {
		for (i=1;i<=count2;i++) {
			get_info('Rmenu'+i,i);
			
		}
		document.getElementById('mright').style.backgroundImage = 'url(/images/mr_rfill_2.gif)';
		document.getElementById('mright1').style.backgroundImage = 'url(/images/mr_rfill_2.gif)';
	}
	else {
			document.getElementById('mright').style.backgroundImage = 'url(/images/mr_downfill.gif)';
			document.getElementById('mright1').style.backgroundImage = 'url(/images/mr_downfill.gif)';
	}
	
	for (i=1;i<=count2;i++) {
		if (ifseealso2==1) {
			hide('Rmenu'+i,i);
		}
		else {
			show('Rmenu'+i,i);
		}
	}
	if (ifseealso2==1) 
		 ifseealso2=0;
	else ifseealso2=1;
	
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function wnd(url,title) {
	w = 350;
    h = 170;
    size="height="+h+",width="+w+", status=no, toolbar=no, menubar=no, scrollbars=1'";
    if (parseInt(navigator.appVersion)>3)
       size+=",left="+(screen.width -w)/2+",top="+parseInt((screen.height -h)/2-100);
    //url = "/data/show_download.php?file="+str;
    open(url,title , size);

}
function download_attach(str) {
	url = "/data/show_download.php?file="+str;
	wnd(url,'DevTeam_download');
}

/*---------------------------*/
/*==================================error*/
function display() {
  if (document.getSelection) {
    var str = document.getSelection();
  } else if (document.selection && document.selection.createRange) {
    var range = document.selection.createRange();
    var str = range.text;
  } else {
    var str = "Sorry, this is not possible with your browser.";
  }
  return str;
}
document.onkeydown =_error;
function testinput(re){
	var str=document.getElementById('search').innerHTML;
 	if (str.search(re) != -1) {
 		url='/data/error.php?pages='+document.location+'&pos='+str.search(re)+'&error_text='+re;
 		wnd(url,'DevTeam_Error');
 	}
}

function _error(a) {
	var c;
	if (!a) var a=window.event;
	if (a.keyCode) c=a.keyCode;
	else if (a.which) c=a.which;
	if ((c==13)&&(a.ctrlKey==true)&&(a.altKey==true)) {
		//var sel_range=document.selection.createRange();
		//var stxt=sel_range.text;
		testinput(display());
	}
}
/*==================================*/
function click_search(name,text) {
	var f=document.forms[name];
	if (f.find.value==text)
		f.find.value='';
	else if (f.find.value=='') 
		f.find.value=text;
	else if (f.find.value!='')
		f.find.value=f.find.value;
	f.find.focus();
}
var hack=0;
function GetSize() { 
	if (hack==1) return; else hack++;
	var oF = document.getElementById("ifrm"); 
	
	if (oF!=null) {
	var oB = document.getElementById('mleft'); 
	var Go = document.getElementById("ifrm").src; 
	var RS = document.getElementById("ifrm").readyState; 
	if ((RS!="loading") && (RS!="interactive")) { 	
		oF.style.height = oB.scrollHeight + (oB.offsetHeight - oB.clientHeight); 		
		oF.style.width ="100%";
	} 
	}
	
}
// Module NoSpam
function nospam(name,domen,zone) {
	eml=(name+'@'+domen+'.'+zone);
	document.write('<a href="mailto:' + eml + '">' + '<img src="/images/smallmail.gif" alt="">&nbsp;' + eml + '</a>');
}














