///////////////////////////////////////////////////////// function onscroll(){ var nov = document.getElementById('nov') var fon = document.getElementById('fon') if(nov && fon){ nov.style.top = document.body.scrollTop nov.style.left = document.body.scrollLeft fon.style.top = document.body.scrollTop fon.style.left = document.body.scrollLeft } } ///////////////////////////////////////////////////////// function onresize(){ var nov = document.getElementById('nov') var fon = document.getElementById('fon') var width = document.body.clientWidth var height = document.body.clientHeight if(nov && fon){ nov.style.width = width nov.style.height = height nov.style.left = document.body.scrollLeft fon.style.width = width fon.style.height = height fon.style.left = document.body.scrollTop } } ///////////////////////////////////////////////////////// function zakryt(){ if(document.getElementById('nov')){ document.getElementById('nov').parentNode.removeChild(document.getElementById('nov')) } if(document.getElementById('fon')){ document.body.removeChild(document.getElementById('fon')) } var selectList = document.getElementsByTagName("SELECT"); for(var i = 0; i= 2){ return(true) } else { return(false) } } ///////////////////////////////////////////////////////// function preload(images) { if (typeof document.body == "undefined") return; try { var div = document.createElement("div"); var s = div.style; s.position = "absolute"; s.top = s.left = 0; s.visibility = "hidden"; document.body.appendChild(div); for (var i = 0; i < images.length; i++) div.innerHTML += ""; } catch(e) { // Error. Do nothing. } }