/*******************************************************************************
 IX2.0-f :: Image Transitions 2.0
 ------------------------------------------------------------------------------
 Copyright (c) 2004-11 James Edwards (brothercake)       <cake@brothercake.com>
 BSD License                          See license.txt for licensing information
 Info/Docs       http://www.brothercake.com/site/resources/scripts/transitions/
 ------------------------------------------------------------------------------
*******************************************************************************/function Transitions(){}(function(){var W3={'step-resolution':16,'long-fallback':false,'base-zindex':2},Z=this,C=null,A0=true,G0=false,M2=['fade'],D1={Q3:['G','E','A1','U1','B','N','T','W'],O1:['X0','W'],T1:['S2','X3']},C2={W0:['opacity','MozOpacity','KhtmlOpacity']},K='filters',R2='none',M='DXImageTransform.Microsoft.Matrix',A3='DXImageTransform.Microsoft.Alpha',B3='progid:'+M+'(sizingMethod="clip",filterType="nearest neighbor")'+' progid:'+A3+'(opacity=100)',C1={fade:[]},C3={position:'absolute',zIndex:W3['base-zindex'],margin:0,padding:0,border:'none'},D3={position:'relative',left:0,top:0},G3={},H3=0,L={W0:C,U:C},F1=C,G1=C;Z.supported=(f0(document.getElementById)&&f0(document.styleSheets)&&f0(f25().getBoundingClientRect));Z.version='2.0';f1(M2,function(i,O2){Z[O2]=function(){if(!Z.supported){return C;}return f24(f3(arguments.callee.J,arguments,'Q3'));};Z[O2].J=O2;});Z.cache=function(){if(!Z.supported){return C;}return f6(f3('cache',arguments,'O1'));};Z.define=function(){if(!Z.supported){return C;}return f7(f3('define',arguments,'T1'));};Z.pictures=function(){if(!Z.supported){return C;}else{return f9();}};if(!Z.supported){return;}function f24(A){A=f4(A);F1=F1||document.getElementsByTagName('body')[0];G1=G1||document.documentElement;if(!f0(A.G.__ix)){A.G.__ix='ix'+(H3++);}if(f13(A.G.__ix)===A0){return G0;}f20(A.G.__ix,A0);if(!f9()){return f11(A);}if(A.N>0){if(!f8(A.G,'W0')){A.N=0;if(A.J=='fade'){return f11(A);}}else{O.fade(A.G,1);}}var I={F:{x:A.G.offsetWidth,y:A.G.offsetHeight},P1:1};var Y=/^(slide|twist|skew)$/.test(A.J),X=f14(A.G,Y);for(var E=[],l=I.P1,i=0;i<l;i++){I.i=i;if((A.J!='slide'&&!A.T)||(A.J=='slide'&&((!A.T&&(A.B=='CC'||i==0))||(A.T&&(A.B!='CC'&&i==1))))){var L3=A.A1,M3=A.E;}else{var L3=A.G.alt,M3=A.G.src;}E[i]=f5(A.G,X,Y);f21(E[i],A,I);E[i].src=M3;}if(A.T){A.G.src=A.E;if(A.A1!=C){A.G.alt=A.A1;}if(A.N>0){O.fade(A.G,(1-A.N));}}var O0=f15(A.G),L0=[];f1(E,function(i,M0){L0.push(Y?M0.parentNode:M0);});if(!/^(bars|slide)$/.test(A.J)){E=E[0];}var H=1,X2=function(B1,S3){var N0=f15(A.G);if(N0.x!=O0.x||N0.y!=O0.y){var X=f14(A.G,Y);f1(L0,function(i,M0){f18(M0,A.G,X,G0);});O0=N0;}H=H-(1/B1);if(A.N>0){var A2=((1-A.N)+(A.N*H)),B2=((1-A.N)+(A.N*(1-H)));O.fade(A.G,!A.T?A2:B2);O.fade(E,!A.T?B2:A2);}},W=function(){f12(E,A,(A.N>0?L.W0:R2));if(A.W!=C){A.W();}};f10(A.U1,X2,W);return A0;}function f6(A){if(!f9()){return G0;}var R1=[],H2=[];f1(A.X0,function(i,I2){H2[i]=I2;});f1(H2,function(i,I2){if(f0(I2)){I2=f26(I2);if(I2!==''){R1[i]=new Image;R1[i].__i=i;function f16(J2){H2[J2]='';if(H2.join('')==''&&A.W!=C){A.W(R1);}}R1[i].onload=function(){f16(this.__i);};R1[i].onerror=function(){R1[this.__i]=C;f16(this.__i);};R1[i].src=I2;}}});return A0;}function f7(A){W3[A.S2]=A.X3;C3.zIndex=W3['base-zindex'];return A0;}function f3(J,D0,K2){if(J=='fade'){D0=f17(D0);D0.splice(4,0,'',1,G0);}var A={J:J};f1(D1[K2],function(i,Y0){if(typeof D0[i]=='function'){for(var j=i;j<D1[K2].length;j++){A[D1[K2][j]]=C;}A.W=D0[i];return G0;}if(!f0(D0[i])){A[Y0]=C;}else{A[Y0]=D0[i];}});return A;}function f4(A){if(typeof A.G=='string'&&/^#/.test(A.G)){A.G=document.getElementById(A.G.substr(1));}A.U1=parseFloat(A.U1)*1000;var N2=(1/W3['step-resolution'])*4000;if(A.U1<N2){A.U1=N2;}return A;}var O={};O.fade=function(D,H){if(!(D instanceof Array)){D=[D];}f1(D,function(i,G){if(G!=C){if(L.W0==K){if(!f0(G[K][A3])){f2(G);}G[K][A3].opacity=H*100;}else{G.style[L.W0]=H==1?0.9999999:H;}}});};function f8(D,E0){if(L[E0]!=C){return L[E0]!=R2;}for(var V3=C2[E0],l=V3.length,i=0;i<l;i++){if(f0(D.style[V3[i]])){L[E0]=V3[i];return A0;}}f2(D);if(typeof D[K]=='object'&&D[K].length>0&&((E0=='U'&&typeof D[K][M]=='object'&&typeof D[K][M].M11=='number')||(E0=='W0'&&typeof D[K][A3]=='object'&&typeof D[K][A3].opacity=='number'))){L[E0]=K;return A0;}L[E0]=R2;return G0;}function f2(D){D.style.filter=B3;}function f9(){var I0=new Image,J0='about:blank',K0='url(http:/\/0)';if(f0(I0.style.webkitOpacity)){I0.src=J0;return !I0.complete;}else if(f0(window.opera)){I0.src=J0;return I0.complete;}else if(f0(I0.style.MozOpacity)){if(/^file/.test(document.location.href)){return A0;}I0.style.backgroundImage=K0;return !/^(none|url\(invalid)/i.test(window.getComputedStyle(I0,'').backgroundImage);}else if(f0(I0.readyState)){I0.src=J0;return I0.width>0;}return A0;}function f21(D,A,I){if(A.N>0){O.fade(D,!A.T?(1-A.N):1);}}function f12(E,A,V0){if(A.G.src.indexOf(A.E)<0){A.G.src=A.E;}if(A.A1!=C){A.G.alt=A.A1;}if(V0!=R2){O.fade(A.G,1);}if(E!=C){if(!(E instanceof Array)){E=[E];}f1(E,function(i,G){if(G!=C){f19(/^span/i.test(G.parentNode.nodeName)?G.parentNode:G);}});}f20(A.G.__ix,C);}function f11(A){function P2(){f12(C,A,R2);f19(F1.appendChild(document.createTextNode(' ')));if(A.W!=C){A.W();}}if(W3['long-fallback']==A0){f10(A.U1,C,P2);}else{window.setTimeout(P2,55);}return C;}function f10(R3,X2,W){var B1=Math.floor((R3/100)*(W3['step-resolution']/10)),S3=0,J3=new Date().getTime(),T3=function(){S3++;if(S3==B1){W();}else{if(X2!=C){X2(B1,S3);}var V1=((new Date().getTime()-J3)-(S3*(R3/B1)));var K3=(R3/B1)-V1;if(K3<10){K3=10;}window.setTimeout(T3,K3);}};window.setTimeout(T3,(R3/B1));}function f13(E3){if(!f0(G3[E3])){return C;}return G3[E3];}function f20(E3,F3){G3[E3]=F3;}function f14(S,Y){var X={x:100,y:100},T0=f23(F1.appendChild(f25(Y)),{left:X.x+'px',top:X.y+'px',visibility:'hidden'}),S0=f15(T0),U0={x:(S0.x-X.x),y:(S0.y-X.y)};X=f15(S);X.x-=U0.x;X.y-=U0.y;f19(T0);return X;}function f15(S){var R0=S.getBoundingClientRect();return{x:R0.left,y:R0.top};}function f5(F0,X,Y){var T2=new Image;T2.alt='';f22(T2,F0);if(Y){var U2=F1.appendChild(f25());U2.style.overflow='hidden';U2.appendChild(T2);f18(U2,F0,X,Y);f22(U2,F0);}else{T2=F1.appendChild(T2);f18(T2,F0,X,Y);}return T2;}function f18(V2,F0,X,Y){f23(V2,{left:X.x+'px',top:X.y+'px'});if(Y){f23(V2.firstChild,D3);}}function f22(V2,F0){V2.style.width=F0.offsetWidth+'px';V2.style.height=F0.offsetHeight+'px';}function f23(S,Q0){f1(C3,function(key,prop){S.style[key]=prop;});if(f0(Q0,C)){f1(Q0,function(key,prop){S.style[key]=prop;});}return S;}function f0(P3,N1){if(typeof P3=='undefined'){return G0;}if(typeof N1=='undefined'){return A0;}return P3!==N1;}function f1(S1,X2){if(f0(S1.length)){for(var l=S1.length,i=0;i<l;i++){if(f0(X2(i,S1[i]))){break;}}}else{for(var i in S1){if(S1.hasOwnProperty(i)){if(f0(X2(i,S1[i]))){break;}}}}}function f17(D0){var X0=[];f1(D0,function(i,P0){X0[i]=P0;});return X0;}function f25(Y){return document.createElement(!f0(Y,A0)?'span':'img');}function f19(S){S.parentNode.removeChild(S);}function f26(s){return s.replace(/^\s+|\s+$/g,'');}}).apply(Transitions);
