menuOn = new Image()
menuOn.src = "_img/menu_line_on.jpg"

menuOff = new Image()
menuOff.src = "_img/menu_line_off.jpg"
 
abu1_on = new Image()
abu1_on.src = "_img/abu1_on.jpg"

abu1_off = new Image()
abu1_off.src = "_img/abu1_off.jpg"

abu_on = new Image()
abu_on.src = "_img/abu_on.jpg"

abu_off = new Image()
abu_off.src = "_img/abu_off.jpg"

more_on = new Image()
more_on.src = "_img/more_on.jpg"

more_off = new Image()
more_off.src = "_img/more_off.jpg"

print_on = new Image()
print_on.src = "_img/print_on.jpg"

print_off = new Image()
print_off.src = "_img/print_off.jpg"

function rollOver (imgName)
{
	imgName.style.backgroundImage = "url("+eval("menuOn" + ".src")+")";
}

function rollOut (imgName)
{
	imgName.style.backgroundImage = "url("+eval("menuOff" + ".src")+")";
} 

function rollOver_(imgName)
{
	document[imgName].src = eval(imgName + "_on.src");
}

function rollOut_(imgName)
{
	document[imgName].src = eval(imgName + "_off.src");
}

function rollOverM(imgName)
{
	document[imgName].src = eval("more_on.src");
}

function rollOutM(imgName)
{
	document[imgName].src = eval("more_off.src");
}




function SelectFirst(sel)
{
	for(i=0; i<document.forms[0].elements.length; i++)
	{
		if((document.forms[0].elements[i] != sel) && (document.forms[0].elements[i].name != 'tipas'))
		{
			document.forms[0].elements[i].selectedIndex=0;
		}
	}
}



var winsettings = 'toolbar=no, location=no, directories=no, status=no, menubar=no, copyhistory=no, ';
function Photos(pageID, estateID){ cyber=window.open("photos.php?pageID="+pageID+"&estateID="+estateID, 'photos', winsettings + 'resizable=no,scrollbars=no,width=480,height=380') }
function Popup(){ cyber=window.open("popup.php", 'pop', winsettings + 'resizable=no,scrollbars=no,width=480,height=380') }
function Print(id, lang){ cyber=window.open("print.php?id="+id+"&lang="+lang, 'print', winsettings + 'resizable=no,scrollbars=yes,width=620,height=480') }
function Print_(id, lang){ cyber=window.open("print_.php?id="+id+"&lang="+lang, 'print', winsettings + 'resizable=yes,scrollbars=yes,width=750,height=580') }




