function menu_over(adress, adress_old) {
   if (adress != adress_old) {
 adress_old.setvariable("naved", 0);
 adress.setvariable("naved", 1);
 }
 }
 
function menu_out(adress, adress_old) {
 if (adress != adress_old) {
 adress.setvariable("naved", 0);
 adress_old.setvariable("naved", 1);
 }
 }
 
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",80)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=40
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

function baza(clipart) {
if (screen.height < 730){
	windop = window.open("foto.html?"+clipart+"","foto","width=600,scrollbars=1,resizable=1");
	windop.focus();
	  }
else {
windop = window.open("foto.html?"+clipart+"","foto","height=550,width=600");
windop.focus();
}
}
function photo(url,w,h) {
	windop = window.open("../foto.php?"+url+"","uvelich","width="+w+",height="+h+",status=1,resizable=1,scrollbars=1");
	windop.focus();
}
function prew_pic(clipart) {
	windop = window.open("foto.html?"+clipart+"","uvelich","scrollbars=1,resizable=1,menubar=1");
	windop.focus();
}
function Help(name) {
	windop = window.open("help/"+name+".php","help","height=270,width=350,scrollbars=1,resizable=1");
		windop.focus();
}

function novost(nom,papka,h,w) {
if (screen.height < 730){
	windop = window.open(""+papka+"/news"+nom+".html","news","width=600,scrollbars=1,resizable=1,menubar=1");
	windop.focus();
	  }
else {
windop = window.open(""+papka+"/news"+nom+".html","news","height=500,width=600,scrollbars=1,resizable=1,menubar=1");
windop.focus();
}
}

function menuover(obj)
{
obj.style.cursor="hand";
obj.className="razdelon";
obj.all.tags('A').item(0).style.color="#ffffff";
}

function menuout(obj)
{
obj.className="razdel";
obj.all.tags('A').item(0).style.color="#333333";
}

function menuclick(obj)
{
window.location.href=obj.all.tags('A').item(0).href;
}

function setCookie(name, value, expdays){
    var SomeDays = expdays * 24 * 60 * 60 * 1000;
	var expDate = new Date();
	expDate.setTime(expDate.getTime() + SomeDays);
	document.cookie = name + "=" + escape(value) + ";expires=" + expDate.toGMTString() + ";path=/";
}