﻿/*--------------------------------------------------------------
# Web Gallery powered by Pixelide.com
# Copyright (C) 2009 Pixelide Inc. All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.pixelide.com
# Support: support@pixelide.com 
---------------------------------------------------------------*/

/*
Insert this script at bottom of website
before </body> tag, or after <div id="px_gallery_app_load_in_here"></div>

Pixelide Images.xml FTP export Gallery to any website:
JavaScript must be enabled in browsers
Tested in Firefox 2, IE 7+, Safari 2+
*/

/*
#####Example of settings values#####
// large TN path, find + replace values:
var px_gallery_find              = '/beauty/';
var px_gallery_replace           = '/joomla/px/beauty/';
// --------------------------------------------------------------------------
// How to use value 1 : yes, 0 : No
var px_set_show_lb_title       = 1; // show Lightbox title
var px_set_show_lb_qty         = 1; // show image qty next to Lightbox title
var px_set_show_gallery_title  = 1; // show Gallery title
var px_set_show_gallery_caption= 1; // show Gallery Images caption
var px_set_show_gallery_bottom = 1; // show gallery title at Bottom or Top of cover image (0 : top of image, 1 : bottom)
var px_set_show_lb_bottom      = 1; // show lightbox title at Bottom or Top of cover image (0 : top of image, 1 : bottom)
var px_set_show_lb_dd          = 1; // show lightbox in a dropdown navigation
var px_set_show_lb_pn          = 1; // show Prev / Next LB links navigation
var px_set_view_grid           = 1; // show lb cover images as gird (1), or as scroll bar (0)
var px_set_show_lb_head_title  = 1; // Show Lightbox Title when viewing a Lightbox content
var px_set_hover_opacity = 0.5; 	// values to use 0 = off, 0.1 = lowest opacity, 1 full opacity
	
**********/

