// JavaScript Document

function navigation() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("navigation");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

function newImage(){
    if(document.images){
       document.images['imageCamera'].src = 'http://www.buddism.ru/image.jpg?' +
       Date.parse(new Date().toString());
    } setTimeout(newImage,7000);
  }
function reloadImage(){
  newImage();
  navigation() 
}
  
function rus(form){
form.usr_ln.value="rus";
form.submit();}

function eng(form){
form.usr_ln.value="eng";
form.submit();}

function tib(form){
form.usr_ln.value="tib";
form.submit();} 

function edit(form){
	form.action.value="edit";
form.submit();}

function move(form){
	form.action.value="move";
form.submit();}

function unlink(form){
	form.action.value="unlink";
form.submit();} 

function CheckAll(formName){

		thisCheckBoxes = formName.getElementsByTagName('input');
		var checkLength=thisCheckBoxes.length;
                for (i = 1; i < thisCheckBoxes.length-6; i++) {
                        thisCheckBoxes[i].checked =! thisCheckBoxes[i].checked;

                }

}


function submit(){
document.MainForm.submit()
} 
function submitForm(formID){
form=document.getElementById(formID)
form.submit();
}

function hide(imgID){
img=document.getElementById(imgID)
img.style.visibility="hidden" 
}
function show(imgID){
img=document.getElementById(imgID)
img.style.visibility="visible" 
}
function moveLayer(imgID){
img=document.getElementById(imgID);
img.className="loginOver" 
}

