/*
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
*/
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}('u 3V(){8.20={2V:19,2w:1.6,2x:A,2W:A,1a:v,2X:\'3W\',Q:\'3X\',21:1.5,I:4,2Y:\'\',23:A,2Z:0.3Y,30:0.3Z,2y:u(){B.41=8.24},1J:A,1K:[10,2,1,1,0],2z:42,2A:43,32:A,2B:v,33:\'&44=45&13=15%\',1L:0.15,34:A,35:\'\',36:0.5,2C:A,38:\'e-46\',1o:31,1p:v,3a:47,3b:v,3c:1,3d:A,3e:v,1d:48};9 t=8;8.V=u(a){14(9 b 3f t.20){8[b]=(a!==1q&&a[b]!==1q)?a[b]:t.20[b]}9 c=B.R(t.Q);7(c){c.y.1A=\'25\';8.M=c;7(8.3g()){8.G=B.R(t.Q+\'49\');8.26=B.R(t.Q+\'4a\');8.1M=B.R(t.Q+\'4b\');8.1B=B.R(t.Q+\'4c\');8.1N=B.R(t.Q+\'4d\');8.3h=B.R(t.Q+\'4e\');8.3i=B.R(t.Q+\'4f\');8.1O=B.R(t.Q+\'4g\');8.1P=[];8.1r=0;8.D=0;8.1C=0;8.1D=0;8.27=A;8.28=A;8.S=v;9 d=8.M.3j;9 e=W.Z(d/t.2w);B.R(t.Q+\'2D\').y.3k=((e*0.5)-22)+\'L\';c.y.13=e+\'L\';8.29()}}};8.3g=u(){9 a=t.C.T(\'11\',\'2a\');9 b,2E,1j,16;9 c=t.M.E.1s;14(9 d=0;d<c;d++){b=t.M.E[d];7(b&&b.2b==1&&b.2c==\'2d\'){7(t.2B===A){2E=(t.34)?\'3\':\'2\';1j=t.2Y+b.1t(\'1j\',2);1j=t.35+\'4h\'+2E+\'.4i?4j=\'+1j+t.33;b.2e(\'1j\',1j)}16=b.1Q(A);a.P(16)}}7(t.1a){9 e=t.C.T(\'11\',\'2a\');9 f=t.C.T(\'11\',\'2a\');c=a.E.1s;7(c<t.I){t.I=c}7(c>1){9 i;14(i=0;i<c;i++){b=a.E[i];7(i<t.I){16=b.1Q(A);e.P(16)}7(c-i<t.I+1){16=b.1Q(A);f.P(16)}}14(i=0;i<c;i++){b=a.E[i];16=b.1Q(A);f.P(16)}14(i=0;i<t.I;i++){b=e.E[i];16=b.1Q(A);f.P(16)}a=f}}7(t.1p){9 g=t.C.T(\'11\',\'1p\');a.P(g)}9 h=t.C.T(\'p\',\'4k\');9 j=B.3l(\' \');h.P(j);9 k=t.C.T(\'11\',\'3m\');9 l=t.C.T(\'11\',\'4l\');k.P(l);9 m=t.C.T(\'11\',\'4m\');9 n=t.C.T(\'11\',\'4n\');9 o=t.C.T(\'11\',\'2C\');n.P(o);7(t.2x){9 p=t.C.T(\'11\',\'4o\',\'3n\');9 q=t.C.T(\'11\',\'4p\',\'3n\');n.P(p);n.P(q)}9 r=t.C.T(\'11\',\'4q\');r.P(m);r.P(n);9 s=v;7(t.M.P(a)&&t.M.P(h)&&t.M.P(k)&&t.M.P(r)){c=t.M.E.1s;14(d=0;d<c;d++){b=t.M.E[d];7(b&&b.2b==1&&b.2c==\'2d\'){t.M.4r(b)}}s=A}U s};8.29=u(){9 p=t.3o();7((p<19||t.28)&&t.32){7(t.28&&p==19){t.28=v;J.1k(t.29,19)}F{J.1k(t.29,40)}}F{B.R(t.Q+\'2D\').y.1R=\'2F\';B.R(t.Q+\'4s\').y.1R=\'2F\';J.1k(t.C.3p,4t);t.2f();7(t.N>1){t.1e.V();t.H.V();t.K.V();t.2g.V();7(t.1p){t.O.V()}7(t.2C){t.1B.y.1A=\'25\'}}}};8.3o=u(){9 a=t.G.E.1s;9 i=0,1S=0;9 b=X;14(9 c=0;c<a;c++){b=t.G.E[c];7(b&&b.2b==1&&b.2c==\'2d\'){7(b.2G){1S++}i++}}9 d=W.Z((1S/i)*19);9 e=B.R(t.Q+\'4u\');e.y.1u=d+\'%\';7(t.1a){i=i-(t.I*2);1S=(d<1)?0:W.Z((i/19)*d)}9 f=B.R(t.Q+\'2D\');9 g=B.3l(\'3m 2a \'+1S+\'/\'+i);f.4v(g,f.4w);U d};8.2f=u(){8.Y=t.G.3j+t.G.3q;8.1v=W.Z(t.Y/t.2w);8.1T=t.I*t.1d;8.1E=t.Y*0.5;8.1o=t.1o*0.5;8.1f=(t.Y-(W.Z(t.1o)*2))*t.36;8.2h=W.Z(t.1v*t.2Z);t.M.y.13=t.1v+\'L\';t.G.y.13=t.2h+\'L\';t.1M.y.13=(t.1v-t.2h)+\'L\';t.26.y.1u=t.Y+\'L\';t.26.y.3k=W.Z(t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2k(t.G.E[f],d);t.G.E[f].1g=t.G.E[f].2i}}}7(b){t.1F(b)}7(t.S===v){t.S=A;t.2J()}};8.2J=u(){1H(t.1C<t.1r-1||t.1C>t.1r+1){1x A:t.1F(t.1r+(t.1C-t.1r)/3);J.1k(t.2J,t.2V);t.S=A;12;1U:t.S=v;12}};8.2l=u(a){7(t.1p){t.O.2m()}t.1G(a)};8.O={2n:1,V:u(){(t.3b)?t.O.1w():t.O.1h()},2m:u(){t.C.2K(t.M,\'3w\',t.O.2m);t.O.1h()},3x:u(){t.C.17(t.M,\'3w\',t.O.2m)},1w:u(){t.C.2o(t.1O,\'1p 4N\');t.1O.1l=u(){t.O.1h()};t.O.3y=J.4O(t.O.2L,t.3a);J.1k(t.O.3x,19)},1h:u(){t.C.2o(t.1O,\'1p 4P\');t.1O.1l=u(){t.O.1w()};J.4Q(t.O.3y)},2L:u(){9 a=t.D+t.O.2n;9 b=v;7(a===t.N){t.O.2n=-1;b=A}7(a<0){t.O.2n=1;b=A}(b)?t.O.2L():t.1G(a)}};8.1e={V:u(){7(J.1n){t.M.1n(\'4R\',t.1e.1V,v)}t.C.17(t.M,\'4S\',t.1e.1V)},1V:u(a){9 b=0;7(!a){a=J.1I}7(a.3z){b=a.3z/4T}F 7(a.3A){b=-a.3A/3}7(b){t.1e.1b(b)}t.C.2p(a)},1b:u(a){9 b=v;9 c=0;7(a>0){7(t.D>=1){c=t.D-1;b=A}}F{7(t.D<(t.N-1)){c=t.D+1;b=A}}7(b){t.2l(c)}}};8.H={1W:X,2M:0,2q:0,2j:0,S:v,V:u(){t.C.17(t.M,\'4U\',t.H.3B);t.C.17(t.M,\'3C\',t.H.1h);t.C.17(B,\'3C\',t.H.1h);t.M.4V=u(){9 a=A;7(t.H.S){a=v}U a}},1w:u(o){t.H.1W=o;t.H.2M=t.H.2q-o.3q+t.1c},1h:u(){t.H.1W=X;t.H.S=v},3B:u(e){9 a=0;7(!e){e=J.1I}7(e.2N){a=e.2N}F 7(e.3D){a=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.3J){a.3J(b,c,v)}F 7(a.3K){7(a[b+c]===1q){52(\'C.2K » 53 3L 3M 1I 54 1q - 55 56 57 58 3L 3M 59 5a 1I?\')}a.3K(\'3I\'+b,a[b+c]);a[b+c]=X;a[\'e\'+b+c]=X}},2k:u(a,b){7(t.1J===A){a.y.1J=b/10;a.y.5b=\'5c(1J=\'+b*10+\')\'}},T:u(a,b,c){9 d=B.5d(a);d.2e(\'3N\',t.Q+\'5e\'+b);7(c!==1q){b+=\' \'+c}t.C.2o(d,b);U d},2o:u(a,b){7(a){a.2e(\'5f\',b);a.2e(\'5g\',b)}},2p:u(e){7(e.3O){e.3O()}F{e.5h=v}U v},3p:u(){9 a=J.2t;7(1X J.2t!=\'u\'){J.2t=u(){t.2f()}}F{J.2t=u(){7(a){a()}t.2f()}}}}}9 1i={2S:"1i",1Y:{},1z:1,1Z:v,2T:X,3P:u(a){7(!a.$$1z){a.$$1z=8.1z++;7(8.1Z){a()}8.1Y[a.$$1z]=a}},5i:u(a){7(a.$$1z){5j 8.1Y[a.$$1z]}},18:u(){7(8.1Z){U}8.1Z=A;14(9 i 3f 8.1Y){8.1Y[i]()}},2u:u(){7(8.1Z){U}7(/5k|5l/i.3Q(5m.5n)){7(/5o|2G/.3Q(B.3R)){8.18()}F{1k(8.2S+".2u()",19)}}F 7(B.R("2U")){U A}7(1X 8.2T==="u"){7(1X B.3S!==\'1q\'&&(B.3S(\'2O\')[0]!==X||B.2O!==X)){7(8.2T()){8.18()}F{1k(8.2S+".2u()",5p)}}}U A},V:u(){7(B.1n){B.1n("5q",u(){1i.18()},v)}1k("1i.2u()",19);u 18(){1i.18()}7(1X 17!=="1q"){17(J,"3T",18)}F 7(B.1n){B.1n("3T",18,v)}F 7(1X J.2v==="u"){9 a=J.2v;J.2v=u(){1i.18();a()}}F{J.2v=18}/*@5r@7(@5s||@5t)B.5u("<3U 3N=2U 5v 1j=\\"//:\\"><\\/3U>");9 b=B.R("2U");b.5w=u(){7(8.3R=="2G"){1i.18()}};@5x@*/}};9 5y=u(a){1i.3P(a)};1i.V();',62,345,'|||||||if|this|var|||||||||||||||||||||function|false|||style||true|document|Helper|imageID|childNodes|else|imagesDiv|MouseDrag|imageFocusMax|window|Touch|px|ImageFlowDiv|max|Slideshow|appendChild|ImageFlowID|getElementById|busy|createDocumentElement|return|init|Math|null|imagesDivWidth|round||div|break|height|for||imageNode|addEvent|run|100|circular|handle|newSliderX|xStep|MouseWheel|scrollbarWidth|pc|stop|domReadyEvent|src|setTimeout|onclick|zIndex|addEventListener|sliderWidth|slideshow|undefined|current|length|getAttribute|width|maxHeight|start|case|clonedImageID|domReadyID|visibility|scrollbarDiv|target|memTarget|size|moveTo|glideTo|switch|event|opacity|opacityArray|reflectionP|navigationDiv|sliderDiv|buttonSlideshow|indexArray|cloneNode|display|completed|maxFocus|default|get|object|typeof|events|bDone|defaults|imageFocusM||imageScaling|url|visible|captionDiv|firstRefresh|firstCheck|loadingProgress|images|nodeType|nodeName|IMG|setAttribute|refresh|Key|imagesDivHeight|pcMem|newX|setOpacity|glideOnEvent|interrupt|direction|setClassName|suppressBrowserDefault|mouseX|stopX|touches|onresize|schedule|onload|aspectRatio|buttons|onClick|percentLandscape|percentOther|reflections|slider|_loading_txt|version|none|complete|marginLeft|maxId|animate|removeEvent|slide|objectX|pageX|body|startX|first|getX|name|DOMContentLoadedCustom|__ie_onload|animationSpeed|captions|imageCursor|imagePath|imagesHeight|imagesM||preloadImages|reflectionGET|reflectionPNG|reflectPath|scrollbarP||sliderCursor||slideshowSpeed|slideshowAutoplay|startID|glideToStartID|startAnimation|in|createStructure|buttonNextDiv|buttonPreviousDiv|offsetWidth|paddingTop|createTextNode|loading|button|loadingStatus|addResizeEvent|offsetLeft|02|cursor|totalImagesWidth|hidden|left|click|addInterruptEvent|action|wheelDelta|detail|drag|mouseup|clientX|scrollLeft|isOnNavigationDiv|isBusy|attachEvent|on|removeEventListener|detachEvent|to|detach|id|preventDefault|add|test|readyState|getElementsByTagName|load|script|ImageFlow|pointer|imageflow|85|75||location|135|90|bgc|ffffff|resize|1500|80|_images|_caption|_navigation|_scrollbar|_slider|_next|_previous|_slideshow|reflect|php|img|loading_txt|loading_bar|caption|scrollbar|previous|next|navigation|removeChild|_loading|1000|_loading_bar|replaceChild|firstChild|marginTop|onmousedown|longdesc|xPosition|position|relative|inline|paddingLeft|5000|sqrt|10000|block|top|alt|nbsp|innerHTML|pause|setInterval|play|clearInterval|DOMMouseScroll|mousewheel|120|mousemove|onselectstart|documentElement|touchstart|touchmove|touchend|onkeydown|keyCode|alert|Pointer|is|perhaps|you|are|trying|an|unattached|filter|alpha|createElement|_|class|className|returnValue|remove|delete|KHTML|WebKit|navigator|userAgent|loaded|250|DOMContentLoaded|cc_on|_win32|_win64|write|defer|onreadystatechange|end|domReady'.split('|'),0,{}))

/* Create ImageFlow instances when the DOM structure has been loaded */
domReady(function()
{
	var instanceOne = new ImageFlow();
	instanceOne.init({ ImageFlowID:'myImageFlow' });
	var target_2 = new ImageFlow();
target_2.init({ ImageFlowID: 'myImageFlow', 
                    onClick: function() {window.open(this.url, '_blank', 
                                'width=830,height=740,left=200,top=200');} });
});

