//
// Disable right mouse click Script
// By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
// For full source code, visit http://www.dynamicdrive.com

var message="Az oldalon található anyagok az ezoterikus.hu szerzői jogi védelme alá esnek, másolásukat a törvény bünteti!";

function clickIE4(){
	if (event.button==2){
		alert(message);
		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){
			alert(message);
			return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

//

function felugro()
	{
		alert ("Még nem érhető el ez a szolgáltatás, hamarosan működni fog. Addig is szives türelmét kérjük. Köszönjük.");
	}

function kep_mutat(url,w,h)
	{

		s   = screen;
		s_w = s.width;
		s_h = s.height;

		ablak=window.open('','ablak','width='+w+',height='+h+',alwaysLowered=0,alwaysRaised=0,maximize=0,copyhistory=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
		ablak.document.write("<link rel=stylesheet href='stilus/stilus.css'>");
		ablak.document.write("<body class='hatter' style='margin: 0px;'>");
		ablak.document.write("<img src=" + url + " border='0'>");
		ablak.document.write("</body>");
		ablak.moveTo((s_w-w)/2,(s_h-h)/2);		

	}

function ablaknyit(url,nev,w,h)
	{

		s   = screen;
		s_w = s.width;
		s_h = s.height;

		ablak=window.open(url,nev, ' width='+w+',height='+h+',alwaysLowered=0,alwaysRaised=0,maximize=0,copyhistory=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
		ablak.moveTo((s_w-w)/2,(s_h-h)/2);

	}

function ablaknyitas_tartalommal(tartalom,w,h)
	{

		s   = screen;
		s_w = s.width;
		s_h = s.height;

		ablak=window.open('','ablak','width='+w+',height='+h+',alwaysLowered=0,alwaysRaised=0,maximize=0,copyhistory=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
		ablak.document.write("<link rel=stylesheet href='stilus/stilus.css'>");
		ablak.document.write("<body class='hatter' style='margin: 20px;'>");
		ablak.document.write(tartalom);
		ablak.document.write("</body>");
		ablak.moveTo((s_w-w)/2,(s_h-h)/2);

	}


function kepcsere(img_name,img_src)
	{
	
		document[img_name].src=img_src;
	
	}

var ns6=document.getElementById&&!document.all
var ie=document.all

function ToggleDisplay(oItems1,oItems2)
	{

		if ((oItems1.style.display == "") || (oItems1.style.display == "none"))	{
			oItems1.style.display = "block";
			oItems2.innerHTML = "<img src='kepek/-.gif' border='0'>";
		}	else {
			oItems1.style.display = "none";
			oItems2.innerHTML = "<img src='kepek/+.gif' border='0'>";
		}
		return false;
		
	}

function ToggleDisplay2(oItems)
	{
		

		
	}

function contains_ns6(master, slave)
	{ //check if slave is contained by master
		while (slave.parentNode)
		if ((slave = slave.parentNode) == master)
		return true;
		return false;
	}

function changeto(e,highlightcolor,textcolor)
	{
		source=ie? event.srcElement : e.target
		if (source.tagName=="TR"||source.tagName=="table")
		return
		while(source.tagName!="TD"&&source.tagName!="html")
		source=ns6? source.parentNode : source.parentElement
		if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
		source.style.backgroundColor=highlightcolor;
		source.style.color=textcolor;
	}

function changeback(e,originalcolor,textcolor)
	{
		if
			(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="table")
			return
		else if
			(ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
			return

		if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
			source.style.backgroundColor=originalcolor;
			source.style.color=textcolor;
	}
	
function textchangeto(e,textcolor)
	{
		source=ie? event.srcElement : e.target
		if (source.tagName=="TR"||source.tagName=="table")
		return
		while(source.tagName!="TD"&&source.tagName!="html")
		source=ns6? source.parentNode : source.parentElement
		if (source.style.color!=textcolor&&source.id!="ignore")
		source.style.color=textcolor;
	}

function textchangeback(e,textcolor)
	{
		if
			(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="table")
			return
		else if
			(ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
			return

		if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
			source.style.color=textcolor;
	}
