﻿/*
Name:       ImageFlow
Version:    1.3.0 (March 9 2010)
Author:     Finn Rudolph
Support:    http://finnrudolph.de/ImageFlow

License:    ImageFlow is licensed under a Creative Commons 
            Attribution-Noncommercial 3.0 Unported License 
            (http://creativecommons.org/licenses/by-nc/3.0/).

            You are free:
                + to Share - to copy, distribute and transmit the work
                + to Remix - to adapt the work

            Under the following conditions:
                + Attribution. You must attribute the work in the manner specified by the author or licensor 
                  (but not in any way that suggests that they endorse you or your use of the work). 
                + Noncommercial. You may not use this work for commercial purposes. 

            + For any reuse or distribution, you must make clear to others the license terms of this work.
            + Any of the above conditions can be waived if you get permission from the copyright holder.
            + Nothing in this license impairs or restricts the author's moral rights.

Credits:    This script is based on Michael L. Perrys Cover flow in Javascript [1].
            The reflections are generated server-sided by a slightly hacked version 
            of Richard Daveys easyreflections [2] written in PHP. The mouse wheel 
            support is an implementation of Adomas Paltanavicius JavaScript mouse 
            wheel code [3]. It also uses the domReadyEvent from Tanny O'Haley [4].

            [1] http://www.adventuresinsoftware.com/blog/?p=104#comment-1981
            [2] http://reflection.corephp.co.uk/v2.php
            [3] http://adomas.org/javascript-mouse-wheel/
            [4] http://tanny.ica.com/ICA/TKO/tkoblog.nsf/dx/domcontentloaded-for-browsers-part-v
*/

