function id(ID){ return document.getElementById(ID); } var navibar = document.getElementsByClassName("navibar"); var pages=document.getElementsByClassName("content"); function iframe(ID,width,height,src,name){ this.ID=ID; this.width=width; this.height=height; this.src=src; this.type="iframe"; this.name=name; } function content(ID,content,name){ this.ID=ID; this.content=content; this.name=name; this.type="content"; } /*function writecookie(attribute,value){ var d = new Date(); d.setTime(d.getTime() + (1*24*60*60*1000)); var expires = "expires=" + d.toGMTString(); if(document.cookie.indexOf(attribute)>-1){ document.cookie.substring(attribute+"=",document.cookie.substring(attribute+"=",document.cookie.length).indexOf(";"))+value+document.cookie.substring(document.cookie.substring(attribute+"=",document.cookie.length).indexOf(";"),document.cookie.length)+"expires="+d.toGMTString()+";path=/"; } else { document.cookie=attribute+"="+value+";"+"expires="+d.toGMTString()+";path=/"; } }*/ id("navibar").addEventListener("mouseenter",function(){id("navibar").style.zIndex=39; for(i=0;i