if(window.opera){document.getElementById("psmiddle").style["backgroundPosition"]="0px -4px";}
else if(document.all){document.getElementById("psmiddle").style["backgroundPosition"]="0px -5px";}
else if(document.getElementById){document.getElementById("psmiddle").style["backgroundPosition"]="0px -8px";}
var divs=document.getElementById("rightmenudiv").getElementsByTagName("div");

var urls=document.URL;
urlsnew=urls.split('/');
if (urlsnew[1]=='undefined')
{
urls=urls.split('?');
if(urls[1] && urls[1]!='undefined' && urls[1]!=''){urls=urls[1];urls=urls.split('action');}
else{urls='home';}
if(urls[1] && urls[1]!='undefined' && urls[1]!=''){urls=urls[1].split('=');urls=urls[1];}
else{urls="home";}
}

for (is=0;is<divs.length;is++)
{
if (divs[is]){
	var divsid=divs[is].id;
	if (divs[is].id==''){divs[is].id="lfmenudiv_"+is};
	if (divs[is].id=='sightsbig' && is==6){divs[is].onmouseover=function (s){CSONhover(this.id,"psmenuitemhovers");};}
	else {divs[is].onmouseover=function (s){CSONhover(this.id,"psmenuitemhover");};}
	if(divsid!=urls){divs[is].onmouseout=function (s){CSONhover(this.id,"psmenuitem");};}
	}
}
	var CS_memnudiv="rightmenudiv";
	if (document.body)
		{
		var selects=document.getElementById(CS_memnudiv).getElementsByTagName("a");
		var CS_HTC="psmenuitemhover";
		for (is=0;is<selects.length;is++)
			{
			if (selects[is].href===document.URL)
				{
				if (document.URL=="http://dentista.perfectsmile.hu/italiano/centro_dentistico/possibilita_di_svago_ungheria.html"){CS_HTC="psmenuitemhovers";}
				if (document.URL=="http://zahnarzt.perfectsmile.hu/deutsch/zahnbehandlung_in_ungarn/ausflugsmoglichkeiten_ungarn_tokaj_sarospatak_die_pussta.html"){CS_HTC="psmenuitemhovers";}
				selects[is].parentNode.parentNode.onmouseout=function (s){CSONhover(this.id,CS_HTC);};
				}
			}
		}


function CSONhover (Hoverelem,Hoverclass){document.getElementById(Hoverelem).className=Hoverclass;}
function openwindow(ezt,mag,szel)
{
window.open('http://www.perfectsmile.hu/php/imageview.php?image='+ezt, 'gs', 'top=200,left=200,height='+szel+',width='+mag, false);
}