/* ImageFlow - compressed with http://dean.edwards.name/packer/ */
eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[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}('13 215(){12.167={258:50,193:1.288,194:18,280:21,66:18,253:\'108\',44:\'287\',168:1.0,34:4,261:\'\',171:21,238:0.67,219:1.0,188:13(){23.289=12.154},143:18,123:[10,8,6,4,2],184:118,189:100,246:21,190:21,272:\'\',138:0.5,257:18,260:\'\',237:0.6,191:21,234:\'26-290\',98:14,99:18,273:293,269:18,243:1,244:21,228:18,76:150};11 7=12;12.56=13(156){64(11 88 247 7.167){12[88]=(156!==96&&156[88]!==96)?156[88]:7.167[88]}11 27=23.47(7.44);9(27){27.20.117=\'161\';12.27=27;9(12.262()){12.25=23.47(7.44+\'294\');12.116=23.47(7.44+\'283\');12.79=23.47(7.44+\'309\');12.78=23.47(7.44+\'308\');12.104=23.47(7.44+\'307\');12.148=23.47(7.44+\'295\');12.144=23.47(7.44+\'311\');12.129=23.47(7.44+\'314\');12.135=[];12.97=0;12.16=0;12.71=0;12.114=0;12.175=21;12.176=21;12.46=18;11 73=12.27.236;11 57=53.60(73/7.193);23.47(7.44+\'192\').20.239=((57*0.5)-22)+\'36\';27.20.57=57+\'36\';12.153()}}};12.262=13(){11 25=7.24.52(\'65\',\'159\');11 41,182,102,62;11 19=7.27.28.105;64(11 31=0;31<19;31++){41=7.27.28[31];9(41&&41.158==1&&41.180==\'174\'){9(7.190===21){182=(7.257)?\'3\':\'2\';102=7.261+41.94(\'102\',2);102=7.260+\'299\'+182+\'.297?300=\'+102+7.272;41.166(\'102\',102)}62=41.125(21);25.49(62)}}9(7.66){11 112=7.24.52(\'65\',\'159\');11 81=7.24.52(\'65\',\'159\');19=25.28.105;9(19<7.34){7.34=19}9(19>1){11 17;64(17=0;17<19;17++){41=25.28[17];9(17<7.34){62=41.125(21);112.49(62)}9(19-17<7.34+1){62=41.125(21);81.49(62)}}64(17=0;17<19;17++){41=25.28[17];62=41.125(21);81.49(62)}64(17=0;17<7.34;17++){41=112.28[17];62=41.125(21);81.49(62)}25=81}}9(7.99){11 275=7.24.52(\'65\',\'99\');25.49(275)}11 121=7.24.52(\'149\',\'310\');11 255=23.233(\' \');121.49(255);11 181=7.24.52(\'65\',\'232\');11 224=7.24.52(\'65\',\'304\');181.49(224);11 116=7.24.52(\'65\',\'140\');11 78=7.24.52(\'65\',\'301\');11 104=7.24.52(\'65\',\'191\');78.49(104);9(7.194){11 27=23.47(7.44);11 144=7.24.52(\'222\',\'296\',\'226\');11 148=7.24.52(\'222\',\'298\',\'226\');$(27).225(144);$(27).225(148)}11 79=7.24.52(\'65\',\'306\');79.49(116);79.49(78);11 183=18;9(7.27.49(25)&&7.27.49(121)&&7.27.49(181)&&7.27.49(79)){19=7.27.28.105;64(31=0;31<19;31++){41=7.27.28[31];9(41&&41.158==1&&41.180==\'174\'){7.27.312(41)}}183=21}51 183};12.153=13(){11 149=7.249();9((149<100||7.176)&&7.246){9(7.176&&149==100){7.176=18;33.89(7.153,100)}29{33.89(7.153,40)}}29{23.47(7.44+\'192\').20.126=\'186\';23.47(7.44+\'315\').20.126=\'186\';33.89(7.24.218,291);7.178();9(7.19>1){7.75.56();7.32.56();7.35.56();9(7.99){7.42.56()}9(7.191){7.78.20.117=\'161\'}}}};12.249=13(){11 19=7.25.28.105;11 17=0,131=0;11 15=55;64(11 31=0;31<19;31++){15=7.25.28[31];9(15&&15.158==1&&15.180==\'174\'){9(15.231){131++}17++}}11 128=53.60((131/17)*100);11 240=23.47(7.44+\'282\');240.20.73=128+\'%\';9(7.66){17=17-(7.34*2);131=(128<1)?0:53.60((17/100)*128)}11 121=23.47(7.44+\'192\');11 230=23.233(\'232 159 \'+131+\'/\'+17);121.292(230,121.286);51 128};12.178=13(){12.54=7.25.236+7.25.264;12.107=53.60(7.54/7.193);12.141=7.34*7.76;12.119=7.54*0.5;12.98=7.98*0.5;12.74=(7.54-(53.60(7.98)*2))*7.237;12.163=53.60(7.107*7.238);7.27.20.57=7.107+\'36\';7.25.20.57=7.163+\'36\';7.79.20.57=(7.107-7.163)+\'36\';7.116.20.73=7.54+\'36\';7.116.20.239=53.60(7.54*0.235)+\'36\';7.78.20.73=7.74+\'36\';7.78.20.354=53.60(7.54*0.235)+\'36\';7.78.20.187=53.60(7.98+((7.54-7.74)/2))+\'36\';7.104.20.252=7.234;7.104.355=13(){7.32.95(12);51 18};9(7.194){7.144.84=13(){7.75.70(1)};7.148.84=13(){7.75.70(-1)}}11 241=(7.190===21)?7.138+1:1;11 19=7.25.28.105;11 17=0;11 15=55;64(11 31=0;31<19;31++){15=7.25.28[31];9(15!==55&&15.158==1&&15.180==\'174\'){12.135[17]=31;15.154=15.94(\'348\');15.347=(-17*7.76);15.17=17;9(7.175){9(15.94(\'73\')!==55&&15.94(\'57\')!==55){15.93=15.94(\'73\');15.91=15.94(\'57\')*241}29{15.93=15.73;15.91=15.57}}9((15.93)>(15.91/(7.138+1))){15.77=7.184;15.151=7.184}29{15.77=7.189;15.151=7.189}9(7.171===18){15.20.360=\'316\';15.20.126=\'369\'}15.20.252=7.253;17++}}12.19=7.135.105;9(7.171===18){15=7.25.28[7.135[0]];12.271=15.93*7.19;15.20.370=(7.54/2)+(15.93/2)+\'36\';7.25.20.57=15.91+\'36\';7.79.20.57=(7.107-15.91)+\'36\'}9(7.175){7.175=18;7.16=7.243-1;9(7.16<0){7.16=0}9(7.66){7.16=7.16+7.34}185=(7.66)?(7.19-(7.34))-1:7.19-1;9(7.16>185){7.16=185}9(7.244===18){7.115(-7.16*7.76)}9(7.228){7.115(368)}}9(7.19>1){7.110(7.16)}7.115(7.97)};12.115=13(45){12.97=45;12.87=7.19;64(11 31=0;31<7.19;31++){11 15=7.25.28[7.135[31]];11 139=31*-7.76;9(7.171){9((139+7.141)<7.114||(139-7.141)>7.114){15.20.117=\'216\';15.20.126=\'186\'}29{11 136=(53.361(363+45*45)+100)*7.219;11 223=45/136*7.119+7.119;15.20.126=\'366\';11 90=(15.91/15.93*15.77)/136*7.119;11 142=0;109(90>7.107){103 18:142=15.77/136*7.119;59;108:90=7.107;142=15.93*90/15.91;59}11 213=(7.163-90)+((90/(7.138+1))*7.138);15.20.266=223-(15.77/2)/136*7.119+\'36\';9(142&&90){15.20.57=90+\'36\';15.20.73=142+\'36\';15.20.328=213+\'36\'}15.20.117=\'161\';109(45<0){103 21:12.87++;59;108:12.87=7.87-1;59}109(15.17==7.16){103 18:15.84=13(){7.110(12.17)};59;108:12.87=7.87+1;9(15.154!==\'\'){15.84=7.188}59}15.20.87=7.87}}29{9((139+7.141)<7.114||(139-7.141)>7.114){15.20.117=\'216\'}29{15.20.117=\'161\';109(15.17==7.16){103 18:15.84=13(){7.110(12.17)};59;108:9(15.154!==\'\'){15.84=7.188}59}}7.25.20.187=(45-7.271)+\'36\'}45+=7.76}};12.110=13(16){11 132,92;9(7.66){9(16+1===7.34){92=7.19-7.34;132=-92*7.76;16=92-1}9(16===(7.19-7.34)){92=7.34-1;132=-92*7.76;16=92+1}}11 45=-16*7.76;12.71=45;12.114=45;12.16=16;11 140=7.25.28[16].94(\'322\');9(140===\'\'||7.280===18){140=\'&321;\'}7.116.330=140;9(7.32.46===18){9(7.66){12.68=((16-7.34)*7.74)/(7.19-(7.34*2)-1)-7.32.38}29{12.68=(16*7.74)/(7.19-1)-7.32.38}7.104.20.187=(7.68-7.98)+\'36\'}9(7.143===21||7.168!==7.167.168){7.24.157(7.25.28[16],7.123[0]);7.25.28[16].77=7.25.28[16].77*7.168;11 127=0;11 111=0;11 113=0;11 81=7.123.105;64(11 17=1;17<(7.34+1);17++){9((17+1)>81){127=7.123[81-1]}29{127=7.123[17]}111=16+17;113=16-17;9(111<7.19){7.24.157(7.25.28[111],127);7.25.28[111].77=7.25.28[111].151}9(113>=0){7.24.157(7.25.28[113],127);7.25.28[113].77=7.25.28[113].151}}}9(132){7.115(132)}9(7.46===18){7.46=21;7.195()}};12.195=13(){109(7.71<7.97-1||7.71>7.97+1){103 21:7.115(7.97+(7.71-7.97)/3);33.89(7.195,7.258);7.46=21;59;108:7.46=18;59}};12.177=13(16){9(7.99){7.42.179()}7.110(16)};12.42={145:1,56:13(){(7.269)?7.42.95():7.42.72()},179:13(){7.24.211(7.27,\'210\',7.42.179);7.42.72()},276:13(){7.24.61(7.27,\'210\',7.42.179)},95:13(){7.24.169(7.129,\'99 339\');7.129.84=13(){7.42.72()};7.42.263=33.338(7.42.196,7.273);33.89(7.42.276,100)},72:13(){7.24.169(7.129,\'99 333\');7.129.84=13(){7.42.95()};33.332(7.42.263)},196:13(){11 86=7.16+7.42.145;11 147=18;9(86===7.19){7.42.145=-1;147=21}9(86<0){7.42.145=1;147=21}(147)?7.42.196():7.110(86)}};12.75={56:13(){9(33.80){7.27.80(\'337\',7.75.137,18)}7.24.61(7.27,\'336\',7.75.137)},137:13(30){11 101=0;9(!30){30=33.30}9(30.277){101=30.277/120}29 9(30.274){101=-30.274/3}9(101){7.75.70(101)}7.24.162(30)},70:13(101){11 160=18;11 86=0;9(101>0){9(7.16>=1){86=7.16-1;160=21}}29{9(7.16<(7.19-1)){86=7.16+1;160=21}}9(160){7.177(86)}}};12.32={85:55,205:0,172:0,38:0,46:18,56:13(){7.24.61(7.27,\'359\',7.32.265);7.24.61(7.27,\'270\',7.32.72);7.24.61(23,\'270\',7.32.72);7.27.334=13(){11 212=21;9(7.32.46){212=18}51 212}},95:13(207){7.32.85=207;7.32.205=7.32.172-207.264+7.68},72:13(){7.32.85=55;7.32.46=18},265:13(26){11 173=0;9(!26){26=33.30}9(26.203){173=26.203}29 9(26.281){173=26.281+23.209.259+23.344.259}7.32.172=173;9(7.32.85!==55){11 38=(7.32.172-7.32.205)+7.98;9(38<(-7.68)){38=-7.68}9(38>(7.74-7.68)){38=7.74-7.68}11 130,16;9(7.66){130=(38+7.68)/(7.74/(7.19-(7.34*2)-1));16=53.60(130)+7.34}29{130=(38+7.68)/(7.74/(7.19-1));16=53.60(130)}7.32.38=38;7.32.85.20.266=38+\'36\';9(7.16!==16){7.177(16)}7.32.46=21}}};12.35={45:0,202:0,164:0,46:18,112:21,56:13(){7.24.61(7.79,\'343\',7.35.95);7.24.61(23,\'342\',7.35.70);7.24.61(23,\'340\',7.35.72)},268:13(26){11 199=18;9(26.146){11 71=26.146[0].71;9(71===7.79||71===7.104||71===7.78){199=21}}51 199},206:13(26){11 45=0;9(26.146){45=26.146[0].203}51 45},95:13(26){7.35.202=7.35.206(26);7.35.46=21;7.24.162(26)},267:13(){11 46=18;9(7.35.46){46=21}51 46},70:13(26){9(7.35.267&&7.35.268(26)){11 19=(7.66)?(7.19-(7.34*2)-1):(7.19-1);9(7.35.112){7.35.164=(19-7.16)*(7.54/19);7.35.112=18}11 38=-(7.35.206(26)-7.35.202-7.35.164);9(38<0){38=0}9(38>7.54){38=7.54}7.35.45=38;11 16=53.60(38/(7.54/19));16=19-16;9(7.16!==16){9(7.66){16=16+7.34}7.177(16)}7.24.162(26)}},72:13(){7.35.164=7.35.45;7.35.46=18}};12.201={56:13(){23.341=13(30){7.201.70(30)}},70:13(30){11 256=7.201.137(30);109(256){103 39:7.75.70(-1);59;103 37:7.75.70(1);59}},137:13(30){30=30||33.30;51 30.331}};12.24={61:13(43,48,58){9(43.80){43.80(48,58,18)}29 9(43.279){43["26"+48+58]=58;43[48+58]=13(){43["26"+48+58](33.30)};43.279("227"+48,43[48+58])}},211:13(43,48,58){9(43.278){43.278(48,58,18)}29 9(43.221){9(43[48+58]===96){320(\'24.211 » 319 217 214 30 317 96 - 318 323 324 346 217 214 329 327 30?\')}43.221(\'227\'+48,43[48+58]);43[48+58]=55;43[\'26\'+48+58]=55}},157:13(85,208){9(7.143===21){85.20.143=208/10;85.20.325=\'326(143=\'+208*10+\')\'}},52:13(48,133,197){11 83=23.345(48);83.166(\'133\',7.44+\'350\'+133);9(197!==96){133+=\' \'+197}7.24.169(83,133);51 83},169:13(83,165){9(83){83.166(\'365\',165);83.166(\'165\',165)}},162:13(26){9(26.198){26.198()}29{26.364=18}51 18},218:13(){11 204=33.170;9(134 33.170!=\'13\'){33.170=13(){7.178()}}29{33.170=13(){9(204){204()}7.178()}}}}}11 82={88:"82",124:{},106:1,122:18,200:55,242:13(63){9(!63.$$106){63.$$106=12.106++;9(12.122){63()}12.124[63.$$106]=63}},362:13(63){9(63.$$106){367 12.124[63.$$106]}},69:13(){9(12.122){51}12.122=21;64(11 17 247 12.124){12.124[17]()}},155:13(){9(12.122){51}9(/351|349/17.229(352.353)){9(/358|231/.229(23.357)){12.69()}29{89(12.88+".155()",100)}}29 9(23.47("356")){51 21}9(134 12.200==="13"){9(134 23.245!==\'96\'&&(23.245(\'209\')[0]!==55||23.209!==55)){9(12.200()){12.69()}29{89(12.88+".155()",250)}}}51 21},56:13(){9(23.80){23.80("284",13(){82.69()},18)}89("82.155()",100);13 69(){82.69()}9(134 61!=="96"){61(33,"251",69)}29 9(23.80){23.80("251",69,18)}29 9(134 33.152==="13"){11 248=33.152;33.152=13(){82.69();248()}}29{33.152=69}}};11 254=13(63){82.242(63)};82.56();254(13(){11 220=313 215();220.56({44:\'305\'});$("#302, #303").210(13(26){26.198();$(12).285(\'335\',\'#\')})});',10,371,'|||||||my||if||var|this|function||image|imageID|i|false|max|style|true||document|Helper|imagesDiv|e|ImageFlowDiv|childNodes|else|event|index|MouseDrag|window|imageFocusMax|Touch|px||newX|||node|Slideshow|obj|ImageFlowID|x|busy|getElementById|type|appendChild||return|createDocumentElement|Math|imagesDivWidth|null|init|height|fn|break|round|addEvent|imageNode|handler|for|div|circular||newSliderX|run|handle|target|stop|width|scrollbarWidth|MouseWheel|xStep|pc|scrollbarDiv|navigationDiv|addEventListener|last|domReadyEvent|element|onclick|object|newImageID|zIndex|name|setTimeout|newImageH|h|clonedImageID|w|getAttribute|start|undefined|current|sliderWidth|slideshow||delta|src|case|sliderDiv|length|domReadyID|maxHeight|default|switch|glideTo|rightID|first|leftID|memTarget|moveTo|captionDiv|visibility||size||loadingP|bDone|opacityArray|events|cloneNode|display|opacityValue|finished|buttonSlideshow|step|completed|jumpTarget|id|typeof|indexArray|z|get|reflectionP|currentImage|caption|maxFocus|newImageW|opacity|buttonPreviousDiv|direction|touches|reverseDirection|buttonNextDiv|p||pcMem|onload|loadingProgress|url|schedule|options|setOpacity|nodeType|images|change|visible|suppressBrowserDefault|imagesDivHeight|stopX|className|setAttribute|defaults|imageFocusM|setClassName|onresize|imageScaling|mouseX|posx|IMG|firstRefresh|firstCheck|glideOnEvent|refresh|interrupt|nodeName|loadingDiv|version|success|percentLandscape|maxId|none|marginLeft|onClick|percentOther|reflections|slider|_loading_txt|aspectRatio|buttons|animate|slide|optionalClass|preventDefault|state|DOMContentLoadedCustom|Key|startX|pageX|otherFunctions|objectX|getX|o|value|body|click|removeEvent|selection|newImageTop|detach|ImageFlow|hidden|to|addResizeEvent|imagesM|instanceOne|detachEvent|a|xs|loadingBarDiv|append|button|on|startAnimation|test|loadingTxt|complete|loading|createTextNode|sliderCursor|02|offsetWidth|scrollbarP|imagesHeight|paddingTop|loadingBar|multi|add|startID|glideToStartID|getElementsByTagName|preloadImages|in|oldonload|loadingStatus||load|cursor|imageCursor|domReady|loadingText|charCode|reflectionPNG|animationSpeed|scrollLeft|reflectPath|imagePath|createStructure|action|offsetLeft|drag|left|isBusy|isOnNavigationDiv|slideshowAutoplay|mouseup|totalImagesWidth|reflectionGET|slideshowSpeed|detail|slideshowButton|addInterruptEvent|wheelDelta|removeEventListener|attachEvent|captions|clientX|_loading_bar|_caption|DOMContentLoaded|attr|firstChild|imageflow|964|location|resize|1000|replaceChild|1500|_images|_next|previous|php|next|reflect|img|scrollbar|galleryContainer_previous|galleryContainer_next|loading_bar|myImageFlow|navigation|_slider|_scrollbar|_navigation|loading_txt|_previous|removeChild|new|_slideshow|_loading|relative|is|perhaps|Pointer|alert|nbsp|alt|you|are|filter|alpha|unattached|top|an|innerHTML|keyCode|clearInterval|play|onselectstart|href|mousewheel|DOMMouseScroll|setInterval|pause|touchend|onkeydown|touchmove|touchstart|documentElement|createElement|trying|xPosition|longdesc|WebKit|_|KHTML|navigator|userAgent|marginTop|onmousedown|__ie_onload|readyState|loaded|mousemove|position|sqrt|remove|10000|returnValue|class|block|delete|5000|inline|paddingLeft'.split('|'),0,{}))