function makeWindow(file)
{
	scr_width = screen.width;
   	scr_height = screen.Height;
   	
   	w = 680;
	h = 250;

   	sx = Math.round((scr_width - w) / 2);
   	sy = Math.round((scr_height - h) / 2) - 50; // Taip dizaineriai liepe
   	features = "width=" + w + ", height=" + h + ", screenx=" + sx + ", screeny=" + sy + 
   	           ", left=" + sx + ", top= " + sy + ", scrollbars= YES"; 

   	vardass = "pop" + Math.round(Math.random(100) * 100);
   	window.open(file, vardass, features);
}
function makeWindow_new(file)
{
	scr_width = screen.width;
   	scr_height = screen.Height;
   	
   	w = 283;
	h = 210;

   	sx = Math.round((scr_width - w) / 2);
   	sy = Math.round((scr_height - h) / 2) - 50; // Taip dizaineriai liepe
   	features = "width=" + w + ", height=" + h + ", screenx=" + sx + ", screeny=" + sy + 
   	           ", left=" + sx + ", top= " + sy + ", scrollbars= YES"; 

   	vardass = "pop" + Math.round(Math.random(100) * 100);
   	window.open(file, vardass, features);
}
function popupWindow(file)
{
	makeWindow("pop_hotel.php?hid="+file);
}



function keisk(vardas,kl_vardas)
	{
		document.getElementById(vardas).className=kl_vardas;
	}
function perjunk(linkas)
	{
		self.location=linkas;
	}
function changeMenu(which)
	{
		keisk('bg'+which,'pirmasviddmenu_hover');
		keisk('tx'+which,'pirmasviddmenutext_hover');
		keisk('ta'+which,'pirmasviddmenutarp_hover');
		keisk('de'+which,'pirmasviddmenudes_hover');
		keisk('tit'+which,'meniukai2');
	}
function unchangeMenu(which)
	{
		keisk('bg'+which,'pirmasviddmenu');
		keisk('tx'+which,'pirmasviddmenutext');
		keisk('ta'+which,'pirmasviddmenutarp');
		keisk('de'+which,'pirmasviddmenudes');
		keisk('tit'+which,'meniukai');
	}
function changeMenu1(which)
	{
		keisk('bgt'+which,'antrasviddmenu_hover');
		keisk('txt'+which,'antrasviddmenutext_hover');
		keisk('tat'+which,'antrasviddmenutarp_hover');
		keisk('de'+which,'antrasviddmenudes_hover');
		keisk('tit'+which,'meniukai2');
	}
function unchangeMenu1(which)
	{
		keisk('bgt'+which,'antrasviddmenu');
		keisk('txt'+which,'antrasviddmenutext');
		keisk('tat'+which,'antrasviddmenutarp');
		keisk('de'+which,'antrasviddmenudes');
		keisk('tit'+which,'meniukai');
	}
function virsusplotis(count,count1)
	{
		for (i=1; i<=count; i++)
			{
				o1 =document.getElementById('ta'+i); 
				o1.style.width=i*2;
	  		}
	  	for (i=1; i<=count1; i++)
			{
				o2 =document.getElementById('tat'+(i+count)); 
				o2.style.width=i*2+3;
	  		}
	}
			pics = new Image();
    		pics.src = "images/vmenuhovervid.gif";
function show(name)
	{
		var x = getObj(name);
		x.visibility = 'visible';
	}
function hide(name)
	{
		var x = getObj(name);
		x.visibility = 'hidden';
	}

function aukstis(skai,skai1)
	{
		vvv =document.getElementById('bgt'+(skai+1));
		xxx = vvv.offsetTop;
		for (i=0; i<skai; i++)
			{
	  			x = getObj('la'+(i+1));
				x.top=77+(i*16);
	  		}
	  	for (i=0; i<skai1; i++)
	  		{
				x = getObj('la'+(i+skai+1));
				if (navigator.appName=="Netscape") 
					{ 
						x.top=xxx+(i*16); 
					}
				else x.top=xxx+15+(i*16);
	  		}
	}
	
function getObj(name)
	{
		if (document.getElementById)
  			{
    			return document.getElementById(name).style;
  			}
  		else if (document.all)
  			{
    			return document.all[name].style;
  			}
  		else if (document.layers)
  			{
    			return document.layers[name];
  			}
  		else return false;
	}
function img_open(plotis, aukstis, paveixliukas)
   {
     settings="toolbar=no,location=no,directories=no,"+"status=no,menubar=no,scrollbars=no,"+"resizable=no,width="+plotis+",height="+aukstis;
     htmlaz="<HTML>\n";
     htmlaz=htmlaz+"<head>\n";
     htmlaz=htmlaz+"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1257;\">\n";
     htmlaz=htmlaz+"<title>DELTA</title>\n";
     htmlaz=htmlaz+"</head>\n";
     htmlaz=htmlaz+"<body topmargin=0 leftmargin=0 onBlur=self.close(); background=\"images/fonelis.jpg\" bgcolor=#343275>\n";
     htmlaz=htmlaz+"<img src="+paveixliukas+" width="+plotis+" height="+aukstis+">\n";
     htmlaz=htmlaz+"</body>\n";
     htmlaz=htmlaz+"</html>";
     a=window.open('', '', settings);
     a.document.write(htmlaz);
     return a;
     
   }
   
   
function aukstis_lit(count1,skai)
	{
		vvv =document.getElementById('bgt'+(skai+1));
		xxx = vvv.offsetTop;
		for (i=0; i<skai; i++)
			{
	  			x = getObj('la'+(i+1+count1));
				x.top=77+(i*16);
	  		}
	}
	
function virsusplotis_lit(count1, count)
	{
		for (i=1; i<=count; i++)
			{
				o1 =document.getElementById('tat'+(i+count1)); 
				o1.style.width=i*2;
	  		}
	}