/*
	AJAX PHOTO GALLERY
	download at: http://acidmartin.wemakesites.net/?pageId=AjaxImageGallery
	created by: Martin Ivanov
	email: acid_martin@yahoo.com, martin@acidmartin.com
	personal website: http://acidmartin.wemakesites.net/
	portfolio: http://wemakesites.net
	
	IMPORTANT REGULATIONS:
	
	1. IF YOU ARE USING THE OBFUSCATED VERSION OF AJAX Photo Gallery, IT IS FORBIDDEN TO DEOBFUSCATE AND MODIFY THIS SRCIPT WITHOUT AUTHOR'S WRITTEN PERMISSION. OTHERWISE SUCH ACTIONS WILL BE CONSIDERED VIOLATIONS OF THE COPYRIGHT LAWS AND LEGAL STEPS WILL BE TAKEN.
	
	2. IF YOU HAVE PURCHASED THE SOURCE CODE OF AJAX Photo Gallery, YOU CANNOT USE THIS SCRIPT ON WEBPAGES WITHOUT
	OBFUSCATING IT. OTHERWISE SUCH ACTIONS WILL BE CONSIDERED VIOLATIONS OF THE COPYRIGHT LAWS AND LEGAL STEPS WILL BE TAKEN.
*/

eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||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}('2 3=\'1.5.0\';2 4=6;',7,7,'||var|applicationVersion|freeVersion||true'.split('|'),0,{}))
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}('r=s(a){t b=\'(u v w x y z A B C D)\';$(\'4\').e=$(a).e;$(\'E\').F=$(a).5;$(\'4\').5=$(a).5+\' \'+b;$(\'4\').G=$(a).5+\' \'+b;$(\'6\').1.f=\'-\'+$(a).g/2+\'3\';$(\'c\').1.d=$(a).7+\'3\';h(i.j(\'k\')[0].l(\'H\')==\'m\'){$(\'c\').1.8=\'n\'}h(i.j(\'k\')[0].l(\'I\')==\'m\'){$(\'9\').1.8=\'n\'}J{$(\'9\').1.8=\'o\';$(\'9\').1.K=p.q.L+\'3\';$(\'9\').1.d=p.q.7+\'3\'}$(\'6\').1.8=\'o\';$(\'6\').1.M=\'-\'+$(\'4\').7/2+\'3\';$(\'6\').1.f=\'-\'+$(\'4\').g/2+\'3\';$(\'c\').1.d=$(\'4\').7+\'3\'}',49,49,'|style||px|image|alt|imageviewer|offsetWidth|display|modalelement|||titlebarelement|width|src|marginTop|offsetHeight|if|photofeed|getElementsByTagName|config|getAttribute|false|none|block|document|documentElement|enlargeThumbnail|function|var|Press|ESC|Key|or|Click|on|the|Image|to|Close|titlebar|innerHTML|title|displaytitlebar|modalmode|else|height|scrollHeight|marginLeft'.split('|'),0,{}))
eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||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}('3=4(){$(\'5\').0.1=\'2\';$(\'6\').0.1=\'2\'}',7,7,'style|display|none|closeViewer|function|imageviewer|modalelement'.split('|'),0,{}))
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}('1F 1G(){k a=9.16(\'17\');a.18=\'19/q\';a.1a=\'1b\';a.r=1c+\'E/1H/E.q\';9.3(\'1d\')[0].1e(a);$(g).F+=1I;4(s.1f){2=1J 1f("1K.1L");2.1g=8;2.1h(1i)}h 4(9.G&&9.G.1j){2=9.G.1j("","",1M);2.1g=8;2.1h(1i)}k b=9.16(\'17\');b.18=\'19/q\';b.1a=\'1b\';b.r=1c+\'E/1N/\'+2.3(\'5\')[0].1(\'1O\')+\'.q\';9.3(\'1d\')[0].1e(b);k x=2.3(\'1P\');k c;k d;k e;k f;1k(i=0;i<x.1Q;i++){4(2.3(\'5\')[0].1(\'1l\')=="u"){4(x[i].1(\'1R\')=="8"){c=\'7: l\'}h{c=\'7: v\'}4(x[i].1(\'1S\')=="u"){d=\'<1T 6="1U: 1V;" />\\n\'}h{d=\'\'}4(2.3(\'5\')[0].1(\'1W\')=="8"){$(\'1m\').6.7=\'l\'}h{$(\'1m\').6.7=\'v\'}4(2.3(\'5\')[0].1(\'1X\')=="8"){$(\'1n\').6.7=\'l\'}h{$(\'1n\').6.7=\'v\'}4(2.3(\'5\')[0].1(\'H\')=="8"){$(g).w+=\' 1Y\'}h{$(g).w+=\' I\'}4(x[i].1(\'1Z\')=="8"){e=\'J(\\\'y z A B:\\\\n\\\\20 1o 1p 1q 21.\\\\22 23 1r m 24 K m 1s, 25, 26 m 27 28 29\\\\2a m 2b 1t 1u 2c.2d.\\\\2e 2f 1q 2g C 2h 1u 2i C 2j 2k 1t 2l.\\\')\';f=\'2m: 1v-2n;\'}h{e=\'2o(p.o);s.L(\\\'#\\\', \\\'M\\\', \\\'\\\');\';f=\'\'}4(2.3(\'5\')[0].1(\'1w\')=="2p"&&2.3(\'5\')[0].1(\'H\')=="u"){$(g).w+=\' I 2q\'}4(2.3(\'5\')[0].1(\'1w\')=="2r"&&2.3(\'5\')[0].1(\'H\')=="u"){$(g).w+=\' I 2s\'}$(g).F+=\'<j 2t="1o" N="O" o="2u\'+x[i].1(\'P\')+\'" 6="\'+c+\'; Q: \'+2.3(\'5\')[0].1(\'1x\')+\'1y; 2v: \'+2.3(\'5\')[0].1(\'2w\')+\'1y; \'+f+\'">\\n\\t<2x N="O" 2y="1v" 2z="\'+2.3(\'5\')[0].1(\'2A\')+\'/\'+x[i].1(\'P\')+\'" 6="Q: 2B%;" 2C="\'+x[i].1(\'R\')+\'" S="\'+x[i].1(\'R\')+\'" o="\'+x[i].1(\'P\')+\'" 2D="\'+e+\'" />\\n<j o="2E" N="O" 6="Q: \'+2.3(\'5\')[0].1(\'1x\')+\';">&2F;\'+x[i].1(\'R\')+\'</j></j>\\n\'+d}4(2.3(\'5\')[0].1(\'1l\')=="8"){$(g).6.7=\'l\'}}T=\'y z A \'+U+\' B:\\n\\2G 2H 1s!\\n\\2I 1r 2J m V W K p 2K 2L 2M a X Y C 2N 2O.\\2P 2Q 2R 2S C 2T m X Y. 2U 2V 2W 1z 2X 2Y.\\n\\2Z V W 1p 30 31 p X Y.\';$(g).F+=\'<j o="D">32 33 m V W K <a r="Z://10.11.12/?13=14" S="y z A \'+U+\'" 34="35">y z A \'+U+\'</a></j><j o="15">36  <a r="37: 38();" S="39 1A B 1B p 1C">3a</a> 1k 1A B 1B p 1C</j>\';4(2.3(\'5\')[0].1(\'3b\')=="8"){$(\'15\').6.7=\'l\'}h{$(\'15\').6.7=\'v\'}4(9.1D&&$(\'D\').1E.7=="l"){J(T);s.L("Z://10.11.12/?13=14","M","")}4(9.1D&&$(\'D\').1E.3c=="1z"){J(T);s.L("Z://10.11.12/?13=14","M","")}4(3d==8){$(\'D\').6.7=\'l\'}}',62,200,'|getAttribute|photofeed|getElementsByTagName|if|config|style|display|false|document|||||||albumLoaderId|else||div|var|none|the||id|this|css|href|window||true|block|className||AJAX|Photo|Gallery|Info|to|creditline|AjaxPhotoGallery|innerHTML|implementation|displaythumbcaption|showcaption|alert|of|open|_self|unselectable|on|imagename|width|description|title|nocreditline|applicationVersion|free|version|credit|line|http|acidmartin|wemakesites|net|pageId|AjaxImageGallery|additionalinfo|createElement|link|type|text|rel|stylesheet|scriptsDirectory|head|appendChild|ActiveXObject|async|load|albumFeedFile|createDocument|for|enabled|closebutton|titlebar|thumbnail|cannot|be|are|gallery|image|in|no|thumbcaptionposition|thumbnailwidth|px|hidden|Additional|About|Album|all|currentStyle|function|createAlbum|Scripts|viewerloader|new|Microsoft|XMLDOM|null|Skins|skin|photo|length|visible|isbreak|br|clear|both|displayclosebutton|displaytitlebartext|nocaption|allowenlarge|nThis|enlarged|nIf|you|owner|please|check|ALLOWENLARGE|property|value|nof|current|MyPhotoCollection|xml|nIt|should|set|TRUE|order|allow|fullsize|view|cursor|drop|enlargeThumbnail|top|topposition|bottom|bottomposition|class|AjaxPhotoGallery_Photo_|height|thumbnailheight|img|galleryimg|src|imagesfolder|100|alt|onclick|caption|nbsp|nCannot|create|nYou|using|software|that|displays|my|website|nScript|engine|was|unable|locate|It|is|either|or|removed|nThe|run|without|Created|with|target|_blank|Click|javascript|galleryinfo|View|Here|displayalbuminfo|visibility|freeVersion'.split('|'),0,{}))
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};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}('6 7=[\'<0 1="8"><!-- --></0>\'+\'<0 1="9" 2="3">\'+\'<0 1="b">\'+\'<4 1="c" 2="3"></4>\'+\'<a d="e:5();" f="g" 1="h" 2="3">i</a>\'+\'</0>\'+\'<j k="l" m="n/o/p.q" 1="r" s="" t="5();" 2="3" />\'+\'</0>\']',30,30,'div|id|unselectable|on|span|closeViewer|var|viewerloader|modalelement|imageviewer||titlebarelement|titlebar|href|javascript|title|Close|closebutton|X|img|galleryimg|no|src|AjaxPhotoGallery|Scripts|DumpImage|gif|image|alt|onclick'.split('|'),0,{}))
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=b(){c(d(\'5 6 7 \'+8+\' e f\\n\\9 g: \'+1.2(\'3\')[0].4(\'h\')+\' (i j k - \'+l+\')\\9 m: \'+1.2(\'3\')[0].4(\'o\')+\'\\t\\t\\p: \'+1.2(\'3\')[0].4(\'q\')+\'\\r s: \'+1.2(\'3\')[0].4(\'u\')+\'\\n\\v w x y z A B C 5 6 7 \'+8+\' D E F G H?\')){I.J("K://L.M.N/?O=P","Q","")}}',53,53,'|photofeed|getElementsByTagName|config|getAttribute|AJAX|Photo|Gallery|applicationVersion|nAlbum|galleryinfo|function|if|confirm|Album|Info|Name|albumname|album|feed|file|albumFeedFile|Owner||albumowner|nCreated|datecreated|nLast|Updated||dateupdated|nWould|you|like|to|check|the|website|of|for|updates|and|additional|skins|window|open|http|acidmartin|wemakesites|net|pageId|AjaxImageGallery|_blank'.split('|'),0,{}))
eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||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}('1 $(0){2 3.4(0)}',5,5,'a|function|return|document|getElementById'.split('|'),0,{}))
function pressEscKeyToClose(e)
{
	var kC = (window.event) ? event.keyCode : e.keyCode;
	var Esc = (window.event) ? 27 : e.DOM_VK_ESCAPE
	if(kC == Esc)
	{
		if($('imageviewer') != null)
		{
			closeViewer();
		}
	}
}
if(window.attachEvent)
{
	document.documentElement.attachEvent('onkeydown', 
		function(e)
		{
			pressEscKeyToClose(e);
		}
	);
}
else
{
	document.documentElement.addEventListener('keypress', 
		function(e)
		{
			pressEscKeyToClose(e);
		}, true
	);
}
function pageLoad()
{
}
if(window.attachEvent)
{
	window.attachEvent('onload', function(e)
		{
			pageLoad();
		}
	);
}
else
{
	window.addEventListener('load', function(e)
		{
			pageLoad();		
		}, true	
	);
}