Mercurial > public > madeira
changeset 18:10be1f4f121b
Replacing thickbox with fancybox.
line wrap: on
line diff
--- a/media/css/thickbox.css Sun Aug 29 19:12:41 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,163 +0,0 @@ -/* ----------------------------------------------------------------------------------------------------------------*/ -/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/ -/* ----------------------------------------------------------------------------------------------------------------*/ -/* *{padding: 0; margin: 0;} */ - -/* ----------------------------------------------------------------------------------------------------------------*/ -/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/ -/* ----------------------------------------------------------------------------------------------------------------*/ -#TB_window { - font: 12px Arial, Helvetica, sans-serif; - color: #333333; -} - -#TB_secondLine { - font: 10px Arial, Helvetica, sans-serif; - color:#666666; -} - -#TB_window a:link {color: #666666;} -#TB_window a:visited {color: #666666;} -#TB_window a:hover {color: #000;} -#TB_window a:active {color: #666666;} -#TB_window a:focus{color: #666666;} - -/* ----------------------------------------------------------------------------------------------------------------*/ -/* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/ -/* ----------------------------------------------------------------------------------------------------------------*/ -#TB_overlay { - position: fixed; - z-index:100; - top: 0px; - left: 0px; - height:100%; - width:100%; -} - -.TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;} -.TB_overlayBG { - background-color:#000; - filter:alpha(opacity=75); - -moz-opacity: 0.75; - opacity: 0.75; -} - -* html #TB_overlay { /* ie6 hack */ - position: absolute; - height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); -} - -#TB_window { - position: fixed; - background: #ffffff; - z-index: 102; - color:#000000; - display:none; - border: 4px solid #525252; - text-align:left; - top:50%; - left:50%; -} - -* html #TB_window { /* ie6 hack */ -position: absolute; -margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); -} - -#TB_window img#TB_Image { - display:block; - margin: 15px 0 0 15px; - border-right: 1px solid #ccc; - border-bottom: 1px solid #ccc; - border-top: 1px solid #666; - border-left: 1px solid #666; -} - -#TB_caption{ - height:25px; - padding:7px 30px 10px 25px; - float:left; -} - -#TB_closeWindow{ - height:25px; - padding:11px 25px 10px 0; - float:right; -} - -#TB_closeAjaxWindow{ - padding:7px 10px 5px 0; - margin-bottom:1px; - text-align:right; - float:right; -} - -#TB_ajaxWindowTitle{ - float:left; - padding:7px 0 5px 10px; - margin-bottom:1px; -} - -#TB_title{ - background-color:#e8e8e8; - height:27px; -} - -#TB_ajaxContent{ - clear:both; - padding:2px 15px 15px 15px; - overflow:auto; - text-align:left; - line-height:1.4em; -} - -#TB_ajaxContent.TB_modal{ - padding:15px; -} - -#TB_ajaxContent p{ - padding:5px 0px 5px 0px; -} - -#TB_load{ - position: fixed; - display:none; - height:13px; - width:208px; - z-index:103; - top: 50%; - left: 50%; - margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */ -} - -* html #TB_load { /* ie6 hack */ -position: absolute; -margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); -} - -#TB_HideSelect{ - z-index:99; - position:fixed; - top: 0; - left: 0; - background-color:#fff; - border:none; - filter:alpha(opacity=0); - -moz-opacity: 0; - opacity: 0; - height:100%; - width:100%; -} - -* html #TB_HideSelect { /* ie6 hack */ - position: absolute; - height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); -} - -#TB_iframeContent{ - clear:both; - border:none; - margin-bottom:-1px; - margin-top:1px; - _margin-bottom:1px; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/js/fancybox/jquery.easing-1.3.pack.js Wed Sep 08 00:43:03 2010 +0000 @@ -0,0 +1,72 @@ +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +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}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{})) + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright © 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/js/fancybox/jquery.fancybox-1.3.1.css Wed Sep 08 00:43:03 2010 +0000 @@ -0,0 +1,363 @@ +/* + * FancyBox - jQuery Plugin + * Simple and fancy lightbox alternative + * + * Examples and documentation at: http://fancybox.net + * + * Copyright (c) 2008 - 2010 Janis Skarnelis + * + * Version: 1.3.1 (05/03/2010) + * Requires: jQuery v1.3+ + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + +#fancybox-loading { + position: fixed; + top: 50%; + left: 50%; + height: 40px; + width: 40px; + margin-top: -20px; + margin-left: -20px; + cursor: pointer; + overflow: hidden; + z-index: 1104; + display: none; +} + +* html #fancybox-loading { /* IE6 */ + position: absolute; + margin-top: 0; +} + +#fancybox-loading div { + position: absolute; + top: 0; + left: 0; + width: 40px; + height: 480px; + background-image: url('fancybox.png'); +} + +#fancybox-overlay { + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + background: #000; + z-index: 1100; + display: none; +} + +* html #fancybox-overlay { /* IE6 */ + position: absolute; + width: 100%; +} + +#fancybox-tmp { + padding: 0; + margin: 0; + border: 0; + overflow: auto; + display: none; +} + +#fancybox-wrap { + position: absolute; + top: 0; + left: 0; + margin: 0; + padding: 20px; + z-index: 1101; + display: none; +} + +#fancybox-outer { + position: relative; + width: 100%; + height: 100%; + background: #FFF; +} + +#fancybox-inner { + position: absolute; + top: 0; + left: 0; + width: 1px; + height: 1px; + padding: 0; + margin: 0; + outline: none; + overflow: hidden; +} + +#fancybox-hide-sel-frame { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: transparent; +} + +#fancybox-close { + position: absolute; + top: -15px; + right: -15px; + width: 30px; + height: 30px; + background-image: url('fancybox.png'); + background-position: -40px 0px; + cursor: pointer; + z-index: 1103; + display: none; +} + +#fancybox_error { + color: #444; + font: normal 12px/20px Arial; + padding: 7px; + margin: 0; +} + +#fancybox-content { + height: auto; + width: auto; + padding: 0; + margin: 0; +} + +#fancybox-img { + width: 100%; + height: 100%; + padding: 0; + margin: 0; + border: none; + outline: none; + line-height: 0; + vertical-align: top; + -ms-interpolation-mode: bicubic; +} + +#fancybox-frame { + position: relative; + width: 100%; + height: 100%; + border: none; + display: block; +} + +#fancybox-title { + position: absolute; + bottom: 0; + left: 0; + font-family: Arial; + font-size: 12px; + z-index: 1102; +} + +.fancybox-title-inside { + padding: 10px 0; + text-align: center; + color: #333; +} + +.fancybox-title-outside { + padding-top: 5px; + color: #FFF; + text-align: center; + font-weight: bold; +} + +.fancybox-title-over { + color: #FFF; + text-align: left; +} + +#fancybox-title-over { + padding: 10px; + background-image: url('fancy_title_over.png'); + display: block; +} + +#fancybox-title-wrap { + display: inline-block; +} + +#fancybox-title-wrap span { + height: 32px; + float: left; +} + +#fancybox-title-left { + padding-left: 15px; + background-image: url('fancybox.png'); + background-position: -40px -90px; + background-repeat: no-repeat; +} + +#fancybox-title-main { + font-weight: bold; + line-height: 29px; + background-image: url('fancybox-x.png'); + background-position: 0px -40px; + color: #FFF; +} + +#fancybox-title-right { + padding-left: 15px; + background-image: url('fancybox.png'); + background-position: -55px -90px; + background-repeat: no-repeat; +} + +#fancybox-left, #fancybox-right { + position: absolute; + bottom: 0px; + height: 100%; + width: 35%; + cursor: pointer; + outline: none; + background-image: url('blank.gif'); + z-index: 1102; + display: none; +} + +#fancybox-left { + left: 0px; +} + +#fancybox-right { + right: 0px; +} + +#fancybox-left-ico, #fancybox-right-ico { + position: absolute; + top: 50%; + left: -9999px; + width: 30px; + height: 30px; + margin-top: -15px; + cursor: pointer; + z-index: 1102; + display: block; +} + +#fancybox-left-ico { + background-image: url('fancybox.png'); + background-position: -40px -30px; +} + +#fancybox-right-ico { + background-image: url('fancybox.png'); + background-position: -40px -60px; +} + +#fancybox-left:hover, #fancybox-right:hover { + visibility: visible; /* IE6 */ +} + +#fancybox-left:hover span { + left: 20px; +} + +#fancybox-right:hover span { + left: auto; + right: 20px; +} + +.fancy-bg { + position: absolute; + padding: 0; + margin: 0; + border: 0; + width: 20px; + height: 20px; + z-index: 1001; +} + +#fancy-bg-n { + top: -20px; + left: 0; + width: 100%; + background-image: url('fancybox-x.png'); +} + +#fancy-bg-ne { + top: -20px; + right: -20px; + background-image: url('fancybox.png'); + background-position: -40px -162px; +} + +#fancy-bg-e { + top: 0; + right: -20px; + height: 100%; + background-image: url('fancybox-y.png'); + background-position: -20px 0px; +} + +#fancy-bg-se { + bottom: -20px; + right: -20px; + background-image: url('fancybox.png'); + background-position: -40px -182px; +} + +#fancy-bg-s { + bottom: -20px; + left: 0; + width: 100%; + background-image: url('fancybox-x.png'); + background-position: 0px -20px; +} + +#fancy-bg-sw { + bottom: -20px; + left: -20px; + background-image: url('fancybox.png'); + background-position: -40px -142px; +} + +#fancy-bg-w { + top: 0; + left: -20px; + height: 100%; + background-image: url('fancybox-y.png'); +} + +#fancy-bg-nw { + top: -20px; + left: -20px; + background-image: url('fancybox.png'); + background-position: -40px -122px; +} + +/* IE */ + +#fancybox-loading.fancybox-ie div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); } + +.fancybox-ie #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; } +.fancybox-ie #fancybox-title-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-title-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-title-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); } + +.fancybox-ie #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); } + +.fancybox-ie .fancy-bg { background: transparent !important; } + +.fancybox-ie #fancy-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); } +.fancybox-ie #fancy-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); } +.fancybox-ie #fancy-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); } +.fancybox-ie #fancy-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); } +.fancybox-ie #fancy-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); } +.fancybox-ie #fancy-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); } +.fancybox-ie #fancy-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); } +.fancybox-ie #fancy-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/js/fancybox/jquery.fancybox-1.3.1.js Wed Sep 08 00:43:03 2010 +0000 @@ -0,0 +1,1077 @@ +/* + * FancyBox - jQuery Plugin + * Simple and fancy lightbox alternative + * + * Examples and documentation at: http://fancybox.net + * + * Copyright (c) 2008 - 2010 Janis Skarnelis + * + * Version: 1.3.1 (05/03/2010) + * Requires: jQuery v1.3+ + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + +(function($) { + + var tmp, loading, overlay, wrap, outer, inner, close, nav_left, nav_right, + + selectedIndex = 0, selectedOpts = {}, selectedArray = [], currentIndex = 0, currentOpts = {}, currentArray = [], + + ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i, + + loadingTimer, loadingFrame = 1, + + start_pos, final_pos, busy = false, shadow = 20, fx = $.extend($('<div/>')[0], { prop: 0 }), titleh = 0, + + isIE6 = !$.support.opacity && !window.XMLHttpRequest, + + /* + * Private methods + */ + + fancybox_abort = function() { + loading.hide(); + + imgPreloader.onerror = imgPreloader.onload = null; + + if (ajaxLoader) { + ajaxLoader.abort(); + } + + tmp.empty(); + }, + + fancybox_error = function() { + $.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>', { + 'scrolling' : 'no', + 'padding' : 20, + 'transitionIn' : 'none', + 'transitionOut' : 'none' + }); + }, + + fancybox_get_viewport = function() { + return [ $(window).width(), $(window).height(), $(document).scrollLeft(), $(document).scrollTop() ]; + }, + + fancybox_get_zoom_to = function () { + var view = fancybox_get_viewport(), + to = {}, + + margin = currentOpts.margin, + resize = currentOpts.autoScale, + + horizontal_space = (shadow + margin) * 2, + vertical_space = (shadow + margin) * 2, + double_padding = (currentOpts.padding * 2), + + ratio; + + if (currentOpts.width.toString().indexOf('%') > -1) { + to.width = ((view[0] * parseFloat(currentOpts.width)) / 100) - (shadow * 2) ; + resize = false; + + } else { + to.width = currentOpts.width + double_padding; + } + + if (currentOpts.height.toString().indexOf('%') > -1) { + to.height = ((view[1] * parseFloat(currentOpts.height)) / 100) - (shadow * 2); + resize = false; + + } else { + to.height = currentOpts.height + double_padding; + } + + if (resize && (to.width > (view[0] - horizontal_space) || to.height > (view[1] - vertical_space))) { + if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') { + horizontal_space += double_padding; + vertical_space += double_padding; + + ratio = Math.min(Math.min( view[0] - horizontal_space, currentOpts.width) / currentOpts.width, Math.min( view[1] - vertical_space, currentOpts.height) / currentOpts.height); + + to.width = Math.round(ratio * (to.width - double_padding)) + double_padding; + to.height = Math.round(ratio * (to.height - double_padding)) + double_padding; + + } else { + to.width = Math.min(to.width, (view[0] - horizontal_space)); + to.height = Math.min(to.height, (view[1] - vertical_space)); + } + } + + to.top = view[3] + ((view[1] - (to.height + (shadow * 2 ))) * 0.5); + to.left = view[2] + ((view[0] - (to.width + (shadow * 2 ))) * 0.5); + + if (currentOpts.autoScale === false) { + to.top = Math.max(view[3] + margin, to.top); + to.left = Math.max(view[2] + margin, to.left); + } + + return to; + }, + + fancybox_format_title = function(title) { + if (title && title.length) { + switch (currentOpts.titlePosition) { + case 'inside': + return title; + case 'over': + return '<span id="fancybox-title-over">' + title + '</span>'; + default: + return '<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">' + title + '</span><span id="fancybox-title-right"></span></span>'; + } + } + + return false; + }, + + fancybox_process_title = function() { + var title = currentOpts.title, + width = final_pos.width - (currentOpts.padding * 2), + titlec = 'fancybox-title-' + currentOpts.titlePosition; + + $('#fancybox-title').remove(); + + titleh = 0; + + if (currentOpts.titleShow === false) { + return; + } + + title = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(title, currentArray, currentIndex, currentOpts) : fancybox_format_title(title); + + if (!title || title === '') { + return; + } + + $('<div id="fancybox-title" class="' + titlec + '" />').css({ + 'width' : width, + 'paddingLeft' : currentOpts.padding, + 'paddingRight' : currentOpts.padding + }).html(title).appendTo('body'); + + switch (currentOpts.titlePosition) { + case 'inside': + titleh = $("#fancybox-title").outerHeight(true) - currentOpts.padding; + final_pos.height += titleh; + break; + + case 'over': + $('#fancybox-title').css('bottom', currentOpts.padding); + break; + + default: + $('#fancybox-title').css('bottom', $("#fancybox-title").outerHeight(true) * -1); + break; + } + + $('#fancybox-title').appendTo( outer ).hide(); + }, + + fancybox_set_navigation = function() { + $(document).unbind('keydown.fb').bind('keydown.fb', function(e) { + if (e.keyCode == 27 && currentOpts.enableEscapeButton) { + e.preventDefault(); + $.fancybox.close(); + + } else if (e.keyCode == 37) { + e.preventDefault(); + $.fancybox.prev(); + + } else if (e.keyCode == 39) { + e.preventDefault(); + $.fancybox.next(); + } + }); + + if ($.fn.mousewheel) { + wrap.unbind('mousewheel.fb'); + + if (currentArray.length > 1) { + wrap.bind('mousewheel.fb', function(e, delta) { + e.preventDefault(); + + if (busy || delta === 0) { + return; + } + + if (delta > 0) { + $.fancybox.prev(); + } else { + $.fancybox.next(); + } + }); + } + } + + if (!currentOpts.showNavArrows) { return; } + + if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex !== 0) { + nav_left.show(); + } + + if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex != (currentArray.length -1)) { + nav_right.show(); + } + }, + + fancybox_preload_images = function() { + var href, + objNext; + + if ((currentArray.length -1) > currentIndex) { + href = currentArray[ currentIndex + 1 ].href; + + if (typeof href !== 'undefined' && href.match(imgRegExp)) { + objNext = new Image(); + objNext.src = href; + } + } + + if (currentIndex > 0) { + href = currentArray[ currentIndex - 1 ].href; + + if (typeof href !== 'undefined' && href.match(imgRegExp)) { + objNext = new Image(); + objNext.src = href; + } + } + }, + + _finish = function () { + inner.css('overflow', (currentOpts.scrolling == 'auto' ? (currentOpts.type == 'image' || currentOpts.type == 'iframe' || currentOpts.type == 'swf' ? 'hidden' : 'auto') : (currentOpts.scrolling == 'yes' ? 'auto' : 'visible'))); + + if (!$.support.opacity) { + inner.get(0).style.removeAttribute('filter'); + wrap.get(0).style.removeAttribute('filter'); + } + + $('#fancybox-title').show(); + + if (currentOpts.hideOnContentClick) { + inner.one('click', $.fancybox.close); + } + if (currentOpts.hideOnOverlayClick) { + overlay.one('click', $.fancybox.close); + } + + if (currentOpts.showCloseButton) { + close.show(); + } + + fancybox_set_navigation(); + + $(window).bind("resize.fb", $.fancybox.center); + + if (currentOpts.centerOnScroll) { + $(window).bind("scroll.fb", $.fancybox.center); + } else { + $(window).unbind("scroll.fb"); + } + + if ($.isFunction(currentOpts.onComplete)) { + currentOpts.onComplete(currentArray, currentIndex, currentOpts); + } + + busy = false; + + fancybox_preload_images(); + }, + + fancybox_draw = function(pos) { + var width = Math.round(start_pos.width + (final_pos.width - start_pos.width) * pos), + height = Math.round(start_pos.height + (final_pos.height - start_pos.height) * pos), + + top = Math.round(start_pos.top + (final_pos.top - start_pos.top) * pos), + left = Math.round(start_pos.left + (final_pos.left - start_pos.left) * pos); + + wrap.css({ + 'width' : width + 'px', + 'height' : height + 'px', + 'top' : top + 'px', + 'left' : left + 'px' + }); + + width = Math.max(width - currentOpts.padding * 2, 0); + height = Math.max(height - (currentOpts.padding * 2 + (titleh * pos)), 0); + + inner.css({ + 'width' : width + 'px', + 'height' : height + 'px' + }); + + if (typeof final_pos.opacity !== 'undefined') { + wrap.css('opacity', (pos < 0.5 ? 0.5 : pos)); + } + }, + + fancybox_get_obj_pos = function(obj) { + var pos = obj.offset(); + + pos.top += parseFloat( obj.css('paddingTop') ) || 0; + pos.left += parseFloat( obj.css('paddingLeft') ) || 0; + + pos.top += parseFloat( obj.css('border-top-width') ) || 0; + pos.left += parseFloat( obj.css('border-left-width') ) || 0; + + pos.width = obj.width(); + pos.height = obj.height(); + + return pos; + }, + + fancybox_get_zoom_from = function() { + var orig = selectedOpts.orig ? $(selectedOpts.orig) : false, + from = {}, + pos, + view; + + if (orig && orig.length) { + pos = fancybox_get_obj_pos(orig); + + from = { + width : (pos.width + (currentOpts.padding * 2)), + height : (pos.height + (currentOpts.padding * 2)), + top : (pos.top - currentOpts.padding - shadow), + left : (pos.left - currentOpts.padding - shadow) + }; + + } else { + view = fancybox_get_viewport(); + + from = { + width : 1, + height : 1, + top : view[3] + view[1] * 0.5, + left : view[2] + view[0] * 0.5 + }; + } + + return from; + }, + + fancybox_show = function() { + loading.hide(); + + if (wrap.is(":visible") && $.isFunction(currentOpts.onCleanup)) { + if (currentOpts.onCleanup(currentArray, currentIndex, currentOpts) === false) { + $.event.trigger('fancybox-cancel'); + + busy = false; + return; + } + } + + currentArray = selectedArray; + currentIndex = selectedIndex; + currentOpts = selectedOpts; + + inner.get(0).scrollTop = 0; + inner.get(0).scrollLeft = 0; + + if (currentOpts.overlayShow) { + if (isIE6) { + $('select:not(#fancybox-tmp select)').filter(function() { + return this.style.visibility !== 'hidden'; + }).css({'visibility':'hidden'}).one('fancybox-cleanup', function() { + this.style.visibility = 'inherit'; + }); + } + + overlay.css({ + 'background-color' : currentOpts.overlayColor, + 'opacity' : currentOpts.overlayOpacity + }).unbind().show(); + } + + final_pos = fancybox_get_zoom_to(); + + fancybox_process_title(); + + if (wrap.is(":visible")) { + $( close.add( nav_left ).add( nav_right ) ).hide(); + + var pos = wrap.position(), + equal; + + start_pos = { + top : pos.top , + left : pos.left, + width : wrap.width(), + height : wrap.height() + }; + + equal = (start_pos.width == final_pos.width && start_pos.height == final_pos.height); + + inner.fadeOut(currentOpts.changeFade, function() { + var finish_resizing = function() { + inner.html( tmp.contents() ).fadeIn(currentOpts.changeFade, _finish); + }; + + $.event.trigger('fancybox-change'); + + inner.empty().css('overflow', 'hidden'); + + if (equal) { + inner.css({ + top : currentOpts.padding, + left : currentOpts.padding, + width : Math.max(final_pos.width - (currentOpts.padding * 2), 1), + height : Math.max(final_pos.height - (currentOpts.padding * 2) - titleh, 1) + }); + + finish_resizing(); + + } else { + inner.css({ + top : currentOpts.padding, + left : currentOpts.padding, + width : Math.max(start_pos.width - (currentOpts.padding * 2), 1), + height : Math.max(start_pos.height - (currentOpts.padding * 2), 1) + }); + + fx.prop = 0; + + $(fx).animate({ prop: 1 }, { + duration : currentOpts.changeSpeed, + easing : currentOpts.easingChange, + step : fancybox_draw, + complete : finish_resizing + }); + } + }); + + return; + } + + wrap.css('opacity', 1); + + if (currentOpts.transitionIn == 'elastic') { + start_pos = fancybox_get_zoom_from(); + + inner.css({ + top : currentOpts.padding, + left : currentOpts.padding, + width : Math.max(start_pos.width - (currentOpts.padding * 2), 1), + height : Math.max(start_pos.height - (currentOpts.padding * 2), 1) + }) + .html( tmp.contents() ); + + wrap.css(start_pos).show(); + + if (currentOpts.opacity) { + final_pos.opacity = 0; + } + + fx.prop = 0; + + $(fx).animate({ prop: 1 }, { + duration : currentOpts.speedIn, + easing : currentOpts.easingIn, + step : fancybox_draw, + complete : _finish + }); + + } else { + inner.css({ + top : currentOpts.padding, + left : currentOpts.padding, + width : Math.max(final_pos.width - (currentOpts.padding * 2), 1), + height : Math.max(final_pos.height - (currentOpts.padding * 2) - titleh, 1) + }) + .html( tmp.contents() ); + + wrap.css( final_pos ).fadeIn( currentOpts.transitionIn == 'none' ? 0 : currentOpts.speedIn, _finish ); + } + }, + + fancybox_process_inline = function() { + tmp.width( selectedOpts.width ); + tmp.height( selectedOpts.height ); + + if (selectedOpts.width == 'auto') { + selectedOpts.width = tmp.width(); + } + if (selectedOpts.height == 'auto') { + selectedOpts.height = tmp.height(); + } + + fancybox_show(); + }, + + fancybox_process_image = function() { + busy = true; + + selectedOpts.width = imgPreloader.width; + selectedOpts.height = imgPreloader.height; + + $("<img />").attr({ + 'id' : 'fancybox-img', + 'src' : imgPreloader.src, + 'alt' : selectedOpts.title + }).appendTo( tmp ); + + fancybox_show(); + }, + + fancybox_start = function() { + fancybox_abort(); + + var obj = selectedArray[ selectedIndex ], + href, + type, + title, + str, + emb, + selector, + data; + + selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typeof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybox'))); + title = obj.title || $(obj).title || selectedOpts.title || ''; + + if (obj.nodeName && !selectedOpts.orig) { + selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj); + } + + if (title === '' && selectedOpts.orig) { + title = selectedOpts.orig.attr('alt'); + } + + if (obj.nodeName && (/^(?:javascript|#)/i).test(obj.href)) { + href = selectedOpts.href || null; + } else { + href = selectedOpts.href || obj.href || null; + } + + if (selectedOpts.type) { + type = selectedOpts.type; + + if (!href) { + href = selectedOpts.content; + } + + } else if (selectedOpts.content) { + type = 'html'; + + } else if (href) { + if (href.match(imgRegExp)) { + type = 'image'; + + } else if (href.match(swfRegExp)) { + type = 'swf'; + + } else if ($(obj).hasClass("iframe")) { + type = 'iframe'; + + } else if (href.match(/#/)) { + obj = href.substr(href.indexOf("#")); + + type = $(obj).length > 0 ? 'inline' : 'ajax'; + } else { + type = 'ajax'; + } + } else { + type = 'inline'; + } + + selectedOpts.type = type; + selectedOpts.href = href; + selectedOpts.title = title; + + if (selectedOpts.autoDimensions && selectedOpts.type !== 'iframe' && selectedOpts.type !== 'swf') { + selectedOpts.width = 'auto'; + selectedOpts.height = 'auto'; + } + + if (selectedOpts.modal) { + selectedOpts.overlayShow = true; + selectedOpts.hideOnOverlayClick = false; + selectedOpts.hideOnContentClick = false; + selectedOpts.enableEscapeButton = false; + selectedOpts.showCloseButton = false; + } + + if ($.isFunction(selectedOpts.onStart)) { + if (selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts) === false) { + busy = false; + return; + } + } + + tmp.css('padding', (shadow + selectedOpts.padding + selectedOpts.margin)); + + $('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() { + $(this).replaceWith(inner.children()); + }); + + switch (type) { + case 'html' : + tmp.html( selectedOpts.content ); + fancybox_process_inline(); + break; + + case 'inline' : + $('<div class="fancybox-inline-tmp" />').hide().insertBefore( $(obj) ).bind('fancybox-cleanup', function() { + $(this).replaceWith(inner.children()); + }).bind('fancybox-cancel', function() { + $(this).replaceWith(tmp.children()); + }); + + $(obj).appendTo(tmp); + + fancybox_process_inline(); + break; + + case 'image': + busy = false; + + $.fancybox.showActivity(); + + imgPreloader = new Image(); + + imgPreloader.onerror = function() { + fancybox_error(); + }; + + imgPreloader.onload = function() { + imgPreloader.onerror = null; + imgPreloader.onload = null; + fancybox_process_image(); + }; + + imgPreloader.src = href; + + break; + + case 'swf': + str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"><param name="movie" value="' + href + '"></param>'; + emb = ''; + + $.each(selectedOpts.swf, function(name, val) { + str += '<param name="' + name + '" value="' + val + '"></param>'; + emb += ' ' + name + '="' + val + '"'; + }); + + str += '<embed src="' + href + '" type="application/x-shockwave-flash" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"' + emb + '></embed></object>'; + + tmp.html(str); + + fancybox_process_inline(); + break; + + case 'ajax': + selector = href.split('#', 2); + data = selectedOpts.ajax.data || {}; + + if (selector.length > 1) { + href = selector[0]; + + if (typeof data == "string") { + data += '&selector=' + selector[1]; + } else { + data.selector = selector[1]; + } + } + + busy = false; + $.fancybox.showActivity(); + + ajaxLoader = $.ajax($.extend(selectedOpts.ajax, { + url : href, + data : data, + error : fancybox_error, + success : function(data, textStatus, XMLHttpRequest) { + if (ajaxLoader.status == 200) { + tmp.html( data ); + fancybox_process_inline(); + } + } + })); + + break; + + case 'iframe' : + $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" scrolling="' + selectedOpts.scrolling + '" src="' + selectedOpts.href + '"></iframe>').appendTo(tmp); + fancybox_show(); + break; + } + }, + + fancybox_animate_loading = function() { + if (!loading.is(':visible')){ + clearInterval(loadingTimer); + return; + } + + $('div', loading).css('top', (loadingFrame * -40) + 'px'); + + loadingFrame = (loadingFrame + 1) % 12; + }, + + fancybox_init = function() { + if ($("#fancybox-wrap").length) { + return; + } + + $('body').append( + tmp = $('<div id="fancybox-tmp"></div>'), + loading = $('<div id="fancybox-loading"><div></div></div>'), + overlay = $('<div id="fancybox-overlay"></div>'), + wrap = $('<div id="fancybox-wrap"></div>') + ); + + if (!$.support.opacity) { + wrap.addClass('fancybox-ie'); + loading.addClass('fancybox-ie'); + } + + outer = $('<div id="fancybox-outer"></div>') + .append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>') + .appendTo( wrap ); + + outer.append( + inner = $('<div id="fancybox-inner"></div>'), + close = $('<a id="fancybox-close"></a>'), + + nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'), + nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>') + ); + + close.click($.fancybox.close); + loading.click($.fancybox.cancel); + + nav_left.click(function(e) { + e.preventDefault(); + $.fancybox.prev(); + }); + + nav_right.click(function(e) { + e.preventDefault(); + $.fancybox.next(); + }); + + if (isIE6) { + overlay.get(0).style.setExpression('height', "document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'"); + loading.get(0).style.setExpression('top', "(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'"); + + outer.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>'); + } + }; + + /* + * Public methods + */ + + $.fn.fancybox = function(options) { + $(this) + .data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {}))) + .unbind('click.fb').bind('click.fb', function(e) { + e.preventDefault(); + + if (busy) { + return; + } + + busy = true; + + $(this).blur(); + + selectedArray = []; + selectedIndex = 0; + + var rel = $(this).attr('rel') || ''; + + if (!rel || rel == '' || rel === 'nofollow') { + selectedArray.push(this); + + } else { + selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]"); + selectedIndex = selectedArray.index( this ); + } + + fancybox_start(); + + return false; + }); + + return this; + }; + + $.fancybox = function(obj) { + if (busy) { + return; + } + + busy = true; + + var opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {}; + + selectedArray = []; + selectedIndex = opts.index || 0; + + if ($.isArray(obj)) { + for (var i = 0, j = obj.length; i < j; i++) { + if (typeof obj[i] == 'object') { + $(obj[i]).data('fancybox', $.extend({}, opts, obj[i])); + } else { + obj[i] = $({}).data('fancybox', $.extend({content : obj[i]}, opts)); + } + } + + selectedArray = jQuery.merge(selectedArray, obj); + + } else { + if (typeof obj == 'object') { + $(obj).data('fancybox', $.extend({}, opts, obj)); + } else { + obj = $({}).data('fancybox', $.extend({content : obj}, opts)); + } + + selectedArray.push(obj); + } + + if (selectedIndex > selectedArray.length || selectedIndex < 0) { + selectedIndex = 0; + } + + fancybox_start(); + }; + + $.fancybox.showActivity = function() { + clearInterval(loadingTimer); + + loading.show(); + loadingTimer = setInterval(fancybox_animate_loading, 66); + }; + + $.fancybox.hideActivity = function() { + loading.hide(); + }; + + $.fancybox.next = function() { + return $.fancybox.pos( currentIndex + 1); + }; + + $.fancybox.prev = function() { + return $.fancybox.pos( currentIndex - 1); + }; + + $.fancybox.pos = function(pos) { + if (busy) { + return; + } + + pos = parseInt(pos, 10); + + if (pos > -1 && currentArray.length > pos) { + selectedIndex = pos; + fancybox_start(); + } + + if (currentOpts.cyclic && currentArray.length > 1 && pos < 0) { + selectedIndex = currentArray.length - 1; + fancybox_start(); + } + + if (currentOpts.cyclic && currentArray.length > 1 && pos >= currentArray.length) { + selectedIndex = 0; + fancybox_start(); + } + + return; + }; + + $.fancybox.cancel = function() { + if (busy) { + return; + } + + busy = true; + + $.event.trigger('fancybox-cancel'); + + fancybox_abort(); + + if (selectedOpts && $.isFunction(selectedOpts.onCancel)) { + selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts); + } + + busy = false; + }; + + // Note: within an iframe use - parent.$.fancybox.close(); + $.fancybox.close = function() { + if (busy || wrap.is(':hidden')) { + return; + } + + busy = true; + + if (currentOpts && $.isFunction(currentOpts.onCleanup)) { + if (currentOpts.onCleanup(currentArray, currentIndex, currentOpts) === false) { + busy = false; + return; + } + } + + fancybox_abort(); + + $(close.add( nav_left ).add( nav_right )).hide(); + + $('#fancybox-title').remove(); + + wrap.add(inner).add(overlay).unbind(); + + $(window).unbind("resize.fb scroll.fb"); + $(document).unbind('keydown.fb'); + + function _cleanup() { + overlay.fadeOut('fast'); + + wrap.hide(); + + $.event.trigger('fancybox-cleanup'); + + inner.empty(); + + if ($.isFunction(currentOpts.onClosed)) { + currentOpts.onClosed(currentArray, currentIndex, currentOpts); + } + + currentArray = selectedOpts = []; + currentIndex = selectedIndex = 0; + currentOpts = selectedOpts = {}; + + busy = false; + } + + inner.css('overflow', 'hidden'); + + if (currentOpts.transitionOut == 'elastic') { + start_pos = fancybox_get_zoom_from(); + + var pos = wrap.position(); + + final_pos = { + top : pos.top , + left : pos.left, + width : wrap.width(), + height : wrap.height() + }; + + if (currentOpts.opacity) { + final_pos.opacity = 1; + } + + fx.prop = 1; + + $(fx).animate({ prop: 0 }, { + duration : currentOpts.speedOut, + easing : currentOpts.easingOut, + step : fancybox_draw, + complete : _cleanup + }); + + } else { + wrap.fadeOut( currentOpts.transitionOut == 'none' ? 0 : currentOpts.speedOut, _cleanup); + } + }; + + $.fancybox.resize = function() { + var c, h; + + if (busy || wrap.is(':hidden')) { + return; + } + + busy = true; + + c = inner.wrapInner("<div style='overflow:auto'></div>").children(); + h = c.height(); + + wrap.css({height: h + (currentOpts.padding * 2) + titleh}); + inner.css({height: h}); + + c.replaceWith(c.children()); + + $.fancybox.center(); + }; + + $.fancybox.center = function() { + busy = true; + + var view = fancybox_get_viewport(), + margin = currentOpts.margin, + to = {}; + + to.top = view[3] + ((view[1] - ((wrap.height() - titleh) + (shadow * 2 ))) * 0.5); + to.left = view[2] + ((view[0] - (wrap.width() + (shadow * 2 ))) * 0.5); + + to.top = Math.max(view[3] + margin, to.top); + to.left = Math.max(view[2] + margin, to.left); + + wrap.css(to); + + busy = false; + }; + + $.fn.fancybox.defaults = { + padding : 10, + margin : 20, + opacity : false, + modal : false, + cyclic : false, + scrolling : 'auto', // 'auto', 'yes' or 'no' + + width : 560, + height : 340, + + autoScale : true, + autoDimensions : true, + centerOnScroll : false, + + ajax : {}, + swf : { wmode: 'transparent' }, + + hideOnOverlayClick : true, + hideOnContentClick : false, + + overlayShow : true, + overlayOpacity : 0.3, + overlayColor : '#666', + + titleShow : true, + titlePosition : 'outside', // 'outside', 'inside' or 'over' + titleFormat : null, + + transitionIn : 'fade', // 'elastic', 'fade' or 'none' + transitionOut : 'fade', // 'elastic', 'fade' or 'none' + + speedIn : 300, + speedOut : 300, + + changeSpeed : 300, + changeFade : 'fast', + + easingIn : 'swing', + easingOut : 'swing', + + showCloseButton : true, + showNavArrows : true, + enableEscapeButton : true, + + onStart : null, + onCancel : null, + onComplete : null, + onCleanup : null, + onClosed : null + }; + + $(document).ready(function() { + fancybox_init(); + }); + +})(jQuery); \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/js/fancybox/jquery.fancybox-1.3.1.pack.js Wed Sep 08 00:43:03 2010 +0000 @@ -0,0 +1,44 @@ +/* + * FancyBox - jQuery Plugin + * Simple and fancy lightbox alternative + * + * Examples and documentation at: http://fancybox.net + * + * Copyright (c) 2008 - 2010 Janis Skarnelis + * + * Version: 1.3.1 (05/03/2010) + * Requires: jQuery v1.3+ + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + +(function(b){var m,u,x,g,D,i,z,A,B,p=0,e={},q=[],n=0,c={},j=[],E=null,s=new Image,G=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,S=/[^\.]\.(swf)\s*$/i,H,I=1,k,l,h=false,y=b.extend(b("<div/>")[0],{prop:0}),v=0,O=!b.support.opacity&&!window.XMLHttpRequest,J=function(){u.hide();s.onerror=s.onload=null;E&&E.abort();m.empty()},P=function(){b.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})}, +K=function(){return[b(window).width(),b(window).height(),b(document).scrollLeft(),b(document).scrollTop()]},T=function(){var a=K(),d={},f=c.margin,o=c.autoScale,t=(20+f)*2,w=(20+f)*2,r=c.padding*2;if(c.width.toString().indexOf("%")>-1){d.width=a[0]*parseFloat(c.width)/100-40;o=false}else d.width=c.width+r;if(c.height.toString().indexOf("%")>-1){d.height=a[1]*parseFloat(c.height)/100-40;o=false}else d.height=c.height+r;if(o&&(d.width>a[0]-t||d.height>a[1]-w))if(e.type=="image"||e.type=="swf"){t+=r; +w+=r;o=Math.min(Math.min(a[0]-t,c.width)/c.width,Math.min(a[1]-w,c.height)/c.height);d.width=Math.round(o*(d.width-r))+r;d.height=Math.round(o*(d.height-r))+r}else{d.width=Math.min(d.width,a[0]-t);d.height=Math.min(d.height,a[1]-w)}d.top=a[3]+(a[1]-(d.height+40))*0.5;d.left=a[2]+(a[0]-(d.width+40))*0.5;if(c.autoScale===false){d.top=Math.max(a[3]+f,d.top);d.left=Math.max(a[2]+f,d.left)}return d},U=function(a){if(a&&a.length)switch(c.titlePosition){case "inside":return a;case "over":return'<span id="fancybox-title-over">'+ +a+"</span>";default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+a+'</span><span id="fancybox-title-right"></span></span>'}return false},V=function(){var a=c.title,d=l.width-c.padding*2,f="fancybox-title-"+c.titlePosition;b("#fancybox-title").remove();v=0;if(c.titleShow!==false){a=b.isFunction(c.titleFormat)?c.titleFormat(a,j,n,c):U(a);if(!(!a||a==="")){b('<div id="fancybox-title" class="'+f+'" />').css({width:d,paddingLeft:c.padding, +paddingRight:c.padding}).html(a).appendTo("body");switch(c.titlePosition){case "inside":v=b("#fancybox-title").outerHeight(true)-c.padding;l.height+=v;break;case "over":b("#fancybox-title").css("bottom",c.padding);break;default:b("#fancybox-title").css("bottom",b("#fancybox-title").outerHeight(true)*-1);break}b("#fancybox-title").appendTo(D).hide()}}},W=function(){b(document).unbind("keydown.fb").bind("keydown.fb",function(a){if(a.keyCode==27&&c.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if(a.keyCode== +37){a.preventDefault();b.fancybox.prev()}else if(a.keyCode==39){a.preventDefault();b.fancybox.next()}});if(b.fn.mousewheel){g.unbind("mousewheel.fb");j.length>1&&g.bind("mousewheel.fb",function(a,d){a.preventDefault();h||d===0||(d>0?b.fancybox.prev():b.fancybox.next())})}if(c.showNavArrows){if(c.cyclic&&j.length>1||n!==0)A.show();if(c.cyclic&&j.length>1||n!=j.length-1)B.show()}},X=function(){var a,d;if(j.length-1>n){a=j[n+1].href;if(typeof a!=="undefined"&&a.match(G)){d=new Image;d.src=a}}if(n>0){a= +j[n-1].href;if(typeof a!=="undefined"&&a.match(G)){d=new Image;d.src=a}}},L=function(){i.css("overflow",c.scrolling=="auto"?c.type=="image"||c.type=="iframe"||c.type=="swf"?"hidden":"auto":c.scrolling=="yes"?"auto":"visible");if(!b.support.opacity){i.get(0).style.removeAttribute("filter");g.get(0).style.removeAttribute("filter")}b("#fancybox-title").show();c.hideOnContentClick&&i.one("click",b.fancybox.close);c.hideOnOverlayClick&&x.one("click",b.fancybox.close);c.showCloseButton&&z.show();W();b(window).bind("resize.fb", +b.fancybox.center);c.centerOnScroll?b(window).bind("scroll.fb",b.fancybox.center):b(window).unbind("scroll.fb");b.isFunction(c.onComplete)&&c.onComplete(j,n,c);h=false;X()},M=function(a){var d=Math.round(k.width+(l.width-k.width)*a),f=Math.round(k.height+(l.height-k.height)*a),o=Math.round(k.top+(l.top-k.top)*a),t=Math.round(k.left+(l.left-k.left)*a);g.css({width:d+"px",height:f+"px",top:o+"px",left:t+"px"});d=Math.max(d-c.padding*2,0);f=Math.max(f-(c.padding*2+v*a),0);i.css({width:d+"px",height:f+ +"px"});if(typeof l.opacity!=="undefined")g.css("opacity",a<0.5?0.5:a)},Y=function(a){var d=a.offset();d.top+=parseFloat(a.css("paddingTop"))||0;d.left+=parseFloat(a.css("paddingLeft"))||0;d.top+=parseFloat(a.css("border-top-width"))||0;d.left+=parseFloat(a.css("border-left-width"))||0;d.width=a.width();d.height=a.height();return d},Q=function(){var a=e.orig?b(e.orig):false,d={};if(a&&a.length){a=Y(a);d={width:a.width+c.padding*2,height:a.height+c.padding*2,top:a.top-c.padding-20,left:a.left-c.padding- +20}}else{a=K();d={width:1,height:1,top:a[3]+a[1]*0.5,left:a[2]+a[0]*0.5}}return d},N=function(){u.hide();if(g.is(":visible")&&b.isFunction(c.onCleanup))if(c.onCleanup(j,n,c)===false){b.event.trigger("fancybox-cancel");h=false;return}j=q;n=p;c=e;i.get(0).scrollTop=0;i.get(0).scrollLeft=0;if(c.overlayShow){O&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}); +x.css({"background-color":c.overlayColor,opacity:c.overlayOpacity}).unbind().show()}l=T();V();if(g.is(":visible")){b(z.add(A).add(B)).hide();var a=g.position(),d;k={top:a.top,left:a.left,width:g.width(),height:g.height()};d=k.width==l.width&&k.height==l.height;i.fadeOut(c.changeFade,function(){var f=function(){i.html(m.contents()).fadeIn(c.changeFade,L)};b.event.trigger("fancybox-change");i.empty().css("overflow","hidden");if(d){i.css({top:c.padding,left:c.padding,width:Math.max(l.width-c.padding* +2,1),height:Math.max(l.height-c.padding*2-v,1)});f()}else{i.css({top:c.padding,left:c.padding,width:Math.max(k.width-c.padding*2,1),height:Math.max(k.height-c.padding*2,1)});y.prop=0;b(y).animate({prop:1},{duration:c.changeSpeed,easing:c.easingChange,step:M,complete:f})}})}else{g.css("opacity",1);if(c.transitionIn=="elastic"){k=Q();i.css({top:c.padding,left:c.padding,width:Math.max(k.width-c.padding*2,1),height:Math.max(k.height-c.padding*2,1)}).html(m.contents());g.css(k).show();if(c.opacity)l.opacity= +0;y.prop=0;b(y).animate({prop:1},{duration:c.speedIn,easing:c.easingIn,step:M,complete:L})}else{i.css({top:c.padding,left:c.padding,width:Math.max(l.width-c.padding*2,1),height:Math.max(l.height-c.padding*2-v,1)}).html(m.contents());g.css(l).fadeIn(c.transitionIn=="none"?0:c.speedIn,L)}}},F=function(){m.width(e.width);m.height(e.height);if(e.width=="auto")e.width=m.width();if(e.height=="auto")e.height=m.height();N()},Z=function(){h=true;e.width=s.width;e.height=s.height;b("<img />").attr({id:"fancybox-img", +src:s.src,alt:e.title}).appendTo(m);N()},C=function(){J();var a=q[p],d,f,o,t,w;e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));o=a.title||b(a).title||e.title||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(o===""&&e.orig)o=e.orig.attr("alt");d=a.nodeName&&/^(?:javascript|#)/i.test(a.href)?e.href||null:e.href||a.href||null;if(e.type){f=e.type;if(!d)d=e.content}else if(e.content)f="html";else if(d)if(d.match(G))f= +"image";else if(d.match(S))f="swf";else if(b(a).hasClass("iframe"))f="iframe";else if(d.match(/#/)){a=d.substr(d.indexOf("#"));f=b(a).length>0?"inline":"ajax"}else f="ajax";else f="inline";e.type=f;e.href=d;e.title=o;if(e.autoDimensions&&e.type!=="iframe"&&e.type!=="swf"){e.width="auto";e.height="auto"}if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=false;e.enableEscapeButton=false;e.showCloseButton=false}if(b.isFunction(e.onStart))if(e.onStart(q,p,e)===false){h=false; +return}m.css("padding",20+e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(i.children())});switch(f){case "html":m.html(e.content);F();break;case "inline":b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(i.children())}).bind("fancybox-cancel",function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity(); +s=new Image;s.onerror=function(){P()};s.onload=function(){s.onerror=null;s.onload=null;Z()};s.src=d;break;case "swf":t='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+d+'"></param>';w="";b.each(e.swf,function(r,R){t+='<param name="'+r+'" value="'+R+'"></param>';w+=" "+r+'="'+R+'"'});t+='<embed src="'+d+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+w+"></embed></object>";m.html(t); +F();break;case "ajax":a=d.split("#",2);f=e.ajax.data||{};if(a.length>1){d=a[0];if(typeof f=="string")f+="&selector="+a[1];else f.selector=a[1]}h=false;b.fancybox.showActivity();E=b.ajax(b.extend(e.ajax,{url:d,data:f,error:P,success:function(r){if(E.status==200){m.html(r);F()}}}));break;case "iframe":b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+e.scrolling+'" src="'+e.href+'"></iframe>').appendTo(m);N();break}},$=function(){if(u.is(":visible")){b("div", +u).css("top",I*-40+"px");I=(I+1)%12}else clearInterval(H)},aa=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),u=b('<div id="fancybox-loading"><div></div></div>'),x=b('<div id="fancybox-overlay"></div>'),g=b('<div id="fancybox-wrap"></div>'));if(!b.support.opacity){g.addClass("fancybox-ie");u.addClass("fancybox-ie")}D=b('<div id="fancybox-outer"></div>').append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>').appendTo(g); +D.append(i=b('<div id="fancybox-inner"></div>'),z=b('<a id="fancybox-close"></a>'),A=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),B=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));z.click(b.fancybox.close);u.click(b.fancybox.cancel);A.click(function(a){a.preventDefault();b.fancybox.prev()});B.click(function(a){a.preventDefault();b.fancybox.next()});if(O){x.get(0).style.setExpression("height", +"document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");u.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");D.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>')}}}; +b.fn.fancybox=function(a){b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(d){d.preventDefault();if(!h){h=true;b(this).blur();q=[];p=0;d=b(this).attr("rel")||"";if(!d||d==""||d==="nofollow")q.push(this);else{q=b("a[rel="+d+"], area[rel="+d+"]");p=q.index(this)}C();return false}});return this};b.fancybox=function(a,d){if(!h){h=true;d=typeof d!=="undefined"?d:{};q=[];p=d.index||0;if(b.isArray(a)){for(var f=0,o=a.length;f<o;f++)if(typeof a[f]== +"object")b(a[f]).data("fancybox",b.extend({},d,a[f]));else a[f]=b({}).data("fancybox",b.extend({content:a[f]},d));q=jQuery.merge(q,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},d,a));else a=b({}).data("fancybox",b.extend({content:a},d));q.push(a)}if(p>q.length||p<0)p=0;C()}};b.fancybox.showActivity=function(){clearInterval(H);u.show();H=setInterval($,66)};b.fancybox.hideActivity=function(){u.hide()};b.fancybox.next=function(){return b.fancybox.pos(n+1)};b.fancybox.prev=function(){return b.fancybox.pos(n- +1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a,10);if(a>-1&&j.length>a){p=a;C()}if(c.cyclic&&j.length>1&&a<0){p=j.length-1;C()}if(c.cyclic&&j.length>1&&a>=j.length){p=0;C()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");J();e&&b.isFunction(e.onCancel)&&e.onCancel(q,p,e);h=false}};b.fancybox.close=function(){function a(){x.fadeOut("fast");g.hide();b.event.trigger("fancybox-cleanup");i.empty();b.isFunction(c.onClosed)&&c.onClosed(j,n,c);j=e=[];n=p=0;c=e={};h=false} +if(!(h||g.is(":hidden"))){h=true;if(c&&b.isFunction(c.onCleanup))if(c.onCleanup(j,n,c)===false){h=false;return}J();b(z.add(A).add(B)).hide();b("#fancybox-title").remove();g.add(i).add(x).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");i.css("overflow","hidden");if(c.transitionOut=="elastic"){k=Q();var d=g.position();l={top:d.top,left:d.left,width:g.width(),height:g.height()};if(c.opacity)l.opacity=1;y.prop=1;b(y).animate({prop:0},{duration:c.speedOut,easing:c.easingOut, +step:M,complete:a})}else g.fadeOut(c.transitionOut=="none"?0:c.speedOut,a)}};b.fancybox.resize=function(){var a,d;if(!(h||g.is(":hidden"))){h=true;a=i.wrapInner("<div style='overflow:auto'></div>").children();d=a.height();g.css({height:d+c.padding*2+v});i.css({height:d});a.replaceWith(a.children());b.fancybox.center()}};b.fancybox.center=function(){h=true;var a=K(),d=c.margin,f={};f.top=a[3]+(a[1]-(g.height()-v+40))*0.5;f.left=a[2]+(a[0]-(g.width()+40))*0.5;f.top=Math.max(a[3]+d,f.top);f.left=Math.max(a[2]+ +d,f.left);g.css(f);h=false};b.fn.fancybox.defaults={padding:10,margin:20,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.3,overlayColor:"#666",titleShow:true,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast", +easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null};b(document).ready(function(){aa()})})(jQuery); \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/js/fancybox/jquery.mousewheel-3.0.2.pack.js Wed Sep 08 00:43:03 2010 +0000 @@ -0,0 +1,13 @@ +/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net) + * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. + * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. + * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. + * + * Version: 3.0.2 + * + * Requires: 1.2.2+ + */ + +(function(b){function d(a){var f=[].slice.call(arguments,1),e=0;a=b.event.fix(a||window.event);a.type="mousewheel";if(a.wheelDelta)e=a.wheelDelta/120;if(a.detail)e=-a.detail/3;f.unshift(a,e);return b.event.handle.apply(this,f)}var c=["DOMMouseScroll","mousewheel"];b.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],d,false);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a], +d,false);else this.onmousewheel=null}};b.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); \ No newline at end of file
--- a/media/js/jquery.js Sun Aug 29 19:12:41 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -/* - * jQuery 1.2.4a - New Wave Javascript - * - * Copyright (c) 2008 John Resig (jquery.com) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * $Date: 2008-04-09 21:17:07 -0400 (Wed, 09 Apr 2008) $ - * $Rev: 5225 $ - */ -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}('(J(){7(1d.4d)L w=1d.4d;L E=1d.4d=J(a,b){K 1D E.2k.54(a,b)};7(1d.$)L D=1d.$;1d.$=E;L u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;L G=/^.[^:#\\[\\.]*$/;E.1g=E.2k={54:J(d,b){d=d||T;7(d.15){6[0]=d;6.M=1;K 6}N 7(1u d=="2h"){L c=u.2U(d);7(c&&(c[1]||!b)){7(c[1])d=E.4f([c[1]],b);N{L a=T.5S(c[3]);7(a)7(a.2m!=c[3])K E().2u(d);N{6[0]=a;6.M=1;K 6}N d=[]}}N K 1D E(b).2u(d)}N 7(E.1q(d))K 1D E(T)[E.1g.21?"21":"43"](d);K 6.6Q(d.1j==1I&&d||(d.4y||d.M&&d!=1d&&!d.15&&d[0]!=10&&d[0].15)&&E.2I(d)||[d])},4y:"1.2.4a",86:J(){K 6.M},M:0,23:J(a){K a==10?E.2I(6):6[a]},2H:J(b){L a=E(b);a.5c=6;K a},6Q:J(a){6.M=0;1I.2k.1k.1h(6,a);K 6},R:J(a,b){K E.R(6,a,b)},51:J(b){L a=-1;6.R(J(i){7(6==b)a=i});K a},1G:J(c,a,b){L d=c;7(c.1j==4k)7(a==10)K 6.M&&E[b||"1G"](6[0],c)||10;N{d={};d[c]=a}K 6.R(J(i){Q(c 1o d)E.1G(b?6.W:6,c,E.1m(6,d[c],b,i,c))})},1l:J(b,a){7((b==\'28\'||b==\'1S\')&&2J(a)<0)a=10;K 6.1G(b,a,"29")},1s:J(b){7(1u b!="3Z"&&b!=V)K 6.4H().3s((6[0]&&6[0].2t||T).5A(b));L a="";E.R(b||6,J(){E.R(6.3u,J(){7(6.15!=8)a+=6.15!=1?6.6T:E.1g.1s([6])})});K a},5v:J(b){7(6[0])E(b,6[0].2t).5N().3n(6[0]).2c(J(){L a=6;2a(a.1E)a=a.1E;K a}).3s(6);K 6},8w:J(a){K 6.R(J(){E(6).6J().5v(a)})},8p:J(a){K 6.R(J(){E(6).5v(a)})},3s:J(){K 6.3S(18,P,S,J(a){7(6.15==1)6.3j(a)})},6A:J(){K 6.3S(18,P,P,J(a){7(6.15==1)6.3n(a,6.1E)})},6x:J(){K 6.3S(18,S,S,J(a){6.1b.3n(a,6)})},5f:J(){K 6.3S(18,S,P,J(a){6.1b.3n(a,6.2D)})},3h:J(){K 6.5c||E([])},2u:J(b){L c=E.2c(6,J(a){K E.2u(b,a)});K 6.2H(/[^+>] [^+>]/.17(b)||b.1f("..")>-1?E.5e(c):c)},5N:J(e){L f=6.2c(J(){7(E.14.1c&&!E.3W(6)){L a=6.6h(P),56=T.3p("1y");56.3j(a);K E.4f([56.3d])[0]}N K 6.6h(P)});L d=f.2u("*").50().R(J(){7(6[F]!=10)6[F]=V});7(e===P)6.2u("*").50().R(J(i){7(6.15==3)K;L c=E.O(6,"36");Q(L a 1o c)Q(L b 1o c[a])E.16.1a(d[i],a,c[a][b],c[a][b].O)});K f},1B:J(b){K 6.2H(E.1q(b)&&E.3x(6,J(a,i){K b.1X(a,i)})||E.3b(b,6))},4S:J(b){7(b.1j==4k)7(G.17(b))K 6.2H(E.3b(b,6,P));N b=E.3b(b,6);L a=b.M&&b[b.M-1]!==10&&!b.15;K 6.1B(J(){K a?E.2W(6,b)<0:6!=b})},1a:J(a){K!a?6:6.2H(E.2P(6.23(),a.1j==4k?E(a).23():a.M!=10&&(!a.12||E.12(a,"3e"))?a:[a]))},3E:J(a){K a?E.3b(a,6).M>0:S},7s:J(a){K 6.3E("."+a)},5V:J(b){7(b==10){7(6.M){L c=6[0];7(E.12(c,"2q")){L e=c.3U,5P=[],11=c.11,2Y=c.U=="2q-2Y";7(e<0)K V;Q(L i=2Y?e:0,2f=2Y?e+1:11.M;i<2f;i++){L d=11[i];7(d.2x){b=E.14.1c&&!d.9K.1C.9B?d.1s:d.1C;7(2Y)K b;5P.1k(b)}}K 5P}N K(6[0].1C||"").1r(/\\r/g,"")}K 10}K 6.R(J(){7(6.15!=1)K;7(b.1j==1I&&/5D|5C/.17(6.U))6.3r=(E.2W(6.1C,b)>=0||E.2W(6.2X,b)>=0);N 7(E.12(6,"2q")){L a=b.1j==1I?b:[b];E("9b",6).R(J(){6.2x=(E.2W(6.1C,a)>=0||E.2W(6.1s,a)>=0)});7(!a.M)6.3U=-1}N 6.1C=b})},3o:J(a){K a==10?(6.M?6[0].3d:V):6.4H().3s(a)},6V:J(a){K 6.5f(a).1Q()},6U:J(i){K 6.2B(i,i+1)},2B:J(){K 6.2H(1I.2k.2B.1h(6,18))},2c:J(b){K 6.2H(E.2c(6,J(a,i){K b.1X(a,i,a)}))},50:J(){K 6.1a(6.5c)},O:J(d,b){L a=d.24(".");a[1]=a[1]?"."+a[1]:"";7(b==V){L c=6.5x("8S"+a[1]+"!",[a[0]]);7(c==10&&6.M)c=E.O(6[0],d);K c==V&&a[1]?6.O(a[0]):c}N K 6.1L("8N"+a[1]+"!",[a[0],b]).R(J(){E.O(6,d,b)})},38:J(a){K 6.R(J(){E.38(6,a)})},3S:J(g,f,h,d){L e=6.M>1,3k;K 6.R(J(){7(!3k){3k=E.4f(g,6.2t);7(h)3k.8E()}L b=6;7(f&&E.12(6,"1W")&&E.12(3k[0],"4B"))b=6.3X("1V")[0]||6.3j(6.2t.3p("1V"));L c=E([]);E.R(3k,J(){L a=e?E(6).5N(P)[0]:6;7(E.12(a,"1n")){c=c.1a(a)}N{7(a.15==1)c=c.1a(E("1n",a).1Q());d.1X(b,a)}});c.R(6K)})}};E.2k.54.2k=E.2k;J 6K(i,a){7(a.3V)E.3T({1e:a.3V,3l:S,1H:"1n"});N E.5o(a.1s||a.6H||a.3d||"");7(a.1b)a.1b.35(a)}E.1p=E.1g.1p=J(){L b=18[0]||{},i=1,M=18.M,4w=S,11;7(b.1j==8h){4w=b;b=18[1]||{};i=2}7(1u b!="3Z"&&1u b!="J")b={};7(M==1){b=6;i=0}Q(;i<M;i++)7((11=18[i])!=V)Q(L a 1o 11){7(b===11[a])6G;7(4w&&11[a]&&1u 11[a]=="3Z"&&b[a]&&!11[a].15)b[a]=E.1p(4w,b[a],11[a]);N 7(11[a]!=10)b[a]=11[a]}K b};L F="4d"+(1D 3Q()).3P(),6B=0,5j={};L H=/z-?51|8c-?89|1w|6v|85-?1S/i;E.1p({84:J(a){1d.$=D;7(a)1d.4d=w;K E},1q:J(a){K!!a&&1u a!="2h"&&!a.12&&a.1j!=1I&&/J/i.17(a+"")},3W:J(a){K a.1J&&!a.1i||a.26&&a.2t&&!a.2t.1i},5o:J(a){a=E.3g(a);7(a){L b=T.3X("6p")[0]||T.1J,1n=T.3p("1n");1n.U="1s/4q";7(E.14.1c)1n.1s=a;N 1n.3j(T.5A(a));b.3j(1n);b.35(1n)}},12:J(b,a){K b.12&&b.12.2F()==a.2F()},1T:{},O:J(c,d,b){c=c==1d?5j:c;L a=c[F];7(!a)a=c[F]=++6B;7(d&&!E.1T[a])E.1T[a]={};7(b!=10)E.1T[a][d]=b;K d?E.1T[a][d]:a},38:J(c,b){c=c==1d?5j:c;L a=c[F];7(b){7(E.1T[a]){2Q E.1T[a][b];b="";Q(b 1o E.1T[a])1P;7(!b)E.38(c)}}N{1U{2Q c[F]}1R(e){7(c.5a)c.5a(F)}2Q E.1T[a]}},R:J(c,a,b){7(b){7(c.M==10){Q(L d 1o c)7(a.1h(c[d],b)===S)1P}N Q(L i=0,M=c.M;i<M;i++)7(a.1h(c[i],b)===S)1P}N{7(c.M==10){Q(L d 1o c)7(a.1X(c[d],d,c[d])===S)1P}N Q(L i=0,M=c.M,1C=c[0];i<M&&a.1X(1C,i,1C)!==S;1C=c[++i]){}}K c},1m:J(b,a,c,i,d){7(E.1q(a))a=a.1X(b,i);K a&&a.1j==58&&c=="29"&&!H.17(d)?a+"2R":a},1t:{1a:J(c,b){E.R((b||"").24(/\\s+/),J(i,a){7(c.15==1&&!E.1t.3H(c.1t,a))c.1t+=(c.1t?" ":"")+a})},1Q:J(c,b){7(c.15==1)c.1t=b!=10?E.3x(c.1t.24(/\\s+/),J(a){K!E.1t.3H(b,a)}).6k(" "):""},3H:J(b,a){K E.2W(a,(b.1t||b).3G().24(/\\s+/))>-1}},6g:J(b,c,a){L e={};Q(L d 1o c){e[d]=b.W[d];b.W[d]=c[d]}a.1X(b);Q(L d 1o c)b.W[d]=e[d]},1l:J(d,e,c){7(e=="28"||e=="1S"){L b,40={3F:"55",53:"1Z",19:"46"},3t=e=="28"?["6a","69"]:["67","66"];J 4Z(){b=e=="28"?d.7S:d.7R;L a=0,2y=0;E.R(3t,J(){a+=2J(E.29(d,"4V"+6,P))||0;2y+=2J(E.29(d,"2y"+6+"3B",P))||0});b-=1Y.7P(a+2y)}7(E(d).3E(":4i"))4Z();N E.6g(d,40,4Z);K 1Y.2f(0,b)}K E.29(d,e,c)},29:J(e,k,j){L d;J 3w(b){7(!E.14.2b)K S;L a=T.4h.4R(b,V);K!a||a.4Q("3w")==""}7(k=="1w"&&E.14.1c){d=E.1G(e.W,"1w");K d==""?"1":d}7(E.14.2A&&k=="19"){L c=e.W.4P;e.W.4P="0 7A 7z";e.W.4P=c}7(k.1A(/4g/i))k=y;7(!j&&e.W&&e.W[k])d=e.W[k];N 7(T.4h&&T.4h.4R){7(k.1A(/4g/i))k="4g";k=k.1r(/([A-Z])/g,"-$1").2g();L h=T.4h.4R(e,V);7(h&&!3w(e))d=h.4Q(k);N{L f=[],2K=[];Q(L a=e;a&&3w(a);a=a.1b)2K.5i(a);Q(L i=0;i<2K.M;i++)7(3w(2K[i])){f[i]=2K[i].W.19;2K[i].W.19="46"}d=k=="19"&&f[2K.M-1]!=V?"2G":(h&&h.4Q(k))||"";Q(L i=0;i<f.M;i++)7(f[i]!=V)2K[i].W.19=f[i]}7(k=="1w"&&d=="")d="1"}N 7(e.4r){L g=k.1r(/\\-(\\w)/g,J(a,b){K b.2F()});d=e.4r[k]||e.4r[g];7(!/^\\d+(2R)?$/i.17(d)&&/^\\d/.17(d)){L l=e.W.25,3M=e.3M.25;e.3M.25=e.4r.25;e.W.25=d||0;d=e.W.ad+"2R";e.W.25=l;e.3M.25=3M}}K d},4f:J(l,h){L k=[];h=h||T;7(1u h.3p==\'10\')h=h.2t||h[0]&&h[0].2t||T;E.R(l,J(i,d){7(!d)K;7(d.1j==58)d=d.3G();7(1u d=="2h"){d=d.1r(/(<(\\w+)[^>]*?)\\/>/g,J(b,a,c){K c.1A(/^(ab|3Y|7o|a7|4K|7l|a2|3v|9Z|9X|9U)$/i)?b:a+"></"+c+">"});L f=E.3g(d).2g(),1y=h.3p("1y");L e=!f.1f("<9S")&&[1,"<2q 7h=\'7h\'>","</2q>"]||!f.1f("<9O")&&[1,"<7f>","</7f>"]||f.1A(/^<(9J|1V|9H|9D|9C)/)&&[1,"<1W>","</1W>"]||!f.1f("<4B")&&[2,"<1W><1V>","</1V></1W>"]||(!f.1f("<9A")||!f.1f("<9z"))&&[3,"<1W><1V><4B>","</4B></1V></1W>"]||!f.1f("<7o")&&[2,"<1W><1V></1V><74>","</74></1W>"]||E.14.1c&&[1,"1y<1y>","</1y>"]||[0,"",""];1y.3d=e[1]+d+e[2];2a(e[0]--)1y=1y.5E;7(E.14.1c){L g=!f.1f("<1W")&&f.1f("<1V")<0?1y.1E&&1y.1E.3u:e[1]=="<1W>"&&f.1f("<1V")<0?1y.3u:[];Q(L j=g.M-1;j>=0;--j)7(E.12(g[j],"1V")&&!g[j].3u.M)g[j].1b.35(g[j]);7(/^\\s/.17(d))1y.3n(h.5A(d.1A(/^\\s*/)[0]),1y.1E)}d=E.2I(1y.3u)}7(d.M===0&&(!E.12(d,"3e")&&!E.12(d,"2q")))K;7(d[0]==10||E.12(d,"3e")||d.11)k.1k(d);N k=E.2P(k,d)});K k},1G:J(d,e,c){7(!d||d.15==3||d.15==8)K 10;L f=E.3W(d)?{}:E.40;7(e=="2x"&&E.14.2b)d.1b.3U;7(f[e]){7(c!=10)d[f[e]]=c;K d[f[e]]}N 7(E.14.1c&&e=="W")K E.1G(d.W,"9w",c);N 7(c==10&&E.14.1c&&E.12(d,"3e")&&(e=="9t"||e=="9r"))K d.9p(e).6T;N 7(d.26){7(c!=10){7(e=="U"&&E.12(d,"4K")&&d.1b)6Z"U 9m 9l\'t 9j 9g";d.9d(e,""+c)}7(E.14.1c&&/6X|3V/.17(e)&&!E.3W(d))K d.4F(e,2);K d.4F(e)}N{7(e=="1w"&&E.14.1c){7(c!=10){d.6v=1;d.1B=(d.1B||"").1r(/6W\\([^)]*\\)/,"")+(2J(c).3G()=="9a"?"":"6W(1w="+c*70+")")}K d.1B&&d.1B.1f("1w=")>=0?(2J(d.1B.1A(/1w=([^)]*)/)[1])/70).3G():""}e=e.1r(/-([a-z])/98,J(a,b){K b.2F()});7(c!=10)d[e]=c;K d[e]}},3g:J(a){K(a||"").1r(/^\\s+|\\s+$/g,"")},2I:J(b){L a=[];7(b.1j!=1I)Q(L i=0,M=b.M;i<M;i++)a.1k(b[i]);N a=b.2B(0);K a},2W:J(b,a){Q(L i=0,M=a.M;i<M;i++)7(a[i]==b)K i;K-1},2P:J(a,b){7(E.14.1c){Q(L i=0;b[i];i++)7(b[i].15!=8)a.1k(b[i])}N Q(L i=0;b[i];i++)a.1k(b[i]);K a},5e:J(a){L c=[],2l={};1U{Q(L i=0,M=a.M;i<M;i++){L b=E.O(a[i]);7(!2l[b]){2l[b]=P;c.1k(a[i])}}}1R(e){c=a}K c},3x:J(c,a,d){L b=[];Q(L i=0,M=c.M;i<M;i++)7(!d&&a(c[i],i)||d&&!a(c[i],i))b.1k(c[i]);K b},2c:J(d,a){L c=[];Q(L i=0,M=d.M;i<M;i++){L b=a(d[i],i);7(b!==V&&b!=10){7(b.1j!=1I)b=[b];c=c.7d(b)}}K c}});L v=93.91.2g();E.14={5s:(v.1A(/.+(?:8Y|8X|8W|8U)[\\/: ]([\\d.]+)/)||[])[1],2b:/7g/.17(v),2A:/2A/.17(v),1c:/1c/.17(v)&&!/2A/.17(v),4b:/4b/.17(v)&&!/(8Q|7g)/.17(v)};L y=E.14.1c?"6R":"7i";E.1p({8M:!E.14.1c||T.6O=="7n",40:{"Q":"8J","8I":"1t","4g":y,7i:y,6R:y,3d:"3d",1t:"1t",1C:"1C",31:"31",3r:"3r",8G:"8F",2x:"2x",8D:"8C",3U:"3U",6M:"6M",26:"26",12:"12"}});E.R({6L:J(a){K a.1b},8B:J(a){K E.4A(a,"1b")},8A:J(a){K E.2T(a,2,"2D")},8z:J(a){K E.2T(a,2,"4z")},8y:J(a){K E.4A(a,"2D")},8x:J(a){K E.4A(a,"4z")},8v:J(a){K E.5p(a.1b.1E,a)},8u:J(a){K E.5p(a.1E)},6J:J(a){K E.12(a,"8t")?a.8s||a.8r.T:E.2I(a.3u)}},J(c,d){E.1g[c]=J(b){L a=E.2c(6,d);7(b&&1u b=="2h")a=E.3b(b,a);K 6.2H(E.5e(a))}});E.R({6I:"3s",8q:"6A",3n:"6x",8o:"5f",8n:"6V"},J(c,b){E.1g[c]=J(){L a=18;K 6.R(J(){Q(L i=0,M=a.M;i<M;i++)E(a[i])[b](6)})}});E.R({8m:J(a){E.1G(6,a,"");7(6.15==1)6.5a(a)},8l:J(a){E.1t.1a(6,a)},8k:J(a){E.1t.1Q(6,a)},8j:J(a){E.1t[E.1t.3H(6,a)?"1Q":"1a"](6,a)},1Q:J(a){7(!a||E.1B(a,[6]).r.M){E("*",6).1a(6).R(J(){E.16.1Q(6);E.38(6)});7(6.1b)6.1b.35(6)}},4H:J(){E(">*",6).1Q();2a(6.1E)6.35(6.1E)}},J(a,b){E.1g[a]=J(){K 6.R(b,18)}});E.R(["4x","3B"],J(i,c){L b=c.2g();E.1g[b]=J(a){K 6[0]==1d?E.14.2A&&T.1i["5n"+c]||E.14.2b&&1d["5m"+c]||T.6O=="7n"&&T.1J["5n"+c]||T.1i["5n"+c]:6[0]==T?1Y.2f(1Y.2f(T.1i["5l"+c],T.1J["5l"+c]),1Y.2f(T.1i["5k"+c],T.1J["5k"+c])):a==10?(6.M?E.1l(6[0],b):V):6.1l(b,a.1j==4k?a:a+"2R")}});L C=E.14.2b&&3R(E.14.5s)<8i?"(?:[\\\\w*4v-]|\\\\\\\\.)":"(?:[\\\\w\\8g-\\8f*4v-]|\\\\\\\\.)",6F=1D 4u("^>\\\\s*("+C+"+)"),6E=1D 4u("^("+C+"+)(#)("+C+"+)"),6D=1D 4u("^([#.]?)("+C+"*)");E.1p({6C:{"":J(a,i,m){K m[2]=="*"||E.12(a,m[2])},"#":J(a,i,m){K a.4F("2m")==m[2]},":":{8e:J(a,i,m){K i<m[3]-0},8d:J(a,i,m){K i>m[3]-0},2T:J(a,i,m){K m[3]-0==i},6U:J(a,i,m){K m[3]-0==i},3i:J(a,i){K i==0},3N:J(a,i,m,r){K i==r.M-1},6z:J(a,i){K i%2==0},6y:J(a,i){K i%2},"3i-4t":J(a){K a.1b.3X("*")[0]==a},"3N-4t":J(a){K E.2T(a.1b.5E,1,"4z")==a},"8b-4t":J(a){K!E.2T(a.1b.5E,2,"4z")},6L:J(a){K a.1E},4H:J(a){K!a.1E},8a:J(a,i,m){K(a.6H||a.88||E(a).1s()||"").1f(m[3])>=0},4i:J(a){K"1Z"!=a.U&&E.1l(a,"19")!="2G"&&E.1l(a,"53")!="1Z"},1Z:J(a){K"1Z"==a.U||E.1l(a,"19")=="2G"||E.1l(a,"53")=="1Z"},87:J(a){K!a.31},31:J(a){K a.31},3r:J(a){K a.3r},2x:J(a){K a.2x||E.1G(a,"2x")},1s:J(a){K"1s"==a.U},5D:J(a){K"5D"==a.U},5C:J(a){K"5C"==a.U},5h:J(a){K"5h"==a.U},3K:J(a){K"3K"==a.U},5g:J(a){K"5g"==a.U},6u:J(a){K"6u"==a.U},6t:J(a){K"6t"==a.U},2C:J(a){K"2C"==a.U||E.12(a,"2C")},4K:J(a){K/4K|2q|6s|2C/i.17(a.12)},3H:J(a,i,m){K E.2u(m[3],a).M},83:J(a){K/h\\d/i.17(a.12)},82:J(a){K E.3x(E.3J,J(b){K a==b.Y}).M}}},6q:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,1D 4u("^([:.#]*)("+C+"+)")],3b:J(a,c,b){L d,2j=[];2a(a&&a!=d){d=a;L f=E.1B(a,c,b);a=f.t.1r(/^\\s*,\\s*/,"");2j=b?c=f.r:E.2P(2j,f.r)}K 2j},2u:J(t,p){7(1u t!="2h")K[t];7(p&&p.15!=1&&p.15!=9)K[];p=p||T;L d=[p],2l=[],3N,12;2a(t&&3N!=t){L r=[];3N=t;t=E.3g(t);L o=S;L g=6F;L m=g.2U(t);7(m){12=m[1].2F();Q(L i=0;d[i];i++)Q(L c=d[i].1E;c;c=c.2D)7(c.15==1&&(12=="*"||c.12.2F()==12))r.1k(c);d=r;t=t.1r(g,"");7(t.1f(" ")==0)6G;o=P}N{g=/^([>+~])\\s*(\\w*)/i;7((m=g.2U(t))!=V){r=[];L l={};12=m[2].2F();m=m[1];Q(L j=0,3f=d.M;j<3f;j++){L n=m=="~"||m=="+"?d[j].2D:d[j].1E;Q(;n;n=n.2D)7(n.15==1){L h=E.O(n);7(m=="~"&&l[h])1P;7(!12||n.12.2F()==12){7(m=="~")l[h]=P;r.1k(n)}7(m=="+")1P}}d=r;t=E.3g(t.1r(g,""));o=P}}7(t&&!o){7(!t.1f(",")){7(p==d[0])d.4p();2l=E.2P(2l,d);r=d=[p];t=" "+t.6o(1,t.M)}N{L k=6E;L m=k.2U(t);7(m){m=[0,m[2],m[3],m[1]]}N{k=6D;m=k.2U(t)}m[2]=m[2].1r(/\\\\/g,"");L f=d[d.M-1];7(m[1]=="#"&&f&&f.5S&&!E.3W(f)){L q=f.5S(m[2]);7((E.14.1c||E.14.2A)&&q&&1u q.2m=="2h"&&q.2m!=m[2])q=E(\'[@2m="\'+m[2]+\'"]\',f)[0];d=r=q&&(!m[3]||E.12(q,m[3]))?[q]:[]}N{Q(L i=0;d[i];i++){L a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];7(a=="*"&&d[i].12.2g()=="3Z")a="3v";r=E.2P(r,d[i].3X(a))}7(m[1]==".")r=E.5d(r,m[2]);7(m[1]=="#"){L e=[];Q(L i=0;r[i];i++)7(r[i].4F("2m")==m[2]){e=[r[i]];1P}r=e}d=r}t=t.1r(k,"")}}7(t){L b=E.1B(t,r);d=r=b.r;t=E.3g(b.t)}}7(t)d=[];7(d&&p==d[0])d.4p();2l=E.2P(2l,d);K 2l},5d:J(r,m,a){m=" "+m+" ";L c=[];Q(L i=0;r[i];i++){L b=(" "+r[i].1t+" ").1f(m)>=0;7(!a&&b||a&&!b)c.1k(r[i])}K c},1B:J(t,r,h){L d;2a(t&&t!=d){d=t;L p=E.6q,m;Q(L i=0;p[i];i++){m=p[i].2U(t);7(m){t=t.81(m[0].M);m[2]=m[2].1r(/\\\\/g,"");1P}}7(!m)1P;7(m[1]==":"&&m[2]=="4S")r=G.17(m[3])?E.1B(m[3],r,P).r:E(r).4S(m[3]);N 7(m[1]==".")r=E.5d(r,m[2],h);N 7(m[1]=="["){L g=[],U=m[3];Q(L i=0,3f=r.M;i<3f;i++){L a=r[i],z=a[E.40[m[2]]||m[2]];7(z==V||/6X|3V|2x/.17(m[2]))z=E.1G(a,m[2])||\'\';7((U==""&&!!z||U=="="&&z==m[5]||U=="!="&&z!=m[5]||U=="^="&&z&&!z.1f(m[5])||U=="$="&&z.6o(z.M-m[5].M)==m[5]||(U=="*="||U=="~=")&&z.1f(m[5])>=0)^h)g.1k(a)}r=g}N 7(m[1]==":"&&m[2]=="2T-4t"){L e={},g=[],17=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2U(m[3]=="6z"&&"2n"||m[3]=="6y"&&"2n+1"||!/\\D/.17(m[3])&&"80+"+m[3]||m[3]),3i=(17[1]+(17[2]||1))-0,d=17[3]-0;Q(L i=0,3f=r.M;i<3f;i++){L j=r[i],1b=j.1b,2m=E.O(1b);7(!e[2m]){L c=1;Q(L n=1b.1E;n;n=n.2D)7(n.15==1)n.4o=c++;e[2m]=P}L b=S;7(3i==0){7(j.4o==d)b=P}N 7((j.4o-d)%3i==0&&(j.4o-d)/3i>=0)b=P;7(b^h)g.1k(j)}r=g}N{L f=E.6C[m[1]];7(1u f=="3Z")f=f[m[2]];7(1u f=="2h")f=6n("S||J(a,i){K "+f+";}");r=E.3x(r,J(a,i){K f(a,i,m,r)},h)}}K{r:r,t:t}},4A:J(b,c){L d=[];L a=b[c];2a(a&&a!=T){7(a.15==1)d.1k(a);a=a[c]}K d},2T:J(a,e,c,b){e=e||1;L d=0;Q(;a;a=a[c])7(a.15==1&&++d==e)1P;K a},5p:J(n,a){L r=[];Q(;n;n=n.2D){7(n.15==1&&(!a||n!=a))r.1k(n)}K r}});E.16={1a:J(f,i,g,e){7(f.15==3||f.15==8)K;7(E.14.1c&&f.5b!=10)f=1d;7(!g.2E)g.2E=6.2E++;7(e!=10){L h=g;g=J(){K h.1h(6,18)};g.O=e;g.2E=h.2E}L j=E.O(f,"36")||E.O(f,"36",{}),1z=E.O(f,"1z")||E.O(f,"1z",J(){L a;7(1u E=="10"||E.16.59)K a;a=E.16.1z.1h(18.3O.Y,18);K a});1z.Y=f;E.R(i.24(/\\s+/),J(c,b){L a=b.24(".");b=a[0];g.U=a[1];L d=j[b];7(!d){d=j[b]={};7(!E.16.2i[b]||E.16.2i[b].4n.1X(f)===S){7(f.3I)f.3I(b,1z,S);N 7(f.6m)f.6m("4m"+b,1z)}}d[g.2E]=g;E.16.27[b]=P});f=V},2E:1,27:{},1Q:J(e,h,f){7(e.15==3||e.15==8)K;L i=E.O(e,"36"),2e,51;7(i){7(h==10||(1u h=="2h"&&h.7Z(0)=="."))Q(L g 1o i)6.1Q(e,g+(h||""));N{7(h.U){f=h.2o;h=h.U}E.R(h.24(/\\s+/),J(b,a){L c=a.24(".");a=c[0];7(i[a]){7(f)2Q i[a][f.2E];N Q(f 1o i[a])7(!c[1]||i[a][f].U==c[1])2Q i[a][f];Q(2e 1o i[a])1P;7(!2e){7(!E.16.2i[a]||E.16.2i[a].4l.1X(e)===S){7(e.6j)e.6j(a,E.O(e,"1z"),S);N 7(e.6i)e.6i("4m"+a,E.O(e,"1z"))}2e=V;2Q i[a]}}})}Q(2e 1o i)1P;7(!2e){L d=E.O(e,"1z");7(d)d.Y=V;E.38(e,"36");E.38(e,"1z")}}},1L:J(g,c,d,f,h){c=E.2I(c||[]);7(g.1f("!")>=0){g=g.2B(0,-1);L a=P}7(!d){7(6.27[g])E("*").1a([1d,T]).1L(g,c)}N{7(d.15==3||d.15==8)K 10;L b,2e,1g=E.1q(d[g]||V),16=!c[0]||!c[0].32;7(16)c.5i(6.5t({U:g,2N:d}));c[0].U=g;7(a)c[0].6f=P;7(E.1q(E.O(d,"1z")))b=E.O(d,"1z").1h(d,c);7(!1g&&d["4m"+g]&&d["4m"+g].1h(d,c)===S)b=S;7(16)c.4p();7(h&&E.1q(h)){2e=h.1h(d,b==V?c:c.7d(b));7(2e!==10)b=2e}7(1g&&f!==S&&b!==S&&!(E.12(d,\'a\')&&g=="57")){6.59=P;1U{d[g]()}1R(e){}}6.59=S}K b},1z:J(c){L a;c=E.16.5t(c||1d.16||{});L b=c.U.24(".");c.U=b[0];L f=E.O(6,"36")&&E.O(6,"36")[c.U],42=1I.2k.2B.1X(18,1);42.5i(c);Q(L j 1o f){L d=f[j];42[0].2o=d;42[0].O=d.O;7(!b[1]&&!c.6f||d.U==b[1]){L e=d.1h(6,42);7(a!==S)a=e;7(e===S){c.32();c.41()}}}7(E.14.1c)c.2N=c.32=c.41=c.2o=c.O=V;K a},5t:J(c){L a=c;c=E.1p({},a);c.32=J(){7(a.32)a.32();a.7Y=S};c.41=J(){7(a.41)a.41();a.7X=P};7(!c.2N)c.2N=c.7W||T;7(c.2N.15==3)c.2N=a.2N.1b;7(!c.52&&c.5I)c.52=c.5I==c.2N?c.7V:c.5I;7(c.6d==V&&c.6c!=V){L b=T.1J,1i=T.1i;c.6d=c.6c+(b&&b.2w||1i&&1i.2w||0)-(b.6b||0);c.7U=c.7T+(b&&b.2p||1i&&1i.2p||0)-(b.68||0)}7(!c.3t&&((c.4I||c.4I===0)?c.4I:c.7b))c.3t=c.4I||c.7b;7(!c.7c&&c.65)c.7c=c.65;7(!c.3t&&c.2C)c.3t=(c.2C&1?1:(c.2C&2?3:(c.2C&4?2:0)));K c},2i:{21:{4n:J(){5F();K},4l:J(){K}},49:{4n:J(){7(E.14.1c)K S;E(6).2v("4Y",E.16.2i.49.2o);K P},4l:J(){7(E.14.1c)K S;E(6).3D("4Y",E.16.2i.49.2o);K P},2o:J(a){7(I(a,6))K P;18[0].U="49";K E.16.1z.1h(6,18)}},3C:{4n:J(){7(E.14.1c)K S;E(6).2v("4X",E.16.2i.3C.2o);K P},4l:J(){7(E.14.1c)K S;E(6).3D("4X",E.16.2i.3C.2o);K P},2o:J(a){7(I(a,6))K P;18[0].U="3C";K E.16.1z.1h(6,18)}}}};E.1g.1p({2v:J(c,a,b){K c=="4W"?6.2Y(c,a,b):6.R(J(){E.16.1a(6,c,b||a,b&&a)})},2Y:J(d,b,c){K 6.R(J(){E.16.1a(6,d,J(a){E(6).3D(a);K(c||b).1h(6,18)},c&&b)})},3D:J(a,b){K 6.R(J(){E.16.1Q(6,a,b)})},1L:J(c,a,b){K 6.R(J(){E.16.1L(c,a,6,P,b)})},5x:J(c,a,b){7(6[0])K E.16.1L(c,a,6[0],S,b);K 10},2z:J(){L b=18;K 6.57(J(a){6.5T=0==6.5T?1:0;a.32();K b[6.5T].1h(6,18)||S})},7Q:J(a,b){K 6.2v(\'49\',a).2v(\'3C\',b)},21:J(a){5F();7(E.2Z)a.1X(T,E);N E.3A.1k(J(){K a.1X(6,E)});K 6}});E.1p({2Z:S,3A:[],21:J(){7(!E.2Z){E.2Z=P;7(E.3A){E.R(E.3A,J(){6.1h(T)});E.3A=V}E(T).5x("21")}}});L x=S;J 5F(){7(x)K;x=P;7(T.3I&&!E.14.2A)T.3I("64",E.21,S);7(E.14.1c&&1d==3m)(J(){7(E.2Z)K;1U{T.1J.7O("25")}1R(39){3y(18.3O,0);K}E.21()})();7(E.14.2A)T.3I("64",J(){7(E.2Z)K;Q(L i=0;i<T.4U.M;i++)7(T.4U[i].31){3y(18.3O,0);K}E.21()},S);7(E.14.2b){L a;(J(){7(E.2Z)K;7(T.3c!="63"&&T.3c!="1x"){3y(18.3O,0);K}7(a===10)a=E("W, 7l[7N=7M]").M;7(T.4U.M!=a){3y(18.3O,0);K}E.21()})()}E.16.1a(1d,"43",E.21)}E.R(("7K,7J,43,7I,5l,4W,57,7H,"+"7G,7F,7E,4Y,4X,7D,2q,"+"5g,7L,7C,7B,39").24(","),J(i,b){E.1g[b]=J(a){K a?6.2v(b,a):6.1L(b)}});L I=J(a,c){L b=a.52;2a(b&&b!=c)1U{b=b.1b}1R(39){b=c}K b==c};E(1d).2v("4W",J(){E("*").1a(T).3D()});E.1g.1p({43:J(g,d,c){7(E.1q(g))K 6.2v("43",g);L e=g.1f(" ");7(e>=0){L i=g.2B(e,g.M);g=g.2B(0,e)}c=c||J(){};L f="4T";7(d)7(E.1q(d)){c=d;d=V}N{d=E.3v(d);f="62"}L h=6;E.3T({1e:g,U:f,1H:"3o",O:d,1x:J(a,b){7(b=="1O"||b=="61")h.3o(i?E("<1y/>").3s(a.4j.1r(/<1n(.|\\s)*?\\/1n>/g,"")).2u(i):a.4j);h.R(c,[a.4j,b,a])}});K 6},7y:J(){K E.3v(6.60())},60:J(){K 6.2c(J(){K E.12(6,"3e")?E.2I(6.7x):6}).1B(J(){K 6.2X&&!6.31&&(6.3r||/2q|6s/i.17(6.12)||/1s|1Z|3K/i.17(6.U))}).2c(J(i,c){L b=E(6).5V();K b==V?V:b.1j==1I?E.2c(b,J(a,i){K{2X:c.2X,1C:a}}):{2X:c.2X,1C:b}}).23()}});E.R("5Z,6e,5Y,6l,5X,6r".24(","),J(i,o){E.1g[o]=J(f){K 6.2v(o,f)}});L B=(1D 3Q).3P();E.1p({23:J(d,b,a,c){7(E.1q(b)){a=b;b=V}K E.3T({U:"4T",1e:d,O:b,1O:a,1H:c})},7w:J(b,a){K E.23(b,V,a,"1n")},7v:J(c,b,a){K E.23(c,b,a,"3a")},7u:J(d,b,a,c){7(E.1q(b)){a=b;b={}}K E.3T({U:"62",1e:d,O:b,1O:a,1H:c})},7t:J(a){E.1p(E.4O,a)},4O:{27:P,U:"4T",2O:0,5W:"4s/x-7r-3e-7q",5U:P,3l:P,O:V,6w:V,3K:V,4e:{3L:"4s/3L, 1s/3L",3o:"1s/3o",1n:"1s/4q, 4s/4q",3a:"4s/3a, 1s/4q",1s:"1s/ac",4N:"*/*"}},4M:{},3T:J(s){L f,2S=/=\\?(&|$)/g,1v,O;s=E.1p(P,s,E.1p(P,{},E.4O,s));7(s.O&&s.5U&&1u s.O!="2h")s.O=E.3v(s.O);7(s.1H=="4L"){7(s.U.2g()=="23"){7(!s.1e.1A(2S))s.1e+=(s.1e.1A(/\\?/)?"&":"?")+(s.4L||"7p")+"=?"}N 7(!s.O||!s.O.1A(2S))s.O=(s.O?s.O+"&":"")+(s.4L||"7p")+"=?";s.1H="3a"}7(s.1H=="3a"&&(s.O&&s.O.1A(2S)||s.1e.1A(2S))){f="4L"+B++;7(s.O)s.O=(s.O+"").1r(2S,"="+f+"$1");s.1e=s.1e.1r(2S,"="+f+"$1");s.1H="1n";1d[f]=J(a){O=a;1O();1x();1d[f]=10;1U{2Q 1d[f]}1R(e){}7(h)h.35(g)}}7(s.1H=="1n"&&s.1T==V)s.1T=S;7(s.1T===S&&s.U.2g()=="23"){L i=(1D 3Q()).3P();L j=s.1e.1r(/(\\?|&)4v=.*?(&|$)/,"$aa="+i+"$2");s.1e=j+((j==s.1e)?(s.1e.1A(/\\?/)?"&":"?")+"4v="+i:"")}7(s.O&&s.U.2g()=="23"){s.1e+=(s.1e.1A(/\\?/)?"&":"?")+s.O;s.O=V}7(s.27&&!E.5Q++)E.16.1L("5Z");7((!s.1e.1f("a6")||!s.1e.1f("//"))&&s.1H=="1n"&&s.U.2g()=="23"){L h=T.3X("6p")[0];L g=T.3p("1n");g.3V=s.1e;7(s.7m)g.a5=s.7m;7(!f){L l=S;g.a4=g.a3=J(){7(!l&&(!6.3c||6.3c=="63"||6.3c=="1x")){l=P;1O();1x();h.35(g)}}}h.3j(g);K 10}L m=S;L k=1d.7k?1D 7k("a1.a0"):1D 7j();k.9Y(s.U,s.1e,s.3l,s.6w,s.3K);1U{7(s.O)k.4J("9W-9V",s.5W);7(s.5q)k.4J("9T-5K-9R",E.4M[s.1e]||"9Q, 9P 9N 9M 5r:5r:5r 9L");k.4J("X-9I-9G","7j");k.4J("9F",s.1H&&s.4e[s.1H]?s.4e[s.1H]+", */*":s.4e.4N)}1R(e){}7(s.7a)s.7a(k);7(s.27)E.16.1L("6r",[k,s]);L c=J(a){7(!m&&k&&(k.3c==4||a=="2O")){m=P;7(d){79(d);d=V}1v=a=="2O"&&"2O"||!E.78(k)&&"39"||s.5q&&E.6S(k,s.1e)&&"61"||"1O";7(1v=="1O"){1U{O=E.77(k,s.1H)}1R(e){1v="5u"}}7(1v=="1O"){L b;1U{b=k.5w("75-5K")}1R(e){}7(s.5q&&b)E.4M[s.1e]=b;7(!f)1O()}N E.5y(s,k,1v);1x();7(s.3l)k=V}};7(s.3l){L d=5b(c,13);7(s.2O>0)3y(J(){7(k){k.9y();7(!m)c("2O")}},s.2O)}1U{k.9x(s.O)}1R(e){E.5y(s,k,V,e)}7(!s.3l)c();J 1O(){7(s.1O)s.1O(O,1v);7(s.27)E.16.1L("5X",[k,s])}J 1x(){7(s.1x)s.1x(k,1v);7(s.27)E.16.1L("5Y",[k,s]);7(s.27&&!--E.5Q)E.16.1L("6e")}K k},5y:J(s,a,b,e){7(s.39)s.39(a,b,e);7(s.27)E.16.1L("6l",[a,s,e])},5Q:0,78:J(r){1U{K!r.1v&&9v.9u=="5h:"||(r.1v>=73&&r.1v<9s)||r.1v==72||r.1v==9q||E.14.2b&&r.1v==10}1R(e){}K S},6S:J(a,c){1U{L b=a.5w("75-5K");K a.1v==72||b==E.4M[c]||E.14.2b&&a.1v==10}1R(e){}K S},77:J(r,b){L c=r.5w("9o-U");L d=b=="3L"||!b&&c&&c.1f("3L")>=0;L a=d?r.9n:r.4j;7(d&&a.1J.26=="5u")6Z"5u";7(b=="1n")E.5o(a);7(b=="3a")a=6n("("+a+")");K a},3v:J(a){L s=[];7(a.1j==1I||a.4y)E.R(a,J(){s.1k(3q(6.2X)+"="+3q(6.1C))});N Q(L j 1o a)7(a[j]&&a[j].1j==1I)E.R(a[j],J(){s.1k(3q(j)+"="+3q(6))});N s.1k(3q(j)+"="+3q(a[j]));K s.6k("&").1r(/%20/g,"+")}});E.1g.1p({1F:J(c,b){K c?6.2d({1S:"1F",28:"1F",1w:"1F"},c,b):6.1B(":1Z").R(J(){6.W.19=6.5B||"";7(E.1l(6,"19")=="2G"){L a=E("<"+6.26+" />").6I("1i");6.W.19=a.1l("19");7(6.W.19=="2G")6.W.19="46";a.1Q()}}).3h()},1K:J(b,a){K b?6.2d({1S:"1K",28:"1K",1w:"1K"},b,a):6.1B(":4i").R(J(){6.5B=6.5B||E.1l(6,"19");6.W.19="2G"}).3h()},6Y:E.1g.2z,2z:J(a,b){K E.1q(a)&&E.1q(b)?6.6Y(a,b):a?6.2d({1S:"2z",28:"2z",1w:"2z"},a,b):6.R(J(){E(6)[E(6).3E(":1Z")?"1F":"1K"]()})},9k:J(b,a){K 6.2d({1S:"1F"},b,a)},9i:J(b,a){K 6.2d({1S:"1K"},b,a)},9h:J(b,a){K 6.2d({1S:"2z"},b,a)},9f:J(b,a){K 6.2d({1w:"1F"},b,a)},9e:J(b,a){K 6.2d({1w:"1K"},b,a)},9c:J(c,a,b){K 6.2d({1w:a},c,b)},2d:J(l,k,j,h){L i=E.7e(k,j,h);K 6[i.33===S?"R":"33"](J(){7(6.15!=1)K S;L g=E.1p({},i);L f=E(6).3E(":1Z"),4G=6;Q(L p 1o l){7(l[p]=="1K"&&f||l[p]=="1F"&&!f)K E.1q(g.1x)&&g.1x.1h(6);7(p=="1S"||p=="28"){g.19=E.1l(6,"19");g.34=6.W.34}}7(g.34!=V)6.W.34="1Z";g.3z=E.1p({},l);E.R(l,J(c,a){L e=1D E.2s(4G,g,c);7(/2z|1F|1K/.17(a))e[a=="2z"?f?"1F":"1K":a](l);N{L b=a.3G().1A(/^([+-]=)?([\\d+-.]+)(.*)$/),22=e.2j(P)||0;7(b){L d=2J(b[2]),2L=b[3]||"2R";7(2L!="2R"){4G.W[c]=(d||1)+2L;22=((d||1)/e.2j(P))*22;4G.W[c]=22+2L}7(b[1])d=((b[1]=="-="?-1:1)*d)+22;e.45(22,d,2L)}N e.45(22,a,"")}});K P})},33:J(a,b){7(E.1q(a)||(a&&a.1j==1I)){b=a;a="2s"}7(!a||(1u a=="2h"&&!b))K A(6[0],a);K 6.R(J(){7(b.1j==1I)A(6,a,b);N{A(6,a).1k(b);7(A(6,a).M==1)b.1h(6)}})},99:J(b,c){L a=E.3J;7(b)6.33([]);6.R(J(){Q(L i=a.M-1;i>=0;i--)7(a[i].Y==6){7(c)a[i](P);a.71(i,1)}});7(!c)6.5z();K 6}});L A=J(b,c,a){7(!b)K 10;c=c||"2s";L q=E.O(b,c+"33");7(!q||a)q=E.O(b,c+"33",a?E.2I(a):[]);K q};E.1g.5z=J(a){a=a||"2s";K 6.R(J(){L q=A(6,a);q.4p();7(q.M)q[0].1h(6)})};E.1p({7e:J(b,a,c){L d=b&&b.1j==97?b:{1x:c||!c&&a||E.1q(b)&&b,2r:b,44:c&&a||a&&a.1j!=96&&a};d.2r=(d.2r&&d.2r.1j==58?d.2r:{95:94,9E:73}[d.2r])||92;d.5G=d.1x;d.1x=J(){7(d.33!==S)E(6).5z();7(E.1q(d.5G))d.5G.1h(6)};K d},44:{76:J(p,n,b,a){K b+a*p},5H:J(p,n,b,a){K((-1Y.90(p*1Y.8Z)/2)+0.5)*a+b}},3J:[],48:V,2s:J(b,c,a){6.11=c;6.Y=b;6.1m=a;7(!c.47)c.47={}}});E.2s.2k={4E:J(){7(6.11.30)6.11.30.1h(6.Y,[6.2M,6]);(E.2s.30[6.1m]||E.2s.30.4N)(6);7(6.1m=="1S"||6.1m=="28")6.Y.W.19="46"},2j:J(a){7(6.Y[6.1m]!=V&&6.Y.W[6.1m]==V)K 6.Y[6.1m];L r=2J(E.1l(6.Y,6.1m,a));K r&&r>-8V?r:2J(E.29(6.Y,6.1m))||0},45:J(c,b,d){6.5L=(1D 3Q()).3P();6.22=c;6.3h=b;6.2L=d||6.2L||"2R";6.2M=6.22;6.4D=6.4C=0;6.4E();L e=6;J t(a){K e.30(a)}t.Y=6.Y;E.3J.1k(t);7(E.48==V){E.48=5b(J(){L a=E.3J;Q(L i=0;i<a.M;i++)7(!a[i]())a.71(i--,1);7(!a.M){79(E.48);E.48=V}},13)}},1F:J(){6.11.47[6.1m]=E.1G(6.Y.W,6.1m);6.11.1F=P;6.45(0,6.2j());7(6.1m=="28"||6.1m=="1S")6.Y.W[6.1m]="8T";E(6.Y).1F()},1K:J(){6.11.47[6.1m]=E.1G(6.Y.W,6.1m);6.11.1K=P;6.45(6.2j(),0)},30:J(a){L t=(1D 3Q()).3P();7(a||t>6.11.2r+6.5L){6.2M=6.3h;6.4D=6.4C=1;6.4E();6.11.3z[6.1m]=P;L b=P;Q(L i 1o 6.11.3z)7(6.11.3z[i]!==P)b=S;7(b){7(6.11.19!=V){6.Y.W.34=6.11.34;6.Y.W.19=6.11.19;7(E.1l(6.Y,"19")=="2G")6.Y.W.19="46"}7(6.11.1K)6.Y.W.19="2G";7(6.11.1K||6.11.1F)Q(L p 1o 6.11.3z)E.1G(6.Y.W,p,6.11.47[p])}7(b&&E.1q(6.11.1x))6.11.1x.1h(6.Y);K S}N{L n=t-6.5L;6.4C=n/6.11.2r;6.4D=E.44[6.11.44||(E.44.5H?"5H":"76")](6.4C,n,0,1,6.11.2r);6.2M=6.22+((6.3h-6.22)*6.4D);6.4E()}K P}};E.2s.30={2w:J(a){a.Y.2w=a.2M},2p:J(a){a.Y.2p=a.2M},1w:J(a){E.1G(a.Y.W,"1w",a.2M)},4N:J(a){a.Y.W[a.1m]=a.2M+a.2L}};E.1g.5k=J(){L b=0,3m=0,Y=6[0],5J;7(Y)8R(E.14){L d=Y.1b,4c=Y,1M=Y.1M,1N=Y.2t,5M=2b&&3R(5s)<8P&&!/8O/i.17(v),37=E.1l(Y,"3F")=="37";7(Y.6P){L c=Y.6P();1a(c.25+1Y.2f(1N.1J.2w,1N.1i.2w),c.3m+1Y.2f(1N.1J.2p,1N.1i.2p));1a(-1N.1J.6b,-1N.1J.68)}N{1a(Y.5O,Y.5R);2a(1M){1a(1M.5O,1M.5R);7(4b&&!/^t(8L|d|h)$/i.17(1M.26)||2b&&!5M)2y(1M);7(!37&&E.1l(1M,"3F")=="37")37=P;4c=/^1i$/i.17(1M.26)?4c:1M;1M=1M.1M}2a(d&&d.26&&!/^1i|3o$/i.17(d.26)){7(!/^8K|1W.*$/i.17(E.1l(d,"19")))1a(-d.2w,-d.2p);7(4b&&E.1l(d,"34")!="4i")2y(d);d=d.1b}7((5M&&(37||E.1l(4c,"3F")=="55"))||(4b&&E.1l(4c,"3F")!="55"))1a(-1N.1i.5O,-1N.1i.5R);7(37)1a(1Y.2f(1N.1J.2w,1N.1i.2w),1Y.2f(1N.1J.2p,1N.1i.2p))}5J={3m:3m,25:b}}J 2y(a){1a(E.29(a,"a8",P),E.29(a,"a9",P))}J 1a(l,t){b+=3R(l)||0;3m+=3R(t)||0}K 5J};E.R(["4x","3B"],J(i,b){L c=b=="4x"?"67":"6a",3Y=b=="4x"?"66":"69";E.1g["5m"+b]=J(){K 6[b.2g()]()+2V(6,"4V"+c)+2V(6,"4V"+3Y)};E.1g["8H"+b]=J(a){K 6["5m"+b]()+2V(6,"2y"+c+"3B")+2V(6,"2y"+3Y+"3B")+(!!a?2V(6,"6N"+c)+2V(6,"6N"+3Y):0)}});J 2V(a,b){a=a.4y?a[0]:a;K a&&3R(E.29(a,b,P))||0}})();',62,634,'||||||this|if||||||||||||||||||||||||||||||||||||||function|return|var|length|else|data|true|for|each|false|document|type|null|style||elem||undefined|options|nodeName||browser|nodeType|event|test|arguments|display|add|parentNode|msie|window|url|indexOf|fn|apply|body|constructor|push|css|prop|script|in|extend|isFunction|replace|text|className|typeof|status|opacity|complete|div|handle|match|filter|value|new|firstChild|show|attr|dataType|Array|documentElement|hide|trigger|offsetParent|doc|success|break|remove|catch|height|cache|try|tbody|table|call|Math|hidden||ready|start|get|split|left|tagName|global|width|curCSS|while|safari|map|animate|ret|max|toLowerCase|string|special|cur|prototype|done|id||handler|scrollTop|select|duration|fx|ownerDocument|find|bind|scrollLeft|selected|border|toggle|opera|slice|button|nextSibling|guid|toUpperCase|none|pushStack|makeArray|parseFloat|stack|unit|now|target|timeout|merge|delete|px|jsre|nth|exec|num|inArray|name|one|isReady|step|disabled|preventDefault|queue|overflow|removeChild|events|fixed|removeData|error|json|multiFilter|readyState|innerHTML|form|rl|trim|end|first|appendChild|elems|async|top|insertBefore|html|createElement|encodeURIComponent|checked|append|which|childNodes|param|color|grep|setTimeout|curAnim|readyList|Width|mouseleave|unbind|is|position|toString|has|addEventListener|timers|password|xml|runtimeStyle|last|callee|getTime|Date|parseInt|domManip|ajax|selectedIndex|src|isXMLDoc|getElementsByTagName|br|object|props|stopPropagation|args|load|easing|custom|block|orig|timerId|mouseenter||mozilla|offsetChild|jQuery|accepts|clean|float|defaultView|visible|responseText|String|teardown|on|setup|nodeIndex|shift|javascript|currentStyle|application|child|RegExp|_|deep|Height|jquery|previousSibling|dir|tr|state|pos|update|getAttribute|self|empty|charCode|setRequestHeader|input|jsonp|lastModified|_default|ajaxSettings|outline|getPropertyValue|getComputedStyle|not|GET|styleSheets|padding|unload|mouseout|mouseover|getWH|andSelf|index|relatedTarget|visibility|init|absolute|container|click|Number|triggered|removeAttribute|setInterval|prevObject|classFilter|unique|after|submit|file|unshift|windowData|offset|scroll|inner|client|globalEval|sibling|ifModified|00|version|fix|parsererror|wrapAll|getResponseHeader|triggerHandler|handleError|dequeue|createTextNode|oldblock|checkbox|radio|lastChild|bindReady|old|swing|fromElement|results|Modified|startTime|safari2|clone|offsetLeft|values|active|offsetTop|getElementById|lastToggle|processData|val|contentType|ajaxSuccess|ajaxComplete|ajaxStart|serializeArray|notmodified|POST|loaded|DOMContentLoaded|ctrlKey|Bottom|Top|clientTop|Right|Left|clientLeft|clientX|pageX|ajaxStop|exclusive|swap|cloneNode|detachEvent|removeEventListener|join|ajaxError|attachEvent|eval|substr|head|parse|ajaxSend|textarea|reset|image|zoom|username|before|odd|even|prepend|uuid|expr|quickClass|quickID|quickChild|continue|textContent|appendTo|contents|evalScript|parent|defaultValue|margin|compatMode|getBoundingClientRect|setArray|styleFloat|httpNotModified|nodeValue|eq|replaceWith|alpha|href|_toggle|throw|100|splice|304|200|colgroup|Last|linear|httpData|httpSuccess|clearInterval|beforeSend|keyCode|metaKey|concat|speed|fieldset|webkit|multiple|cssFloat|XMLHttpRequest|ActiveXObject|link|scriptCharset|CSS1Compat|col|callback|urlencoded|www|hasClass|ajaxSetup|post|getJSON|getScript|elements|serialize|black|solid|keyup|keypress|change|mousemove|mouseup|mousedown|dblclick|resize|focus|blur|keydown|stylesheet|rel|doScroll|round|hover|offsetHeight|offsetWidth|clientY|pageY|toElement|srcElement|cancelBubble|returnValue|charAt|0n|substring|animated|header|noConflict|line|size|enabled|innerText|weight|contains|only|font|gt|lt|uFFFF|u0128|Boolean|417|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|wrap|prependTo|contentWindow|contentDocument|iframe|children|siblings|wrapInner|prevAll|nextAll|prev|next|parents|maxLength|maxlength|reverse|readOnly|readonly|outer|class|htmlFor|inline|able|boxModel|setData|adobeair|522|compatible|with|getData|1px|ie|10000|ra|it|rv|PI|cos|userAgent|400|navigator|600|slow|Function|Object|ig|stop|NaN|option|fadeTo|setAttribute|fadeOut|fadeIn|changed|slideToggle|slideUp|be|slideDown|can|property|responseXML|content|getAttributeNode|1223|method|300|action|protocol|location|cssText|send|abort|th|td|specified|cap|colg|fast|Accept|With|tfoot|Requested|thead|attributes|GMT|1970|Jan|leg|01|Thu|Since|opt|If|embed|Type|Content|area|open|hr|XMLHTTP|Microsoft|meta|onreadystatechange|onload|charset|http|img|borderLeftWidth|borderTopWidth|1_|abbr|plain|pixelLeft'.split('|'),0,{})) \ No newline at end of file
--- a/media/js/thickbox.js Sun Aug 29 19:12:41 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,319 +0,0 @@ -/* - * Thickbox 3.1 - One Box To Rule Them All. - * By Cody Lindley (http://www.codylindley.com) - * Copyright (c) 2007 cody lindley - * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php -*/ - -var tb_pathToImage = "/media/images/loadingAnimation.gif"; - -/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/ - -//on page load call tb_init -$(document).ready(function(){ - tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox - imgLoader = new Image();// preload image - imgLoader.src = tb_pathToImage; -}); - -//add thickbox to href & area elements that have a class of .thickbox -function tb_init(domChunk){ - $(domChunk).click(function(){ - var t = this.title || this.name || null; - var a = this.href || this.alt; - var g = this.rel || false; - tb_show(t,a,g); - this.blur(); - return false; - }); -} - -function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link - - try { - if (typeof document.body.style.maxHeight === "undefined") {//if IE 6 - $("body","html").css({height: "100%", width: "100%"}); - $("html").css("overflow","hidden"); - if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6 - $("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>"); - $("#TB_overlay").click(tb_remove); - } - }else{//all others - if(document.getElementById("TB_overlay") === null){ - $("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"); - $("#TB_overlay").click(tb_remove); - } - } - - if(tb_detectMacXFF()){ - $("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash - }else{ - $("#TB_overlay").addClass("TB_overlayBG");//use background and opacity - } - - if(caption===null){caption="";} - $("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page - $('#TB_load').show();//show loader - - var baseURL; - if(url.indexOf("?")!==-1){ //ff there is a query string involved - baseURL = url.substr(0, url.indexOf("?")); - }else{ - baseURL = url; - } - - var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; - var urlType = baseURL.toLowerCase().match(urlString); - - if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images - - TB_PrevCaption = ""; - TB_PrevURL = ""; - TB_PrevHTML = ""; - TB_NextCaption = ""; - TB_NextURL = ""; - TB_NextHTML = ""; - TB_imageCount = ""; - TB_FoundURL = false; - if(imageGroup){ - TB_TempArray = $("a[@rel="+imageGroup+"]").get(); - for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) { - var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString); - if (!(TB_TempArray[TB_Counter].href == url)) { - if (TB_FoundURL) { - TB_NextCaption = TB_TempArray[TB_Counter].title; - TB_NextURL = TB_TempArray[TB_Counter].href; - TB_NextHTML = "<span id='TB_next'> <a href='#'>Next ></a></span>"; - } else { - TB_PrevCaption = TB_TempArray[TB_Counter].title; - TB_PrevURL = TB_TempArray[TB_Counter].href; - TB_PrevHTML = "<span id='TB_prev'> <a href='#'>< Prev</a></span>"; - } - } else { - TB_FoundURL = true; - TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length); - } - } - } - - imgPreloader = new Image(); - imgPreloader.onload = function(){ - imgPreloader.onload = null; - - // Resizing large images - orginal by Christian Montoya edited by me. - var pagesize = tb_getPageSize(); - var x = pagesize[0] - 150; - var y = pagesize[1] - 150; - var imageWidth = imgPreloader.width; - var imageHeight = imgPreloader.height; - if (imageWidth > x) { - imageHeight = imageHeight * (x / imageWidth); - imageWidth = x; - if (imageHeight > y) { - imageWidth = imageWidth * (y / imageHeight); - imageHeight = y; - } - } else if (imageHeight > y) { - imageWidth = imageWidth * (y / imageHeight); - imageHeight = y; - if (imageWidth > x) { - imageHeight = imageHeight * (x / imageWidth); - imageWidth = x; - } - } - // End Resizing - - TB_WIDTH = imageWidth + 30; - TB_HEIGHT = imageHeight + 60; - $("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>"); - - $("#TB_closeWindowButton").click(tb_remove); - - if (!(TB_PrevHTML === "")) { - function goPrev(){ - if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);} - $("#TB_window").remove(); - $("body").append("<div id='TB_window'></div>"); - tb_show(TB_PrevCaption, TB_PrevURL, imageGroup); - return false; - } - $("#TB_prev").click(goPrev); - } - - if (!(TB_NextHTML === "")) { - function goNext(){ - $("#TB_window").remove(); - $("body").append("<div id='TB_window'></div>"); - tb_show(TB_NextCaption, TB_NextURL, imageGroup); - return false; - } - $("#TB_next").click(goNext); - - } - - document.onkeydown = function(e){ - if (e == null) { // ie - keycode = event.keyCode; - } else { // mozilla - keycode = e.which; - } - if(keycode == 27){ // close - tb_remove(); - } else if(keycode == 190){ // display previous image - if(!(TB_NextHTML == "")){ - document.onkeydown = ""; - goNext(); - } - } else if(keycode == 188){ // display next image - if(!(TB_PrevHTML == "")){ - document.onkeydown = ""; - goPrev(); - } - } - }; - - tb_position(); - $("#TB_load").remove(); - $("#TB_ImageOff").click(tb_remove); - $("#TB_window").css({display:"block"}); //for safari using css instead of show - }; - - imgPreloader.src = url; - }else{//code to show html - - var queryString = url.replace(/^[^\?]+\??/,''); - var params = tb_parseQuery( queryString ); - - TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL - TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL - ajaxContentW = TB_WIDTH - 30; - ajaxContentH = TB_HEIGHT - 45; - - if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window - urlNoQuery = url.split('TB_'); - $("#TB_iframeContent").remove(); - if(params['modal'] != "true"){//iframe no modal - $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>"); - }else{//iframe modal - $("#TB_overlay").unbind(); - $("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>"); - } - }else{// not an iframe, ajax - if($("#TB_window").css("display") != "block"){ - if(params['modal'] != "true"){//ajax no modal - $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>"); - }else{//ajax modal - $("#TB_overlay").unbind(); - $("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>"); - } - }else{//this means the window is already up, we are just loading new content via ajax - $("#TB_ajaxContent")[0].style.width = ajaxContentW +"px"; - $("#TB_ajaxContent")[0].style.height = ajaxContentH +"px"; - $("#TB_ajaxContent")[0].scrollTop = 0; - $("#TB_ajaxWindowTitle").html(caption); - } - } - - $("#TB_closeWindowButton").click(tb_remove); - - if(url.indexOf('TB_inline') != -1){ - $("#TB_ajaxContent").append($('#' + params['inlineId']).children()); - $("#TB_window").unload(function () { - $('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished - }); - tb_position(); - $("#TB_load").remove(); - $("#TB_window").css({display:"block"}); - }else if(url.indexOf('TB_iframe') != -1){ - tb_position(); - if($.browser.safari){//safari needs help because it will not fire iframe onload - $("#TB_load").remove(); - $("#TB_window").css({display:"block"}); - } - }else{ - $("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method - tb_position(); - $("#TB_load").remove(); - tb_init("#TB_ajaxContent a.thickbox"); - $("#TB_window").css({display:"block"}); - }); - } - - } - - if(!params['modal']){ - document.onkeyup = function(e){ - if (e == null) { // ie - keycode = event.keyCode; - } else { // mozilla - keycode = e.which; - } - if(keycode == 27){ // close - tb_remove(); - } - }; - } - - } catch(e) { - //nothing here - } -} - -//helper functions below -function tb_showIframe(){ - $("#TB_load").remove(); - $("#TB_window").css({display:"block"}); -} - -function tb_remove() { - $("#TB_imageOff").unbind("click"); - $("#TB_closeWindowButton").unbind("click"); - $("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();}); - $("#TB_load").remove(); - if (typeof document.body.style.maxHeight == "undefined") {//if IE 6 - $("body","html").css({height: "auto", width: "auto"}); - $("html").css("overflow",""); - } - document.onkeydown = ""; - document.onkeyup = ""; - return false; -} - -function tb_position() { -$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'}); - if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6 - $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'}); - } -} - -function tb_parseQuery ( query ) { - var Params = {}; - if ( ! query ) {return Params;}// return empty object - var Pairs = query.split(/[;&]/); - for ( var i = 0; i < Pairs.length; i++ ) { - var KeyVal = Pairs[i].split('='); - if ( ! KeyVal || KeyVal.length != 2 ) {continue;} - var key = unescape( KeyVal[0] ); - var val = unescape( KeyVal[1] ); - val = val.replace(/\+/g, ' '); - Params[key] = val; - } - return Params; -} - -function tb_getPageSize(){ - var de = document.documentElement; - var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; - var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight; - arrayPageSize = [w,h]; - return arrayPageSize; -} - -function tb_detectMacXFF() { - var userAgent = navigator.userAgent.toLowerCase(); - if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) { - return true; - } -} - -
--- a/mysite/templates/band/gigs.html Sun Aug 29 19:12:41 2010 +0000 +++ b/mysite/templates/band/gigs.html Wed Sep 08 00:43:03 2010 +0000 @@ -1,11 +1,16 @@ {% extends 'band/base.html' %} {% block title %}The Madeira | Shows{% endblock %} {% block custom_css %} -<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/thickbox.css" /> +<link rel="stylesheet" href="{{ MEDIA_URL }}css/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" /> {% endblock %} {% block custom_js %} -<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script> -<script type="text/javascript" src="{{ MEDIA_URL }}js/thickbox.js"></script> +<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> +<script type="text/javascript" src="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script> +<script type="text/javascript"> +$(function() { + $('a.fancybox').fancybox(); +}); +</script> {% endblock %} {% block content %} <h1>Show Dates</h1> @@ -15,7 +20,7 @@ {% for show in upcoming %} <p style="clear:both"> {% if show.flyer %} - <a href="{{ show.flyer.image.url }}" class="thickbox" rel="madeira-gallery"> + <a href="{{ show.flyer.image.url }}" class="fancybox" rel="madeira-gallery"> <!-- <img style="float:left; margin-right:5px; margin-bottom:1em" src="{{ show.flyer.get_thumbnail_url }}" --> <img class="left" src="{{ show.flyer.get_thumbnail_url }}" alt="{{ show.flyer.caption }}" title="{{ show.flyer.caption }}" /></a> @@ -88,7 +93,7 @@ <table class="image-table"> <caption>{{ gig.venue.name}}, {{ gig.date|date:"F 'y" }}</caption> <tr><td> - <a href="{{ gig.flyer.image.url }}" class="thickbox" rel="madeira-gallery"> + <a href="{{ gig.flyer.image.url }}" class="fancybox" rel="madeira-gallery"> <img src="{{ gig.flyer.get_thumbnail_url }}" alt="{{ gig.date|date:"F d, Y" }}" title="{{ gig.date|date:"F d, Y" }}" /></a> </td></tr> </table>
--- a/mysite/templates/band/index.html Sun Aug 29 19:12:41 2010 +0000 +++ b/mysite/templates/band/index.html Wed Sep 08 00:43:03 2010 +0000 @@ -1,14 +1,15 @@ {% extends 'band/base.html' %} {% block title %}The Madeira{% endblock %} {% block custom_css %} -<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/thickbox.css" /> +<link rel="stylesheet" href="{{ MEDIA_URL }}css/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" /> {% endblock %} {% block custom_js %} <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> -<script type="text/javascript" src="{{ MEDIA_URL }}js/thickbox.js"></script> +<script type="text/javascript" src="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script> <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.cross-slide.min.js"></script> <script type="text/javascript"> $(function() { + $('a.fancybox').fancybox(); $('#slideshow').crossSlide({ speed: 45, fade: 1 @@ -39,7 +40,7 @@ {% for gig in upcomingDates %} {% if gig.flyer %} <td> - <a href="{{ gig.flyer.image.url }}" class="thickbox" rel="madeira-gallery"> + <a href="{{ gig.flyer.image.url }}" class="fancybox" rel="madeira-gallery"> <img src="{{ gig.flyer.get_thumbnail_url }}" alt="{{ gig.flyer.caption }}" title="{{ gig.flyer.caption }}" /></a> <br /><center>{{ gig.flyer.caption }}</center> </td>
--- a/mysite/templates/band/photo_detail.html Sun Aug 29 19:12:41 2010 +0000 +++ b/mysite/templates/band/photo_detail.html Wed Sep 08 00:43:03 2010 +0000 @@ -2,11 +2,16 @@ {% load markup %} {% block title %}The Madeira | Photos: {{ gallery.title }}{% endblock %} {% block custom_css %} -<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/thickbox.css" /> +<link rel="stylesheet" href="{{ MEDIA_URL }}css/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" /> {% endblock %} {% block custom_js %} -<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script> -<script type="text/javascript" src="{{ MEDIA_URL }}js/thickbox.js"></script> +<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> +<script type="text/javascript" src="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script> +<script type="text/javascript"> +$(function() { + $('a.fancybox').fancybox(); +}); +</script> {% endblock %} {% block content %} <h1>Madeira Photos: {{ gallery.title }}</h1> @@ -14,7 +19,7 @@ <div class="madeira-photo-list"> {% for photo in gallery.photos.all %} - <a href="{{ photo.image.url }}" class="thickbox" rel="madeira-gallery"> + <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery"> <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a> {% endfor %} </div>
--- a/mysite/templates/band/photos.html Sun Aug 29 19:12:41 2010 +0000 +++ b/mysite/templates/band/photos.html Wed Sep 08 00:43:03 2010 +0000 @@ -1,11 +1,16 @@ {% extends 'band/base.html' %} {% block title %}The Madeira | Photo Galleries{% endblock %} {% block custom_css %} -<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/thickbox.css" /> +<link rel="stylesheet" href="{{ MEDIA_URL }}css/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" /> {% endblock %} {% block custom_js %} -<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script> -<script type="text/javascript" src="{{ MEDIA_URL }}js/thickbox.js"></script> +<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> +<script type="text/javascript" src="{{ MEDIA_URL }}js/fancybox/jquery.fancybox-1.3.1.pack.js"></script> +<script type="text/javascript"> +$(function() { + $('a.fancybox').fancybox(); +}); +</script> {% endblock %} {% block content %} <h1>Madeira Photo Galleries</h1> @@ -22,7 +27,7 @@ <div class="madeira-photo-list"> <h2>Random Photos:</h2> {% for photo in randomPhotos %} - <a href="{{ photo.image.url }}" class="thickbox" rel="madeira-gallery"> + <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery"> <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a> {% endfor %} </div>