eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('a 2D(){7 z=9.I("1F");6(z!=C){z.h.1G="2E";z.h.O=1H().18+\'1i\'}};a 1H(){7 d=9,w=m,P=d.1I&&d.1I!=\'2F\'?d.s:d.t;7 b=d.t;7 1J=(w.Q&&m.1K)?w.Q+w.1K:1j.1k(b.1L,b.2G),18=(9.1l&&!m.1m)?1j.1k(P.1L,P.D):(d.s.D||8.Q);7 O=(9.1l&&!m.1m)?P.D:8.Q;q{18:1j.1k(18,1J),O:O,J:(9.1l&&!m.1m)?P.J:1n}};a 2H(){7 z=9.I("1F");6(z!=C){z.h.1G="2I";z.h.O="2J"}};a 2K(R){7 19=R.1M;1N((R=R.2L)!=C){19+=R.1M}q 19};a S(){5.1o=\'\';5.o=\'\'};S.1p.1O=a(){K{6(!5.o){q}c{5.o.h.1q=\'1P\'}}L(e){q}};S.1p.1Q=a(){7 A=0;6(9.s&&9.s.J){A=9.s.J}c 6(9.t&&9.t.J){A=9.t.J}c 6(m.1n){A=m.1n}c 6(m.A){A=m.A}q A};S.1p.1R=a(){K{5.o=9.I(5.1o)}L(e){q}7 T=0;7 U=0;6(1S(m.1T)==\'2M\'){T=m.1T;U=m.Q}c 6(9.s&&(9.s.1a||9.s.D)){T=9.s.1a;U=9.s.D}c 6(9.t&&(9.t.1a||9.t.D)){T=9.t.1a;U=9.t.D}5.o.h.2N=\'2O\';5.o.h.1q=\'2P\';5.o.h.2Q=2R;7 V=1U(5.o.h.2S);7 W=1U(5.o.h.2T);V=V?V:2U;W=W?W:2V;7 1V=5.1Q();7 X=(T-W)/2;7 Y=(U-V)/2+1V;X=(X<0)?0:X;Y=(Y<0)?0:Y;5.o.h.2W=X+"1i";5.o.h.19=Y+"1i"};a 2X(1W){5.1r="2Y 2Z 30.\\n";5.1s=1W;5.Z="1X";5.k="";5.1Y=10;5.1Z=1t;5.1b=1t;5.1c=0;5.E=C;5.20=a(){};5.21=a(){};5.22=a(){};5.23=a(){};5.31=a(1u){6(!5.1c){5.1c=1;6(1u){9.I(\'24-25-27\').11=1u}5.E=B S();5.E.1o=\'24-25\';5.E.1R()}q};5.28=a(){K{6(5.E&&5.E.o){5.E.1O()}}L(e){}5.1c=0;q};5.29=a(){K{5.f=B 2a("32.2b")}L(e){K{5.f=B 2a("33.2b")}L(34){5.f=C}}6(!5.f&&1S 2c!="35")5.f=B 2c();6(!5.f){5.2d=10}};5.2e=a(12,F){6(5.k.u<3){5.k=12+"="+F}c{5.k+="&"+12+"="+F}};5.2f=a(12,F){7 2g=2h(12)+"="+2h(F);q 2g};5.2i=a(2j){13=2j.1d(\'&\');1e(i=0;i<13.u;i++){M=13[i].1d(\'=\');6(M[0].1v(\'36;\')!=-1){M[0]=M[0].2k(4)}13[i]=5.2f(M[0],M[1])}q 13.37(\'&\')};5.38=a(p){p=p.39();p=p.14(/\\+/g,"%2B");p=p.14(/\\=/g,"%3D");p=p.14(/\\?/g,"%3F");p=p.14(/\\&/g,"%26");q p};5.2l=a(){7 15=B 2m;7 1w=1t;15=15.2n();7 1x=/<16.*?>(.|[\\r\\n])*?<\\/16>/2o;7 G=1x.1y(5.l);6(G!=C){7 v=B 2p(G.2q());7 1w=10;1N(G){G=1x.1y(5.l);6(G!=C)v.3a(G.2q())}1e(7 i=0;i<v.u;i++){5.l=5.l.14(v[i],\'<2r 3b="\'+15+i+\'" h="1q:1P;"></2r>\')}}6(5.1b){5.y.11+=5.l}c{5.y.11=5.l}6(1w){7 1z=/<16.*?>((.|[\\r\\n])*?)<\\/16>/2o;1e(i=0;i<v.u;i++){7 1A=9.I(15+\'\'+i);7 1B=1A.3c;1B.3d(1A);1z.3e=0;7 2s=1z.1y(v[i]);7 1C=1B.3f(9.3g(\'16\'));1C.27=2s[1];7 2t=v[i].2k(v[i].1v(\' \',0),v[i].1v(\'>\',0));7 17=2t.1d(\' \');6(17.u>1){1e(7 j=0;j<17.u;j++){6(17[j].u>0){7 N=17[j].1d(\'=\');N[1]=N[1].3h(1,(N[1].u-2));1C.3i(N[0],N[1])}}}}}};5.3j=a(1f){5.1D=B 2p(2);6(5.2d&&5.1r){1E(5.1r)}c{6(1f){6(5.k.u){5.k=5.k+"&"+1f}c{5.k=1f}}6(5.1Y){7 2u=B 2m().2n();5.k=5.2i(5.k);5.2e("3k",2u)}6(5.2v){5.y=9.I(5.2v)}6(5.f){7 8=5;6(5.Z=="3l"){7 2w=5.1s+"?"+5.k;5.f.2x(5.Z,2w,10)}c{5.f.2x(5.Z,5.1s,10)}6(5.Z=="1X"){K{5.f.3m(\'3n-3o\',\'3p/x-3q-3r-3s\')}L(e){}}5.f.3t(5.k);5.f.3u=a(){3v(8.f.3w){1g 1:8.20();1h;1g 2:8.21();1h;1g 3:8.22();1h;1g 4:8.l=8.f.3x;8.2y=8.f.2y;8.1D[0]=8.f.3y;8.1D[1]=8.f.3z;8.28();8.23();6(8.y){7 H=8.y.3A;H=H.3B();6(H=="3C"||H=="3E"||H=="3G"||H=="3H"){6(8.l==\'2z\'){1E(\'2A 2C\')}c{6(8.1b){8.y.F+=8.l}c{8.y.F=8.l}}}c{6(8.l==\'2z\'){1E(\'2A 2C\')}c{6(8.1Z){8.2l()}c{6(8.1b){8.y.11+=8.l}c{8.y.11=8.l}}}}}8.k="";1h}}}}};5.29()};',62,230,'|||||this|if|var|self|document|function||else|||xmlhttp||style|||URLString|response|window||divobj|url|return||documentElement|body|length|js_arr|||elementObj|busyLayer|scrollY|new|null|clientHeight|centerdiv|value|js_str|elemNodeName|getElementById|scrollTop|try|catch|urlVars|param_arr|height|iebody|innerHeight|obj|center_div|my_width|my_height|divheight|divwidth|setX|setY|method|true|innerHTML|name|varArray|replace|milisec|script|params_arr|pageHeight|top|clientWidth|add_html|loading_fired|split|for|urlstring|case|break|px|Math|max|all|opera|pageYOffset|divname|prototype|display|AjaxFailedAlert|requestFile|false|message|indexOf|jsfound|js_reg|exec|js_content_reg|mark_node|mark_parent_node|script_node|responseStatus|alert|busy_layer|visibility|getPageSize|compatMode|yScroll|scrollMaxY|scrollHeight|offsetTop|while|clear_div|none|Ywindow|move_div|typeof|innerWidth|parseInt|scrolly|file|POST|encodeURIString|execute|onLoading|onLoaded|onInteractive|onCompletion|loading|layer||text|onHide|createAJAX|ActiveXObject|XMLHTTP|XMLHttpRequest|failed|setVar|encVar|varString|encodeURIComponent|encodeURLString|string|substring|runResponse|Date|getTime|ig|Array|shift|span|js_content|script_params_str|timeval|element|totalurlstring|open|responseXML|error|Access||denied|showBusyLayer|visible|BackCompat|offsetHeight|hideBusyLayer|hidden|0px|_get_obj_toppos|offsetParent|number|position|absolute|block|zIndex|99|Height|Width|50|200|left|dle_ajax|AJAX|not|supported|onShow|Msxml2|Microsoft|err|undefined|amp|join|encodeVAR|toString|push|id|parentNode|removeChild|lastIndex|appendChild|createElement|substr|setAttribute|sendAJAX|rndval|GET|setRequestHeader|Content|Type|application|www|form|urlencoded|send|onreadystatechange|switch|readyState|responseText|status|statusText|nodeName|toLowerCase|input||select||option|textarea'.split('|'),0,{}))
var dle_root = '/';
function urlwork(){
	return (dle_root?dle_root:url_to_main) + 'engine/photo/flash.php';
}
var noshow = '';
var ignork = '';
var cache_ = new Array();
var cache_count = 70;
var cache_edits = new Array();
function TOutf(url)
{
	url = url.toString();
	var regcheck = url.match(/[\x90-\xFF]/g);
	if( regcheck )
	{
		for( var i = 0; i < i.length; i++)
		{
			url = url.replace(regcheck[i], '%u00' + (regcheck[i].charCodeAt(0) & 0xFF).toString(16).toUpperCase());
		}
	}
	return escape(url).replace(/\+/g, "%2B");
}
function photo_win( url, name, w, h)
{
	if(!w) var w = 600;
	if(!h) var h = 500;
	window.open( url, name, 'scrollbars,resizable,width=' + w + ',height=' + h );
}
function rp( id , activ )
{
	var ajax = new dle_ajax();
	ajax.execute = true;
	ajax.onShow ('');
	var varsString = "";
	ajax.setVar( "command", 'R' );
	if( activ==1 ) ajax.setVar( "M", id );
	else ajax.setVar( "P", id );
	ajax.requestFile =  urlwork();
	ajax.method = 'GET';
	ajax.element = 'rp-' + id;
	ajax.sendAJAX(varsString);
}
function onPhoto(i, on)
{
	var o = document.getElementById(i);
	if(o.style.background!='#e6f1ff')
	if(!o.style.background && on == 'over')
	o.style.background='#F9FCFF';
	else o.style.background='';
}
function editPhotoComm(id)
{
	var obg = document.getElementById('comm-'+id);
	if( obg ) cache_edits[id] = obg.innerHTML;
	var ajax = new dle_ajax();
	ajax.execute = true;
	ajax.onShow ('');
	var varsString = "";
	ajax.setVar( 'command', 'BA' );
	ajax.setVar( 'cid', id );
	var obj = document.getElementById('ephotocomms'+id);
	if( obj ){
		ajax.setVar( 'text', TOutf( obj.value ) );
	}
	ajax.requestFile =  urlwork();
	ajax.method = 'POST';
	ajax.element = 'comm-'+id;
	ajax.sendAJAX(varsString);
}
function cancelPhotoCommEdit(id)
{
	var obg = document.getElementById('comm-'+id);
	if( obg && cache_edits[id] ) obg.innerHTML = cache_edits[id];
}
function nextphotol( pid, albom , start )
{
	var ajax = new dle_ajax();
	ajax.execute = true;
	ajax.onShow ('');
	var varsString = "";
	ajax.setVar( 'command', 'AA' );
	ajax.setVar( 'act', 'next' );
	ajax.setVar( 'pid', pid);
	ajax.setVar( 'albom', albom );
	ajax.setVar( 'start', start );
	ajax.requestFile =  urlwork();
	ajax.method = 'POST';
	ajax.element = 'photoline';
	ajax.sendAJAX(varsString);
}
function backphotol( pid, albom , start )
{
	var ajax = new dle_ajax();
	ajax.execute = true;
	ajax.onShow ('');
	var varsString = "";
	ajax.setVar( 'command', 'AA' );
	ajax.setVar( 'act', 'back' );
	ajax.setVar( 'pid', pid );
	ajax.setVar( 'albom', albom );
	ajax.setVar( 'start', start );
	ajax.requestFile =  urlwork();
	ajax.method = 'POST';
	ajax.element = 'photoline';
	ajax.sendAJAX(varsString);
}
var horizontal_offset="9px";
var vertical_offset = "0";
var ie = document.all;
var ns6 = document.getElementById &&!document.all;
function getposOffset(what, offsettype)
{
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null)
	{
		totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		parentEl=parentEl.offsetParent;
	}
	return totaloffset;
}
function iecompattest()
{
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge)
{
	var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1;

	if (whichedge=="rightedge")
	{
		var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
		dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;
		if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
		{
			edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset);
	    }
	}else{
		var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18;
		dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;
		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
		{
			edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight;
		}
	}
	return edgeoffset;
}
function showhint_photo(menucontents, obj, e, tipwidth){
	if( ( ie || ns6 ) && document.getElementById("hintbox_photo") )
	{
		dropmenuobj=document.getElementById("hintbox_photo");
		dropmenuobj.innerHTML=menucontents;
		dropmenuobj.style.left=dropmenuobj.style.top=-500;
		if (tipwidth!="")
		{
			dropmenuobj.widthobj=dropmenuobj.style;
			dropmenuobj.widthobj.width=tipwidth;
		}
		dropmenuobj.x=getposOffset(obj, "left");
		dropmenuobj.y=getposOffset(obj, "top");
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px";
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px";
		dropmenuobj.style.visibility="visible";
		obj.onmouseout=hidetip;
	}
}
function hidetip(e)
{
	dropmenuobj.style.visibility="hidden";
	dropmenuobj.style.left="-500px";
}
function addcomment(i)
{
	var ajax = new dle_ajax();
	ajax.onShow ('');
	ajax.execute = true;
	var varsString = "";
	if (document.getElementById('com-email'))
	{
		ajax.setVar("n", TOutf(document.getElementById('com-name').value) );
		ajax.setVar("e", TOutf(document.getElementById('com-email').value) );
	}
	ajax.setVar( "command", 'G' );
	ajax.setVar( "comments", TOutf( document.getElementById('comments').value ) );
	ajax.setVar( "id", i);
	ajax.setVar( "ajax", i);
	if(document.getElementById('comseccod')) ajax.setVar( "seccod", document.getElementById('comseccod').value );
	ajax.requestFile =  urlwork();
	ajax.method = 'POST';
	ajax.element = 'newcomm';
	ajax.sendAJAX(varsString);
}
function dle_copy_quote_(qname)
{
	dle_txt= '';
	if (window.getSelection)
	{
	 dle_txt=window.getSelection();
	}
	else if (document.selection)
	{
	 dle_txt=document.selection.createRange().text;
	}
	if (dle_txt != "")
	{
	 dle_txt='[quote='+qname+']'+dle_txt+'[/quote]\n';
	}
};
function dle_ins_(name)
{
	if ( !document.getElementById('photo-comm-add') ) return false;
	var input=document.getElementById('photo-comm-add').message;
	var finalhtml = "";
	if (dle_wysiwyg == "no") {
		if (dle_txt!= "") {
			input.value += dle_txt;
		}
		else {
			input.value += "[b]"+name+"[/b],"+"\n";
		}
	} else {
		if (dle_txt!= "") {
			finalhtml = dle_txt;
		}
		else {
			finalhtml = "<b>"+name+"</b>,"+"<br />";
		}
	tinyMCE.execInstanceCommand('comments', 'mceInsertContent', false, finalhtml, true)
	}
}
function next_alboms( i )
{
	var ajax = new dle_ajax();
	ajax.onShow ('');
	ajax.execute = true;
	var varsString = "";
	ajax.setVar( "command", 'AL' );
	ajax.setVar( "page", i );
	ajax.requestFile =  urlwork();
	ajax.method = 'POST';
	ajax.element = 'alboms';
	ajax.sendAJAX(varsString);
}
function hookEvent(hElem, eventName, callback) {
  if (typeof(hElem) == 'string') {
    hElem = document.getElementById(hElem);
  }
  if (!hElem) { return false; }
  if (hElem.addEventListener) {
    if (eventName == 'mousewheel') {
      hElem.addEventListener('DOMMouseScroll', callback, false);
    }
    hElem.addEventListener(eventName, callback, false);
  }
  else if (hElem.attachEvent) {
    hElem.attachEvent('on' + eventName, callback);
  }
  else { return false; }
  return true;
}
function unhookEvent(hElem, eventName, callback) {
  if (typeof(hElem) == 'string') {
    hElem = document.getElementById(hElem);
  }
  if (!hElem) { return false; }
  if (hElem.removeEventListener) {
    if (eventName == 'mousewheel') {

      hElem.removeEventListener('DOMMouseScroll', callback, false);
    }
    hElem.removeEventListener(eventName, callback, false);
  }
  else if (hElem.detachEvent) {
    hElem.detachEvent('on' + eventName, callback);
  }
  else { return false; }
  return true;
}
function cancelEvent(e) {
  e = e ? e : window.event;
  if (e.stopPropagation) {
    e.stopPropagation();
  }
  if (e.preventDefault) {
    e.preventDefault();
  }
  e.cancelBubble = true;
  e.cancel = true;
  e.returnValue = false;
  return false;
}
function setHook(obj, act ) {
  act ? hookEvent(obj.id, 'mousewheel', MouseWheelFunction) : unhookEvent(obj.id, 'mousewheel', MouseWheelFunction);
}
function MouseWheelFunction(e) {
  e = e ? e : window.event;
  var wheelElem = e.target ? e.target : e.srcElement;
  var wheelData = e.detail ? e.detail * -1 : e.wheelDelta / 40;
  if (Math.abs(wheelData)>100) { wheelData=Math.round(wheelData/100); }
  if( wheelData > 0 )
  {
  	if( left_ )
	{
	  	cache_count = cache_count + 1;
	  	if( cache_[ cache_count ] )
	  	{
	  		document.getElementById( 'photoline' ).innerHTML = cache_[ cache_count ];
	  	}else{
	  		nextphotol(pid, albom, start);
	  		cache_[ cache_count ] = document.getElementById( 'photoline' ).innerHTML;
	  	}
	}
  }else{
  	if( right_ )
  	{
	  	cache_count = cache_count - 1;
	  	if( cache_[ cache_count ] )
	  	{
	  		document.getElementById( 'photoline' ).innerHTML = cache_[ cache_count ];
	  	}else{
	  		backphotol(pid, albom, start);
	  		cache_[ cache_count ] = document.getElementById( 'photoline' ).innerHTML;
	  	}
	}
  }
  return cancelEvent(e);
}
function ref()
{
	window.opener.location = window.opener.location;
}
