//feltetel nelkul lecserele arguments[0]-t arguments[1]-re
function cserel() {
	if (document.images) {
		document.images[cserel.arguments[0]].src=cserel.arguments[1];
	}
}

//ha folemegyunk valamely teruletnek es a mostani kep neveben van red, lecsereljuk arguments[0]-ra
function lecserel() {
	if (document.images) {
		if (document.images.nagykep.src.indexOf('red')!=-1) {
			document.images.nagykep.src=lecserel.arguments[0];
		}
	}
}

//ha raklikkelunk valamelyik teruletre es van red, lecsereljuk arguments[0]-ra
//ha raklikkelunk, es nincs red, visszaallitjuk az eredetit (arguments[1])
function kicserel() {
	if (document.images) {
		if (document.images.nagykep.src.indexOf('red')!=-1) {
			document.images.nagykep.src=kicserel.arguments[0];
		} else {
			document.images.nagykep.src=kicserel.arguments[1];
		}
	}
}




// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 0;
PositionY = 0;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 1000;
defaultHeight = 600;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=auto,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=auto,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="auto" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="auto" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block" onclick="document.close()"></body></html>');
close();		
}}


function nagykep() {
	popImage(nagykep.arguments[0],'megközelíthetőség');
}

/*
var kepablak=" ";
var infoablak=" ";

function nagykep() {
	kep=new Image();
	kep.src=nagykep.arguments[0];
	
	sz=parseInt(kep.width)-0;
	m=parseInt(kep.height)+0;

	tul1="width=150,height=50,location=no,status=no,directories=no,toolbar=no,scrollbar=auto,menubar=no,resize=no,top=0,left=0";
	infoablak=window.open("","infoablak",config=tul1);
	infoablak.document.write("<html>");
	infoablak.document.write("<head><title>Kép</title></head><body>");
	infoablak.document.write("sz, m: ",sz," ",m,"<br>");
	infoablak.document.write("width, height: ",kep.width," ",kep.height,"<br>",nagykep.arguments[0]);
	infoablak.document.write("</body>");
	infoablak.document.write("</html>");
	infoablak.document.close()
	infoablak.focus()

	if (kep.width>1000||kep.height>650) {
		if (650/kep.height*kep.width>1000) {
			kep.height=1000/kep.width*kep.height;kep.width=1000;
		} else {
			kep.width=650/kep.height*kep.width;kep.height=650;
		}
	}

	if (kepablak.open) { kepablak.close(); }
	tul="width="+kep.width+",height="+kep.height+",location=no,status=no,directories=no,toolbar=no,scrollbar=auto,menubar=no,resize=no,top=0,left=0";
	kepablak=window.open("","kepablak",config=tul);
	kepablak.document.write("<html>");
	kepablak.document.write("<head><title>Kép</title></head>");
	kepablak.document.write("<body marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor=#000000>");
	kepablak.document.write("<center><a href='#' onClick='self.close()'><img src='"+nagykep.arguments[0]+"' border=0 width=",kep.width," height=",kep.height,"><br>");
	kepablak.document.write("<font size=-1 color=#ff8811>Bezárás</font></a></center>");
	kepablak.document.write("</body>");
	kepablak.document.write("</html>");
	kepablak.document.close()
	kepablak.focus()
}*/
