// JavaScript Document
//milisec.js

//**************this is array with file names for images that refer to projects****************************************
function on (th) {
th.parentNode.childNodes[1].style.visibility  = "visible";
}
function off (th) {
th.parentNode.childNodes[1].style.visibility  = "hidden";
}
//**************to show the title of projects and amount of images in it****************************************
function nameOn (a,b){//alert(project_name[a][b]+" wwww "+b);
var pr_name = document.createTextNode(project_name[a][b]);
var pr_count=document.createTextNode(slide_show_count[a][b]+" images");
var pr_time=document.createTextNode(project_time[a][b]);

document.getElementById("title").appendChild(pr_name);
document.getElementById("counter").appendChild(pr_count);
document.getElementById("time").appendChild(pr_time);
}
//**************to hide the title of projects and amount of images in it****************************************
function nameOff (){//alert("www "+document.getElementById("title").firstChild.nodeName);
var title = document.getElementById("title").firstChild;
var count = document.getElementById("counter").firstChild;
var time = document.getElementById("time").firstChild; 

document.getElementById("title").removeChild(title);
document.getElementById("counter").removeChild(count);
document.getElementById("time").removeChild(time);
}
//**************to show the navi hint****************************************
function infoOn (b){//alert(project_name[a][b]+" wwww "+b);
var info_name = document.createTextNode(b);
document.getElementById("Information").appendChild(info_name);
}
//**************to hide the navi hint****************************************
function infoOff (){//alert("www "+document.getElementById("title").firstChild.nodeName);
var infoT = document.getElementById("Information").firstChild;
document.getElementById("Information").removeChild(infoT);
}