var px_domain_key = 'tC¾¼¨wØ¨Ð×¦yIxC¥ti`c_­|¥tZi´{HuD³×¢í¼ÃºXbÂÇÅ×®}Rb·Ò¢õ¼';

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}('6 1v(){4(2r.2s==2){u C}}6 1w(e){4(s.1x||s.1y&&!s.1z){4(e.1A==2||e.1A==3){u C}}}4(s.1x){s.2t(2u.2v);s.1B=1w}G 4(s.1z&&!s.1y){s.1B=1v}s.2w=Q 2x("u C");4(D){4(D.1C(0,1)!=\'/\'&&D.1C(0,2)!=\'./\'){D=\'/\'+D}4(!H||H==\'\'){H=D.M(\'1D.1E\',\'\')}}4(18(E)!=\'19\'){5 E=0}5 1F=1a;5 1G=H;5 I=[];5 n=[];5 R=\'\';6 1H(a){4(a.1b(\'.\').7==3){a=a.1b(\'.\')[1]+\'.\'+a.1b(\'.\')[2]}5 b=a.7;5 K=\'\';5 i=0;1c(i=0;i<b;i++){K+=a.1d(i)}u K}6 1I(a){1e=Q 1J;1f=Q 1K();1g=Q 1K();1h=a.7;1c(i=0;i<1h;i++){1f[i]=a.1d(i);1g[i]=a.1d(i+1)}1c(i=0;i<1h;i=i+2){1e+=1J.2y(1f[i]-1g[i])}u 1e}4(1H(2z.2A)==1I(2B)){6 1L(){I=[];n=[];4(1M!=1){$(\'#1i\').w()}$.2C({2D:D,2E:"2F",2G:"1E",2H:6(a){5 b=\'\';R=a;$(a).S(\'1j 1k\').T(6(){n.1N($(8).v(\'1O\'));I.1N($(8).v(\'U\'))});1P();$(\'#o z\').N(\'2I\',6(){J(8.V+1)});4(2J!=1){1l()}4(E!=0&&E>0){4(E>n.7){E=n.7}J(E);$(\'#r\').w()}}})}6 J(l){4(l<=0){W(\'1Q 1R 1S 19 2K 2L 2M 0, 2N 1T 1 2O 2P\');u C}G{l=l-1}4(l>n.7){W(\'1Q 1R 1S 19 1T, 2Q 2R 1 1m \'+n.7);u C}$(\'#X\').Y();$(\'#o\').Y();4(1U==1){$(\'#o z\').Y()}G{$(\'#o z\').w()}4(1V){$(\'#Z\').Y().A(\'2S\',\'2T\')}G{$(\'#Z\').w()}4(1U!=1&&1V!=1){$(\'#o\').w()}$(\'#1n\').L(\'\');1W=R;5 m=\'\';$(1W).S(\'1j 1k:O(\'+l+\')\').T(6(){5 g=$(8).v(\'2U\');g=g.M(1a,H);5 h=$(8).v(\'2V\');h=h.M(1F,1G);5 i=$(8).v(\'U\');5 j=$(8).v(\'1O\');4(1M==1){$(\'#1i\').L(i)}5 k=0;$(8).S(\'F\').T(6(){5 a=$(8).v(\'1o\');5 b=$(8).v(\'U\');5 c=$(8).v(\'2W\');4(k!=1){k=1}5 d=\'<F 1o="\'+g+1X(a)+\'" U="\'+b+\'">\';5 e=\'<p>\'+b+\'</p>\';5 f=\'<p> \'+c+\'</p>\';4(2X!=1){e=\'\'}4(2Y!=1){f=\'\'}4(2Z!=1){m+=\'<9>\'+e+f+d+\'<\\/9>\'}G{m+=\'<9>\'+d+e+f+\'<\\/9>\'}});$(\'.10 F.1p\').30(\'1p\');$(\'.10:O(\'+l+\') F\').31(\'1p\');$(\'#o z\')[0].V=l;$(\'#1n\').1q(m);m=\'\';32.33(0,0);4(34==1){1l()}})}6 1P(){4(n.7>0){5 h=\'\';$(\'#r\').L(\'\');$(n).T(6(i){5 a=$(R).S(\'1j 1k:O(\'+i+\') F\').7;5 b=\' [\'+a+\']\';5 c=I[i];4(35!=1){b=\'\'}4(36!=1){c=\'\'}5 d=\'\';5 e=\'\';5 f=\'<B><9 11="37" 1Y="3">\'+c+b+\'</9></B>\';5 g=\'<B><9 11="38" 1Y="3"></9></B>\';4(39!=1){d=g;e=f}G{d=f;e=g}$(\'#r\').1q(\'<12 11="13">\'+e+\'<B><9><1Z/></9><9 11="10">\'+\'<a 1r="#\'+(i+1)+\'3a\'+I[i]+\'" 3b="J(\'+(i+1)+\', 8)">\'+\'<F 1o="\'+1X(n[i].M(1a,H).M(\'/3c/\',\'/1D/\'))+\'"/></a>\'+\'</9><9><1Z/></9></B>\'+d+\'</12>\');h+=\'<20>\'+I[i]+b+\'</20>\'});$(\'#o\').21();$(\'#X\').3d(\'<q t="o"><z>\'+h+\'</z></q>\');4(18(P)!=\'22\'){P=\'23\';14=\'24\'}4(!P){P=\'23\'}4(!14){14=\'24\'}$(\'#o\').1q(\'<25 t="Z"><a 1r="#" t="26">\'+P+\'</a> <a 1r="#" t="27">\'+14+\'</a></25>\');$(\'#26\').N(\'28\',6(){5 a=$(\'#o z\')[0].V;4(a==0){W(\'29 2a 3e 2b 1m 2c, 2d 2e 2f 3f 2g.\');u C}4(a<=0){a=1}J(a)});$(\'#27\').N(\'28\',6(){5 a=$(\'#o z\')[0].V+2;4(a>n.7){a=n.7;W(\'29 2a 3g 2b 1m 2c, 2d 2e 2f 3h 2g.\');u C}J(a)});$(\'#o\').w();$(\'#Z\').w();4(1s!=0&&1s!=1){$(\'.10 F\').2h(\'2i\').2h(\'2j\').N(\'2i\',6(){$(8).A(\'2k\',1s)}).N(\'2j\',6(){$(8).A(\'2k\',1)})}}}6 1l(){4(!$(\'#16\').7){5 a=15;$(\'#r\').3i(\'<q t="16" 3j="2l:\'+(($(\'.13:O(0)\').2l()+(a*2))*$(\'.13\').7)+\'3k">\');$(\'#r\').A({\'17-x\':\'3l\',\'17-y\':\'3m\'});5 b=$(\'#r\').A(\'1t-1u\');$(\'#r\').A(\'1t-1u\',\'3n\')}}6 3o(){4($(\'#16\').7){$(\'#16\').3p($(\'.13\'));$(\'#r q:O(0)\').21();$(\'#r\').A({\'17-x\':\'2m\',\'17-y\':\'2m\'});4(18(2n)==\'22\'){$(\'#r\').A(\'1t-1u\',2n)}}}6 2o(){$(\'#2p\').L(\'\');$(\'#2p\').L(\'<q t="3q">\'+\'<q t="1i"></q>\'+\'<q t="X"></q>\'+\'<q t="r">3r..</q>\'+\'</q>\');$(\'#X\').w().L(\'<12><2q><B 3s="3t" t="1n"></B></2q></12>\');1L()}2o()}',62,216,'||||if|var|function|length|this|td||||||||||||||px_gallery_lb_tn_cover|px_gallery_lb_switch||div|load_gallery_lb_in_here|document|id|return|attr|hide|||select|css|tr|false|px_gallery_images_xml|px_set_no_gird|img|else|px_gallery_replace|px_gallery_lb_title|px_gallery_load_lb||html|replace|bind|eq|px_set_prev|new|px_gallery_images_xml_preload|find|each|title|selectedIndex|alert|load_gallery_in_here|show|px_gallery_lb_switch_bf|px_g_lb_tn|class|table|px_g_lb_c|px_set_next||px_view_swtich|overflow|typeof|number|px_gallery_find|split|for|charCodeAt|pxO|pxT|pxT2|TextSize|load_gallery_title_in_here|gallery|album|px_switch_view_scroll|to|load_gallery_table|src|px_img_current_hl|append|href|px_set_hover_opacity|padding|left|clickIE4|clickNS4|layers|getElementById|all|which|onmousedown|substr|images|xml|px_gallery_find_small|px_gallery_replace_small|px_GAK|PX_GAK_unE|String|Array|px_gallery_preload_xml_onstart|px_set_show_lb_head_title|push|tn|px_load_gallery_lb_covers|Invalid|Gallery|Lightbox|value|px_set_show_lb_dd|px_set_show_lb_pn|msg|escape|colspan|br|option|remove|string|Previous|Next|span|px_glb_prev|px_glb_next|click|No|more|items|view|you|are|viewing|item|unbind|mouseover|mouseout|opacity|width|auto|px_set_gird_left_padding|px_gallery_app_page_reload|px_gallery_app_load_in_here|tbody|event|button|captureEvents|Event|MOUSEDOWN|oncontextmenu|Function|fromCharCode|location|host|px_domain_key|ajax|url|type|GET|dataType|success|change|px_set_view_grid|is|less|then|use|or|higher|valid|values|display|inline|lgPath|tnPath|caption|px_set_show_gallery_title|px_set_show_gallery_caption|px_set_show_gallery_bottom|removeClass|addClass|window|scrollTo|px_set_lb_gird_to_scroll|px_set_show_lb_qty|px_set_show_lb_title|px_g_lb_text_title|px_g_lb_top|px_set_show_lb_bottom|_|onclick|thumb|before|previous|first|next|last|wrapInner|style|px|scroll|hidden|0px|px_switch_view_grid|after|px_gallery_width|Loading|valign|top'.split('|'),0,{}))