var ContentFlowGlobal={Flows:[],AddOns:{},scriptName:"contentflow.js",scriptElement:null,Browser:new function(){this.Opera=window.opera?!0:!1;this.IE=document.all&&!this.Opera?!0:!1;this.IE6=this.IE&&typeof XMLHttpRequest=="undefined"?!0:!1;this.IE8=this.IE&&typeof document.querySelectorAll!="undefined"?!0:!1;this.IE7=this.IE&&!this.IE6&&!this.IE8?!0:!1;this.WebKit=/WebKit/i.test(navigator.userAgent)?!0:!1;this.iPhone=/iPhone|iPod/i.test(navigator.userAgent)?!0:!1;this.Chrome=/Chrome/i.test(navigator.userAgent)?!0:!1;this.Safari=/Safari/i.test(navigator.userAgent)&&!this.Chrome?!0:!1;this.Konqueror=navigator.vendor=="KDE"?!0:!1;this.Konqueror4=this.Konqueror&&/native code/.test(document.getElementsByClassName)?!0:!1;this.Gecko=!this.WebKit&&navigator.product=="Gecko"?!0:!1;this.Gecko19=this.Gecko&&Array.reduce?!0:!1},getAddOnConf:function(n){return this.AddOns[n]?this.AddOns[n].conf:{}},setAddOnConf:function(n,t){this.AddOns[n].setConfig(t)},getScriptElement:function(n){for(var r=new RegExp(n),i=document.getElementsByTagName("script"),t=0;t<i.length;t++)if(i[t].src&&r.test(i[t].src))return i[t];return""},getScriptPath:function(n,t){var i=new RegExp(t+".*");return n.src.replace(i,"")},addScript:function(n){if(this.Browser.IE||this.Browser.WebKit||this.Browser.Konqueror)document.write('<script type="text/javascript" src="'+n+'"><\/script>');else{var t=document.createElement("script");t.src=n;t.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(t)}},addScripts:function(n,t){for(var i=0;i<filename.length;i++)this.addScript(basepath+t[i])},addStylesheet:function(n){if(this.Browser.Gecko19){var t=document.createElement("link");t.setAttribute("rel","stylesheet");t.setAttribute("href",n);t.setAttribute("type","text/css");t.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(t)}else document.write('<link rel="stylesheet" href="'+n+'" type="text/css" media="screen" />')},addStylesheets:function(n,t){for(var i=0;i<filename.length;i++)this.addStylesheet(basepath+t[i])},initPath:function(){this.scriptElement=this.getScriptElement(this.scriptName);this.scriptElement||(this.scriptName="contentflow_src.js",this.scriptElement=this.getScriptElement(this.scriptName));this.BaseDir=this.getScriptPath(this.scriptElement,this.scriptName);this.AddOnBaseDir||(this.AddOnBaseDir=this.BaseDir);this.CSSBaseDir||(this.CSSBaseDir=this.BaseDir)},init:function(){var i,n,t,r,u;if(this.addStylesheet(this.CSSBaseDir+"contentflow.css"),this.addStylesheet(this.CSSBaseDir+"mycontentflow.css"),this.loadAddOns=[],this.scriptElement.getAttribute("load"))for(i=this.loadAddOns=this.scriptElement.getAttribute("load").replace(/\ +/g," ").split(" "),n=0;n<i.length;n++)i[n]!=""&&this.addScript(this.AddOnBaseDir+"ContentFlowAddOn_"+i[n]+".js");t=this;document.addEventListener?this.Browser.WebKit?r=setInterval(function(){/loaded|complete/.test(document.readyState)&&(clearInterval(r),t.onloadInit())},10):document.addEventListener("DOMContentLoaded",t.onloadInit,!1):this.Browser.IE&&(document.write("<script id=__ie_cf_onload defer src=javascript:void(0)><\/script>"),u=document.getElementById("__ie_cf_onload"),u.onreadystatechange=function(){this.readyState=="complete"&&t.onloadInit()});window.addEvent("load",t.onloadInit,!1)},onloadInit:function(){var f,e,i,u,t,n,r,o;if(!arguments.callee.done){for(n=0;n<ContentFlowGlobal.loadAddOns.length;n++)if(f=ContentFlowGlobal.loadAddOns[n],!ContentFlowGlobal.AddOns[f]){e=ContentFlowGlobal;window.setTimeout(e.onloadInit,10);return}if(arguments.callee.done=!0,window.Element&&Element.implement&&document.all&&!window.opera)for(i in window.CFElement.prototype)window.Element.prototype[i]||(u={},u[i]=window.CFElement.prototype[i],Element.implement(u));for(n=0;n<ContentFlowGlobal.Flows.length;n++)ContentFlowGlobal.Flows[n].init();t=document.getElementsByTagName("div");n:for(n=0;n<t.length;n++)if(t[n].className.match(/\bContentFlow\b/)){for(r=0;r<ContentFlowGlobal.Flows.length;r++)if(t[n]==ContentFlowGlobal.Flows[r].Container)continue n;o=new ContentFlow(t[n],{},!1);o.init()}}}},ContentFlowAddOn,ContentFlowGUIElement,ContentFlowItem,ContentFlow,Event;ContentFlowGlobal.initPath();ContentFlowAddOn=function(n,t,i){if((typeof i=="undefined"||i!=!1)&&(ContentFlowGlobal.AddOns[n]=this),this.name=n,t||(t={}),this.methods=t,this.conf={},this.methods.conf&&(this.setConfig(this.methods.conf),delete this.methods.conf),this.scriptpath=ContentFlowGlobal.AddOnBaseDir,t.init){var r=t.init.bind(this);r(this)}};ContentFlowAddOn.prototype={Browser:ContentFlowGlobal.Browser,addScript:ContentFlowGlobal.addScript,addScripts:ContentFlowGlobal.addScripts,addStylesheet:function(n){n||(n=this.scriptpath+"ContentFlowAddOn_"+this.name+".css");ContentFlowGlobal.addStylesheet(n)},addStylesheets:ContentFlowGlobal.addStylesheets,setConfig:function(n){for(var t in n)this.conf[t]=n[t]},_init:function(n){this.methods.ContentFlowConf&&n.setConfig(this.methods.ContentFlowConf)}};ContentFlowGUIElement=function(n,t){return t.setDimensions=function(){this.dimensions=this.getDimensions();this.center={x:this.dimensions.width/2,y:this.dimensions.height/2};this.position=this.findPos()},t.addObserver=function(t,i){var r=this.eventMethod=i.bind(n);this.observedEvent=t;this.addEvent(t,r,!1)},t.makeDraggable=function(n,t,i){this.stopDrag=function(t){var t,r,u;t||(t=window.event);this.Browser.iPhone?(window.removeEvent("touchemove",n,!1),this.ontochmove||(r=t.target,r.firstChild&&(r=r.firstChild),u=document.createEvent("MouseEvents"),u.initEvent("click",!0,!0),r.dispatchEvent(u))):window.removeEvent("mousemove",n,!1);i(t)}.bind(this);this.initDrag=function(n){var n,i;n||(n=window.event);i=n;n.touches&&(i=n.touches[0]);this.mouseX=i.clientX;this.mouseY=i.clientY;t(n)}.bind(this);this.startDrag=function(t){var t,i,r;t||(t=window.event);i=this.stopDrag;this.Browser.iPhone?(r=this,r.ontouchmove=!1,window.addEvent("touchmove",function(t){r.ontouchmove=!0;n(t)},!1),t.preventDefault(),window.addEvent("touchend",i,!1)):(window.addEvent("mousemove",n,!1),window.addEvent("mouseup",i,!1));t.preventDefault&&t.preventDefault()}.bind(this);var r=this.startDrag;this.Browser.iPhone?this.addEventListener("touchstart",r,!1):this.addEvent("mousedown",r,!1)},t.Browser=ContentFlowGlobal.Browser,$CF(t).setDimensions(),t};ContentFlowItem=function(n,t,i){var r,e,u,f,o,s;this.CFobj=n;this._activeElement=n.conf.activeElement;this.pre=null;this.next=null;this.clickItem=function(n){var n;n||(n=window.event);var t=n.target?n.target:n.srcElement,r=t.itemIndex?t.itemIndex:t.parentNode.itemIndex,i=this.items[r];if(this._activeItem==i)this.conf.onclickActiveItem(i);else this.conf.onclickInactiveItem(i)!=!1&&this.moveToIndex(r)}.bind(n);this.setIndex=function(n){this.index=n;this.element.itemIndex=n};this.getIndex=function(){return this.index};$CF(t).nodeName=="IMG"&&(r=document.createElement("div"),r.className="item",e=t.parentNode.replaceChild(r,t),e.className="content",r.appendChild(e),t.title&&(u=document.createElement("div"),u.className="caption",u.innerHTML=t.title,r.appendChild(u)),t=r);this.element=$CF(t);this.item=t;typeof i!="undefined"&&this.setIndex(i);this.content=this.element.getChildrenByClassName("content")[0];this.caption=this.element.getChildrenByClassName("caption")[0];this.label=this.element.getChildrenByClassName("label")[0];this.content.nodeName=="IMG"?(n._imagesToLoad++,f=function(){n._imagesToLoad--;this.image=this.content;this.setImageFormat(this.image);n.conf.reflectionHeight>0&&this.addReflection();this.initClick();n._addItemCueProcess(!0)}.bind(this),this.content.complete&&this.content.width>0?window.setTimeout(f,100):this.Browser.IE&&!this.content.onload?(o=this,s=window.setInterval(function(){o.content.complete&&o.content.width>0&&(window.clearInterval(s),f())},10)):this.content.onload=window.setTimeout(f,100)):(this.initClick(),n._addItemCueProcess(!0))};ContentFlowItem.prototype={Browser:ContentFlowGlobal.Browser,makeActive:function(){this.element.addClassName("active");this.CFobj.conf.onMakeActive(this)},makeInactive:function(){this.element.removeClassName("active");this.CFobj.conf.onMakeInactive(this)},initClick:function(){var n=this.clickItem;this[this._activeElement].addEvent("click",n,!1)},setImageFormat:function(n){(this.Browser.IE6||this.Browser.IE7)&&(n.style.width="auto");n.origProportion=n.width/n.height;n.setAttribute("origProportion",n.width/n.height);(this.Browser.IE6||this.Browser.IE7)&&(n.style.width="");n.origProportion<=1?n.addClassName("portray"):n.addClassName("landscape")},addReflection:function(){var n=this.CFobj,r,t=this.content,h,v,u,i,y,b,o,s;if(this.Browser.IE)h="progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)",n._reflectionColorRGB?(n.conf.reflectionColor=="transparent"?(u=r=this.reflection=document.createElement("img"),r.src=t.src):(r=this.reflection=document.createElement("div"),u=document.createElement("img"),u.src=t.src,r.width=u.width,r.height=u.height,u.style.width="100%",u.style.height="100%",v=n._reflectionColorRGB,r.style.backgroundColor="#"+v.hR+v.hG+v.hB,r.appendChild(u)),h+=" progid:DXImageTransform.Microsoft.Alpha(opacity=0, finishOpacity=50, style=1, finishX=0, startY="+n.conf.reflectionHeight*100+" finishY=0)"):(u=r=this.reflection=document.createElement("img"),r.src=t.src),h+=" progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=0, M21=0, M22="+1/n.conf.reflectionHeight+")",ContentFlowGlobal.Browser.IE6&&t.src.match(/\.png$/)&&(t.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+t.src+"', sizingMethod=scale )",t.filterString="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+t.src+"', sizingMethod=scale )",h+=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+t.src+"', sizingMethod=scale )",t.origSrc=t.src,t.src="img/blank.gif",u.src="img/blank.gif"),r.filterString=h,u.style.filter=h;else if(i=n._reflectionWithinImage?this.canvas=$CF(document.createElement("canvas")):r=this.reflection=document.createElement("canvas"),i.getContext){if(n._reflectionWithinImage)for(y=0;y<t.attributes.length;y++)i.setAttributeNode(t.attributes[y].cloneNode(!0));var f=i.getContext("2d"),w=n.maxHeight,k=n._scaleImageSize(this,{width:w,height:w},w),p=k.width,e=k.height;if(n._reflectionWithinImage?(i.width=p,i.height=e,this.setImageFormat(i),i.height=e*(1+n.conf.reflectionHeight+n.conf.reflectionGap)):(i.width=p,i.height=e*n.conf.reflectionHeight),f.save(),n._reflectionWithinImage&&f.drawImage(t,0,0,p,e),b=n._reflectionWithinImage?e*(1+n.conf.reflectionGap/2)*2:t.height,b-=1,f.translate(0,b),f.scale(1,-1),f.drawImage(t,0,0,p,e),f.restore(),n._reflectionColorRGB){o=f.createLinearGradient(0,0,0,i.height);s=[0,.5,1];n._reflectionColor=="transparent"&&(f.globalCompositeOperation="destination-in",s=[1,.5,0]);var c=n._reflectionColorRGB.iR,l=n._reflectionColorRGB.iG,a=n._reflectionColorRGB.iB;n._reflectionWithinImage?(o.addColorStop(0,"rgba("+c+","+l+","+a+","+s[0]+")"),o.addColorStop(e/i.height,"rgba("+c+","+l+","+a+","+s[0]+")"),o.addColorStop(e/i.height,"rgba("+c+","+l+","+a+","+s[1]+")")):o.addColorStop(0,"rgba("+c+","+l+","+a+","+s[1]+")");o.addColorStop(1,"rgba("+c+","+l+","+a+","+s[2]+")");f.fillStyle=o;f.fillRect(0,0,i.width,i.height)}n._reflectionWithinImage&&(t.parentNode.replaceChild(i,t),this.content=i,this.origContent=i,delete this.image)}else n._reflectionWithinImage=!1,delete this.reflection;r&&(r.className="reflection",this.element.appendChild(r),this.caption&&this.element.appendChild(this.caption))}};ContentFlow=function(n,t){if(n)ContentFlowGlobal.Flows.push(this),this.Container=n,this._userConf=t?t:{},this.conf={},this._loadedAddOns=[];else throw"ContentFlow ERROR: No flow container node or id given";};ContentFlow.prototype={_imagesToLoad:0,_activeItem:0,_currentPosition:0,_targetPosition:0,_stepLock:!1,_millisecondsPerStep:40,_reflectionWithinImage:!0,Browser:ContentFlowGlobal.Browser,_defaultConf:{useAddOns:"all",biggestItemPos:0,loadingTimeout:3e4,activeElement:"content",maxItemHeight:0,scaleFactor:1,scaleFactorLandscape:1.33,scaleFactorPortrait:1,fixItemSize:!1,relativeItemPosition:"top center",circularFlow:!0,verticalFlow:!1,visibleItems:-1,endOpacity:1,startItem:"center",scrollInFrom:"pre",flowSpeedFactor:1,flowDragFriction:1,scrollWheelSpeed:1,keys:{13:function(){this.conf.onclickActiveItem(this._activeItem)},37:function(){this.moveTo("pre")},38:function(){this.moveTo("visibleNext")},39:function(){this.moveTo("next")},40:function(){this.moveTo("visiblePre")}},reflectionColor:"transparent",reflectionHeight:.5,reflectionGap:0,onInit:function(){},onclickInactiveItem:function(){},onclickActiveItem:function(n){var t,i;(t=n.content.getAttribute("href"))?i=n.content.getAttribute("target"):(t=n.element.getAttribute("href"))?i=n.element.getAttribute("target"):(t=n.content.getAttribute("src"))&&(i=n.content.getAttribute("target"));t&&(i?window.open(t,i).focus():window.location.href=t)},onMakeInactive:function(){},onMakeActive:function(){},onReachTarget:function(){},onMoveTo:function(){},onDrawItem:function(){},onclickPreButton:function(n){return this.moveToIndex("pre"),Event.stop(n)},onclickNextButton:function(n){return this.moveToIndex("next"),Event.stop(n)},calcStepWidth:function(n){var t=this.conf.visibleItems,i=this.items.length,r;return i=i==0?1:i,Math.abs(n)>t?n>0?n-t:n+t:t>=this.items.length?n/i:n*(t/i)},calcSize:function(n){var i=n.relativePosition,t=1/(Math.abs(i)+1),r=t;return{width:r,height:t}},calcCoordinates:function(n){var i=n.relativePosition,t=this.conf.visibleItems,r=1-1/Math.exp(Math.abs(i)*.75),u=n.side*t/(t+1)*r;return{x:u,y:1}},calcZIndex:function(n){return-Math.abs(n.relativePositionNormed)},calcFontSize:function(n){return n.size.height},calcOpacity:function(n){return Math.max(1-(1-this.conf.endOpacity)*Math.sqrt(Math.abs(n.relativePositionNormed)),this.conf.endOpacity)}},_checkIndex:function(n){return n=Math.max(n,0),Math.min(n,this.itemsLastIndex)},_setLastIndex:function(){this.itemsLastIndex=this.items.length-1},_getItemByIndex:function(n){return this.items[this._checkIndex(n)]},_getItemByPosition:function(n){return this._getItemByIndex(this._getIndexByPosition(n))},_getPositionByIndex:function(n){if(!this.conf.circularFlow)return this._checkIndex(n);var i=this._getIndexByPosition(this._currentPosition),t=n-i;return Math.abs(t)>t+this.items.length?t+=this.items.length:Math.abs(t)>Math.abs(t-this.items.length)&&(t-=this.items.length),this._currentPosition+t},_getIndexByPosition:function(n){var i,t;return i=n<0?0:1,t=(Math.round(n)+i)%this.items.length,t>0?t-=i:t<0?t+=this.items.length-i:t=n<0?0:this.items.length-1,t},_getIndexByKeyWord:function(n,t,i){var r;if(r=t?t:this._activeItem?this._activeItem.index:0,isNaN(n))switch(n){case"first":case"start":r=0;break;case"last":case"end":r=this.itemsLastIndex;break;case"middle":case"center":r=Math.round(this.itemsLastIndex/2);break;case"right":case"next":r+=1;break;case"left":case"pre":case"previous":r-=1;break;case"visible":case"visiblePre":case"visibleLeft":r-=this.conf.visibleItems;break;case"visibleNext":case"visibleRight":r+=this.conf.visibleItems;break;default:r=r}else r=n;return i!=!1&&(r=this._checkIndex(r)),r},_setCaptionLabel:function(n){this.Position&&!this.Slider.locked&&this.Position.setLabel(n);this._setGlobalCaption()},getAddOnConf:function(n){return ContentFlowGlobal.getAddOnConf(n)},setAddOnConf:function(n,t){ContentFlowGlobal.setAddOnConf(n,t)},init:function(){this.isInit||this._init()},setConfig:function(n){var f,t,e,i,u,r,o,s;if(n){f=this._defaultConf;for(t in n)if(f[t]!="undefined")switch(t){case"scrollInFrom":case"startItem":(typeof n[t]=="number"||typeof n[t]=="string")&&(this.conf[t]=n[t]);break;default:typeof(f[t]==n[t])&&(this.conf[t]=typeof n[t]=="function"?n[t].bind(this):n[t])}switch(this.conf.reflectionColor){case this.conf.reflectionColor.search(/#[0-9a-fA-F]{6}/)>=0?this.conf.reflectionColor:this.conf.reflectionColor+"x":this._reflectionColorRGB={hR:this.conf.reflectionColor.slice(1,3),hG:this.conf.reflectionColor.slice(3,5),hB:this.conf.reflectionColor.slice(5,7),iR:parseInt(this.conf.reflectionColor.slice(1,3),16),iG:parseInt(this.conf.reflectionColor.slice(3,5),16),iB:parseInt(this.conf.reflectionColor.slice(5,7),16)};break;case"none":case"transparent":default:this._reflectionColor="transparent";this._reflectionColorRGB={hR:0,hG:0,hB:0,iR:0,iG:0,iB:0}}this.items&&(this.conf.visibleItems<0&&(this.conf.visibleItems=Math.round(Math.sqrt(this.items.length))),this.conf.visibleItems=Math.min(this.conf.visibleItems,this.items.length-1));this.conf.relativeItemPosition&&(e={x:{left:function(){return-1},center:function(){return 0},right:function(){return 1}},y:{top:function(){return-1},center:function(){return 0},bottom:function(){return 1}}},i=this.conf.relativeItemPosition,i=i.replace(/above/,"top").replace(/below/,"bottom"),r=null,u=i.match(/left|right/),r=i.match(/top|bottom/),c=i.match(/center/),u||(u=c?"center":"center"),r||(r=c?"center":"top"),o=e.x[u],s=e.y[r],this.conf.calcRelativeItemPosition=function(n){var t=o(n.size),i=s(n.size);return{x:t,y:i}},this.conf.relativeItemPosition=null);this._reflectionType&&this._reflectionType!="clientside"&&(this.conf.reflectionHeight=0)}},getItem:function(n){return this.items[this._checkIndex(Math.round(n))]},getActiveItem:function(){return this._activeItem},getNumberOfItems:function(){return this.items.length},resize:function(){this._initSizes();this._initStep()},moveToPosition:function(n,t){this.conf.circularFlow||(n=this._checkIndex(n));this._targetPosition=n;this.conf.onMoveTo(this._getItemByPosition(n));this._initStep(!1,t)},moveToIndex:function(n){this._targetPosition=Math.round(this._getPositionByIndex(this._getIndexByKeyWord(n,this._activeItem.index,!this.conf.circularFlow)));this.conf.onMoveTo(this._getItemByPosition(this._targetPosition));this._initStep()},moveToItem:function(n){var t;t=n.itemIndex?n.itemIndex:n.index;this.moveToIndex(t)},moveTo:function(n){typeof n=="object"?this.moveToItem(n):isNaN(n)||n==Math.floor(n)&&n<this.items.length?this.moveToIndex(n):this.moveToPosition(n)},_addItemCue:[],_addItemCueProcess:function(n){var t=this._addItemCue,i,r;n==!0&&t.shift();t.length>0&&!t[0].p&&(t[0].p=!0,i=this,r=t.length>5?1:40,window.setTimeout(function(){i._addItem(t[0].el,t[0].i)},r))},addItem:function(n,t){this._addItemCue.push({el:n,i:t,p:!1});this._addItemCue.length==1&&this._addItemCueProcess()},_addItem:function(n,t){var i,u,r;if(typeof t=="string")switch(t){case"first":case"start":t=0;break;case"last":case"end":t=(isNaN(this.itemsLastIndex)?0:this.itemsLastIndex)+1;break;default:t=this._getIndexByKeyWord(t)}for(t=Math.max(t,0),t=Math.min(t,this.itemsLastIndex+1),t=isNaN(t)?0:t,this.Flow.appendChild(n),i=new ContentFlowItem(this,n,t),this.items.length==0?(this.resize(),this.conf.circularFlow&&(i.pre=i,i.next=i)):(t==this.itemsLastIndex+1?(i.pre=this.items[this.itemsLastIndex],i.next=i.pre.next):(i.next=this.items[t],i.pre=i.next.pre),i.pre&&(i.pre.next=i),i.next&&(i.next.pre=i)),this.items.splice(t,0,i),u=t;u<this.items.length;u++)this.items[u].setIndex(u);return this._setLastIndex(),this.conf.origVisibleItems<0&&(this.conf.visibleItems=Math.round(Math.sqrt(this.items.length))),this.conf.visibleItems=Math.min(this.conf.visibleItems,this.items.length-1),Math.round(this._getPositionByIndex(t))<=Math.round(this._targetPosition)&&(this._targetPosition++,this.conf.circularFlow||(this._targetPosition=Math.min(this._targetPosition,this.itemsLastIndex))),this._getPositionByIndex(t)<=this._currentPosition&&(this._currentPosition++,this.conf.circularFlow||(this._currentPosition=Math.min(this._currentPosition,this.itemsLastIndex))),r=this,window.setTimeout(function(){r.items.length==1?(r._currentPosition=-.01,r._targetPosition=0,r.resize()):r._initStep()},100),t},rmItem:function(n){var t,i,r,u;if(n=="undefined"&&(n=this._activeItem.index),n=this._getIndexByKeyWord(n),!this.items[n])return null;for(t=this.items[n],t.pre&&(t.pre.next=t.next),t.next&&(t.next.pre=t.pre),this.items.splice(n,1),i=n;i<this.items.length;i++)this.items[i].setIndex(i);return this._setLastIndex(),Math.round(this._getPositionByIndex(n))<Math.round(this._targetPosition)&&(this._targetPosition--,this.conf.circularFlow||(this._targetPosition=this._checkIndex(this._targetPosition))),this._getPositionByIndex(n)<this._currentPosition&&(this._currentPosition--,this.conf.circularFlow||(this._currentPosition=this._checkIndex(this._currentPosition))),this._activeItem=this._getItemByPosition(this._currentPosition),r=t.element.parentNode.removeChild(t.element),u=this,window.setTimeout(function(){u._initStep()},10),r},_init:function(){var f,e,o,s,h,c,t,i,r,u;if(typeof this.Container=="string")if(f=document.getElementById(this.Container),f)this.Container=f;else throw"ContentFlow ERROR: No element with id '"+this.Container+"' found!";if($CF(this.Container).addClassName("ContentFlow"),e=$CF(this.Container).getChildrenByClassName("flow")[0],!e)throw"ContentFlow ERROR: No element with class'flow' found!";for(this.Flow=new ContentFlowGUIElement(this,e),o=this.Container.getChildrenByClassName("scrollbar")[0],o&&(this.Scrollbar=new ContentFlowGUIElement(this,o),s=this.Scrollbar.getChildrenByClassName("slider")[0],s&&(this.Slider=new ContentFlowGUIElement(this,s),h=this.Slider.getChildrenByClassName("position")[0],h&&(this.Position=new ContentFlowGUIElement(this,h)))),this.setConfig(this._defaultConf),this._initAddOns(),this.setConfig(this._userConf),this._initSizes(),c=this.Flow.getChildrenByClassName("item"),this.items=[],t=0;t<c.length;t++)i=this.items[t]=new ContentFlowItem(this,c[t],t),t>0&&(i.pre=this.items[t-1],i.pre.next=i);this._setLastIndex();this.conf.circularFlow&&this.items.length>0&&(r=this.items[0],r.pre=this.items[this.items.length-1],r.pre.next=r);this._initGUI();this._activeElement!="content"&&(this._activeElement="element");this.conf.origVisibleItems=this.conf.visibleItems;this.conf.visibleItems<0&&(this.conf.visibleItems=Math.round(Math.sqrt(this.items.length)));this.conf.visibleItems=Math.min(this.conf.visibleItems,this.items.length-1);this._targetPosition=this._getIndexByKeyWord(this.conf.startItem,0);u=this._getIndexByKeyWord(this.conf.scrollInFrom,this._targetPosition);switch(this.conf.scrollInFrom){case"next":case"right":u-=.5;break;case"pre":case"previous":case"left":u+=.5}this._currentPosition=u;var l=new Date,n=this,a=window.setInterval(function(){var t,i;if(n._imagesToLoad==0||new Date-l>n._loadingTimeout){for(clearInterval(a),n._activeItem=n.getItem(n._currentPosition),n._activeItem&&(n._activeItem.makeActive(),n._setCaptionLabel(n._activeItem.index)),n.Flow.style.visibility="visible",n.loadIndicator&&(n.loadIndicator.style.display="none"),n.Scrollbar&&(n.Scrollbar.style.visibility="visible"),n.resize(),t=0;t<n._loadedAddOns.length;t++)i=ContentFlowGlobal.AddOns[n._loadedAddOns[t]],i.methods.afterContentFlowInit&&i.methods.afterContentFlowInit(n);n.conf.onInit()}},10);this.isInit=!0},_initAddOns:function(){var n=[],t,i;for(this._userConf.useAddOns?typeof this._userConf.useAddOns=="string"?n=this._userConf.useAddOns.split(" "):typeof this._userConf.useAddOns=="array"&&(n=this._userConf.useAddOns):n=this.Container.getAttribute("useAddOns")?this.Container.getAttribute("useAddOns").split(" "):this.conf.useAddOns.split(" "),t=0;t<n.length;t++)if(n[t]=="none"){n=[];break}else if(n[t]=="all"){n=[];for(i in ContentFlowGlobal.AddOns)n.push(i);break}for(t=0;t<n.length;t++)if(i=ContentFlowGlobal.AddOns[n[t]],i&&(this._loadedAddOns.push(n[t]),i._init(this),this.Container.addClassName("ContentFlowAddOn_"+i.name),i.methods.onloadInit))i.methods.onloadInit(this)},_initGUI:function(){var v=this.resize.bind(this),t,n,o,s,u,f,i,r,a,e;for(window.addEvent("resize",v,!1),t=this.Container.getElementsByTagName("div"),n=0;n<t.length;n++)$CF(t[n]).hasClassName("preButton")?(o=t[n],u=this.conf.onclickPreButton,o.addEvent("click",u,!1)):t[n].hasClassName("nextButton")&&(s=t[n],u=this.conf.onclickNextButton,s.addEvent("click",u,!1));if(this.conf.scrollWheelSpeed!=0&&(f=this._wheel.bind(this),window.addEventListener&&this.Container.addEventListener("DOMMouseScroll",f,!1),this.Container.onmousewheel=f),i=this._keyStroke.bind(this),this.conf.keys&&!this.Browser.iPhone&&(document.addEventListener?this.Browser.Opera?this.Container.addEvent("keydown",i):(r=document.createElement("div"),r.addClassName("mouseoverCheckElement"),this.Container.appendChild(r),this.Browser.WebKit?document.body.addEvent("keydown",function(n){r.offsetLeft>0&&i(n)}):window.addEvent("keydown",function(n){r.offsetLeft>0&&i(n)})):this.Container.onkeydown=i),this.conf.flowDragFriction>0){var h=function(n){var t=n,i,r,u,f,e,o;n.touches&&(t=n.touches[0]);i=t.clientX;r=t.clientY;this.conf.verticalFlow?(u=r-this.Flow.mouseY,f=this.Flow.dimensions.height):(u=i-this.Flow.mouseX,f=this.Flow.dimensions.width);e=u/f*(2*this.conf.visibleItems+1);o=this._currentPosition-e*2*this.conf.visibleItems/this.conf.flowDragFriction;this.Flow.mouseX=i;this.Flow.mouseY=r;this.moveToPosition(o,!0)}.bind(this),c=function(){},l=function(){var n=Math.round(this._targetPosition);Math.abs(n-this._currentPosition)>.001&&this.moveToPosition(n)}.bind(this);this.Flow.makeDraggable(h,c,l)}if(this.Scrollbar&&(a=function(n){var n;if(n||(n=window.event),this.Scrollbar.clickLocked)this.Scrollbar.clickLocked=!1;else{var t=n.clientX,i=t-this.Scrollbar.position.left,r=Math.round(i/this.Scrollbar.dimensions.width*this.itemsLastIndex);this.moveToIndex(r)}}.bind(this),this.Scrollbar.addObserver("click",a)),this.Slider){this.Browser.IE6&&(e=document.createElement("div"),e.className="virtualSlider",this.Slider.appendChild(e));this.Slider.setPosition=function(n){var t;n=n-Math.floor(n)+this._getIndexByPosition(Math.floor(n));Math.round(n)<0?n=this.itemsLastIndex:n<=0?n=0:Math.round(n)>this.itemsLastIndex?n=0:n>=this.itemsLastIndex&&(n=this.itemsLastIndex);t=this.items.length>1?n/this.itemsLastIndex*this.Scrollbar.dimensions.width:.5*this.Scrollbar.dimensions.width;this.Slider.style.left=t-this.Slider.center.x+"px";this.Slider.style.top=this.Scrollbar.center.y-this.Slider.center.y+"px"}.bind(this);var c=function(){this.Scrollbar.clickLocked=!0}.bind(this),h=function(n){var i=n,t;n.touches&&(i=n.touches[0]);t=this._checkIndex((i.clientX-this.Scrollbar.position.left)/this.Scrollbar.dimensions.width*this.itemsLastIndex);this._targetPosition=this._getPositionByIndex(t);this.Slider.setPosition(t);this.Position&&this.Position.setLabel(t);this._initStep(!0,!0)}.bind(this),l=function(){this._targetPosition=Math.round(this._targetPosition);this.conf.onMoveTo(this._getItemByPosition(this._targetPosition));this._initStep(!0)}.bind(this);this.Slider.makeDraggable(h,c,l)}this.Position&&(this.Position.setLabel=function(n){n=this._checkIndex(Math.round(n));this.Position.innerHTML=this.items&&this.items[n].label?this.items[n].label.innerHTML:n+1}.bind(this));this.globalCaption=this.Container.getChildrenByClassName("globalCaption")[0];this.loadIndicator=this.Container.getChildrenByClassName("loadIndicator")[0]},_initSizes:function(){var i,n,r,t,u;(this._initMaxHeight(),i=this._initScrollbarSize(),!this.conf.verticalFlow&&this.Container.style.height&&this.Container.style.height!="auto"&&(this.maxHeight-=i),this._activeItem)&&(n=this._findBiggestItem(),r=this.Flow.findPos(),this.conf.verticalFlow?(this.Flow.style.width=n.width.width+"px",this.Flow.style.height=3*n.width.width*(1+this.conf.reflectionHeight+this.conf.reflectionGap)+"px"):this.Flow.style.height=n.height.height+(n.height.top-r.top)+"px",t=this.conf.verticalFlow?n.width.width:n.height.height,u=t/(1+this.conf.reflectionHeight+this.conf.reflectionGap),this.Flow.style.marginBottom=-(t-u)+"px",this.Flow.dimensions=this.Flow.getDimensions(),this.Browser.IE6||this.conf.verticalFlow&&this.Container.clientWidth<this.Flow.dimensions.width||this.Container.clientHeight<this.Flow.dimensions.height&&(this.Container.style.height=this.Flow.dimensions.height+"px"),this.Flow.center=this.conf.verticalFlow?{x:this.Flow.dimensions.height/2,y:n.width.width/2}:{x:this.Flow.dimensions.width/2,y:n.height.height/2})},_initScrollbarSize:function(){var i,r,n,u,c,f,e,o,s,h,t;if(i=this.Scrollbar){if(i.setDimensions(),u=i.dimensions.height,(r=this.Slider)&&(r.setDimensions(),u+=r.dimensions.height,n=this.Position)){if(c=n.innerHTML,f=maxW=0,n.style.width="auto",this.items)for(e=0;e<this.items.length;e++)o=this.items[e],n.innerHTML=o.label?o.label.innerHTML:o.index,s=n.clientHeight,h=n.clientWidth,s>f&&(f=s),h>maxW&&(maxW=h);else n.innerHTML="&nbsp;",f=n.clientHeight,maxW=n.clientWidth;n.innerHTML=c;n.setDimensions();n.style.width=maxW+"px";n.style.left=(r.dimensions.width-maxW)/2+"px";t=n.position.top-r.position.top;t>0?(t+=-i.dimensions.height+f,i.style.marginBottom=t+"px"):(t*=-1,i.style.marginTop=t+"px");u+=t}}else u=0;return u},_initMaxHeight:function(){var u,i;if(this.conf.verticalFlow)var f=screen.width/screen.height,n=this.Container.style.width,e=this.Container.clientWidth,t=this.Flow.style.width,r=this.Flow.clientWidth,o=this.Flow.clientHeight;else var f=screen.height/screen.width,n=this.Container.style.height,e=this.Container.clientHeight,t=this.Flow.style.height,r=this.Flow.clientHeight,o=this.Flow.clientWidth;this.ContainerOldDim&&(n=this.ContainerOldDim);this.FlowOldDim&&(t=this.FlowOldDim);this.ContainerOldDim="auto";this.FlowOldDim="auto";this.conf.maxItemHeight<=0?(this.maxHeight=o/3*f/1*this.conf.scaleFactor,this.conf.verticalFlow&&(this.maxHeight==0||this.maxHeight>r)&&(this.maxHeight=r),n&&n!="auto"?(i=this.conf.verticalFlow?0:this.conf.reflectionGap,u=this.conf.verticalFlow?0:this.conf.reflectionHeight,this.maxHeight=e/(this.conf.scaleFactor*(1+u+i)),this.ContainerOldDim=n):t&&t!="auto"&&(i=this.conf.verticalFlow?0:this.conf.reflectionGap,this.maxHeight=r/(this.conf.scaleFactor*(1+this.conf.reflectionHeight+i)),this.FlowOldDim=t)):this.maxHeight=this.conf.maxItemHeight},_findBiggestItem:function(){var i=this._activeItem,o=i.pre,s=i.next,n=maxFlowSize={width:{width:0,left:0,height:0,top:0,item:null,rI:0},height:{width:0,left:0,height:0,top:0,item:null,rI:0}},f=function(t,i){var r=t.element;r.style.display="block";var u=r.findPos(),f=r.clientHeight,e=r.clientWidth;f+u.top>=n.height.height+n.height.top&&(n.height.height=f,n.height.top=u.top,n.height.item=t,n.height.rI=i);e+u.left>=n.width.width+n.width.left&&(n.width.width=e,n.width.left=u.left,n.width.item=t,n.width.rI=i);r.style.display="none"},e=this._currentPosition,u,t,r;for(this._currentPosition=this.conf.visibleItems+1,t=-this.conf.visibleItems;t<=this.conf.visibleItems;t++)i.element.style.display="none",this._positionItem(i,t),f(i,t);for(u=n.height.rI,t=0;t<this.items.length;t++)r=this.items[t],r.element.style.display="none",this._positionItem(r,u),f(r,u);return this._currentPosition=e,n},_keyStroke:function(n){var n,t;return n||(n=window.event),n.which?t=n.which:n.keyCode&&(t=n.keyCode),this.conf.keys[t]?(this.conf.keys[t].bind(this)(),Event.stop(n)):!0},_wheel:function(n){var n,t,i;return n||(n=window.event),t=0,n.wheelDelta?t=n.wheelDelta/120:n.detail&&(t=-n.detail/3),t&&(i=this._targetPosition,t<0?i+=1*this.conf.scrollWheelSpeed:i-=1*this.conf.scrollWheelSpeed,this.moveToPosition(Math.round(i))),Event.stop(n)},_setGlobalCaption:function(){this.globalCaption&&(this.globalCaption.innerHTML="",this._activeItem&&this._activeItem.caption&&this.globalCaption.appendChild(this._activeItem.caption.cloneNode(!0)))},_initStep:function(n,t){this.Slider&&(this.Slider.locked=n?!0:!1);this._holdPos=t==!0?!0:!1;this._stepLock||(this._stepLock=!0,this._step())},_step:function(){var t=this._targetPosition-this._currentPosition,i=Math.abs(t),n,r;if(i>.001){if(this._currentPosition+=this.conf.flowSpeedFactor*this.conf.calcStepWidth(t,i,this.items.length,this.conf.visibleItems),n=this.items[this._getIndexByPosition(this._currentPosition)],n&&n!=this._activeItem&&(this._activeItem&&this._activeItem.makeInactive(),this._activeItem=n,this._activeItem.makeActive(),this._setCaptionLabel(this._activeItem.index),Math.abs(this._targetPosition-this._currentPosition)<=.5))this.conf.onReachTarget(this._activeItem);this._positionItems();r=this._step.bind(this);window.setTimeout(r,this._millisecondsPerStep)}else this._holdPos?this._stepLock=!1:(this.Slider&&(this.Slider.locked=!1),this._currentPosition=Math.round(this._currentPosition),this.Position&&!this.Slider.locked&&this._activeItem&&this._setCaptionLabel(this._activeItem.index),this._positionItems(),this._stepLock=!1);this.Slider&&!this.Slider.locked&&this.Slider.setPosition(this._currentPosition)},_positionItems:function(){var n,t;if(this._lastStart)for(n=this._lastStart;n;){if(n.element.style.display="none",n=n.next,n==this._lastStart)break;if(n&&n.pre==this._lastEnd)break}else this._lastStart=this._activeItem;if(this._activeItem){var u=this._activeItem,i=u.pre,r=u.next;for(this._positionItem(u,0),t=1;t<=this.conf.visibleItems&&2*t<this.items.length;t++)i&&(this._positionItem(i,-t),this._lastStart=i,i=i.pre),r&&(this._positionItem(r,t),this._lastEnd=r,r=r.next)}},_positionItem:function(n,t){var r=this.conf,f=r.verticalFlow,u=n.element.style,a=n.position=this._currentPosition+t,e=n.relativePosition=Math.round(a)-this._currentPosition,b=n.relativePositionNormed=r.visibleItems>0?e/r.visibleItems:0,o=e<0?-1:1,i;o*=e==0?0:1;n.side=o;i=r.calcSize(n);i.height=Math.max(i.height,0);i.width=Math.max(i.width,0);n.content.origProportion&&(i=this._scaleImageSize(n,i));n.size=i;var s=n.coordinates=r.calcCoordinates(n),h=n.relativeItemPosition=r.calcRelativeItemPosition(n),v=n.zIndex=r.calcZIndex(n),y=n.fontSize=r.calcFontSize(n),k=n.opacity=r.calcOpacity(n);i.height*=this.maxHeight;i.width*=this.maxHeight;var p=f?i.height:i.width,w=f?i.width:i.height,c=this.Flow.center.x*(1+s.x)+(h.x-1)*p/2,l=this.maxHeight/2*(1+s.y)+(h.y-1)*w/2;u.left=(f?l:c)+"px";u.top=(f?c:l)+"px";this._setItemSize(n,i);r.endOpacity!=1&&this._setItemOpacity(n);this.Browser.IE||(u.fontSize=y*100+"%");u.zIndex=32768+Math.round(v*this.items.length);r.onDrawItem(n);u.visibility="visible";u.display="block"},_scaleImageSize:function(n,t,i){var e=this.conf.scaleFactorLandscape,o=this.conf.scaleFactorPortrait,c=this.conf.verticalFlow,f=n.content.origProportion,r=t.width,u=t.height,s=n.content;if(c?f<=1?(e!="max"&&e!=1&&(u*=e,r=Math.min(u*f,i?i:1)),u=r/f):f>1&&(o=="max"?u=i?i:1:o!=1?(r*=o,u=Math.min(r/f,i?i:1)):u=r/f,r=u*f):f>1?(e!="max"&&e!=1&&(r*=e,u=Math.min(r/f,i?i:1)),r=u*f):f<=1&&(o=="max"?r=i?i:1:o!=1?(u*=o,r=Math.min(u*f,i?i:1)):r=u*f,u=r/f),u=isNaN(u)?0:u,r=isNaN(r)?0:r,!i&&this.conf.fixItemSize){var h=t.width/t.height,i=Math.max(t.width,t.height),l=this._scaleImageSize(n,{width:i,height:i},i);h<1?(u=l.height/t.height,r=u*f/h):(r=l.width/t.width,u=r/f*h);var a=u*100,v=r*100,y=(1-r)*50,p=(1-u)/h*100*(c?.5:1);return s.style.height=a+"%",n.reflection&&(n.reflection.style.height=a*this.conf.reflectionHeight+"%"),s.style.width=v+"%",n.reflection&&(n.reflection.style.width=v+"%"),s.style.marginLeft=y+"%",n.reflection&&(n.reflection.style.marginLeft=y+"%"),s.style.marginTop=p+"%",n.element.style.overflow="hidden",t}return{width:r,height:u}},_setItemSize:function(){var n;return ContentFlowGlobal.Browser.IE?function(n,t){var r,i;this.conf.fixItemSize?ContentFlowGlobal.Browser.IE6&&(i=parseInt(n.content.style.height)/100,n.content.style.height=t.height*i+"px",r=parseInt(n.content.style.marginTop)/100,n.content.style.marginTop=t.height*r+"px"):n.content.style.height=t.height+"px";n.reflection&&(i=parseInt(n.content.style.height),n.reflection.style.height=i*this.conf.reflectionHeight+"px",n.reflection.style.marginTop=i*this.conf.reflectionGap+"px");n.element.style.width=t.width+"px";n.element.style.height=t.height*(1+this.conf.reflectionHeight+this.conf.reflectionGap)+"px"}:function(n,t){n.reflection?(n.element.style.height=t.height*(1+this.conf.reflectionHeight+this.conf.reflectionGap)+"px",n.reflection.style.marginTop=t.height*this.conf.reflectionGap+"px"):n.element.style.height=this._reflectionWithinImage?t.height*(1+this.conf.reflectionHeight+this.conf.reflectionGap)+"px":t.height+"px";n.element.style.width=t.width+"px"}}(),_setItemOpacity:function(){var n;return ContentFlowGlobal.Browser.IE6?function(n){if(n.content.origSrc&&n.content.origSrc.match(/\.png$/)){var t=n.content.src;n.content.src=n.content.origSrc;n.content.style.filter=n.content.filterString+" progid:DXImageTransform.Microsoft.BasicImage(opacity="+n.opacity+")";n.content.src=t}else n.content.style.filter="progid:DXImageTransform.Microsoft.BasicImage(opacity="+n.opacity+")";n.reflection&&(n.reflection.style.filter=n.reflection.filterString+"progid:DXImageTransform.Microsoft.BasicImage(opacity="+n.opacity+")")}:ContentFlowGlobal.Browser.IE?function(n){n.element.style.filter="progid:DXImageTransform.Microsoft.BasicImage(opacity="+n.opacity+")"}:function(n){n.element.style.opacity=n.opacity}}()};Function.bind||(Function.prototype.bind=function(n){var t=this;return function(){return t.apply(n,arguments)}});Math.erf2||(Math.erf2=function(n){var i=-(8*(Math.PI-3)/(3*Math.PI*(Math.PI-4))),t=n*n;return 1-Math.pow(Math.E,-t*(4/Math.PI+i*t)/(1+i*t))});Math._2PI05||(Math._2PI05=Math.sqrt(2*Math.PI));Math.normDist||(Math.normDist=function(n,t,i){var t,i,n;return t||(t=1),i||(i=0),n||(n=-i),1/(t*Math._2PI05)*Math.pow(Math.E,-(n-i)*(n-i)/(2*t*t))});Math.normedNormDist||(Math.normedNormDist=function(n,t,i){return this.normDist(n,t,i)/this.normDist(i,t,i)});Math.exp||(Math.exp=function(n){return Math.pow(Math.E,n)});Math.ln||(Math.ln=Math.log);Math.log2||(Math.log2=function(n){return Math.log(n)/Math.LN2});Math.log10||(Math.log10=function(n){return Math.log(n)/Math.LN10});Math.logerithm||(Math.logerithm=function(n,t){return t&&t!=Math.E?t==2?Math.log2(n):t==10?Math.log10(n):Math.log(n)/Math.log(t):Math.log(n)});Event||(Event={});Event.stop||(Event.stop=function(n){return n.cancelBubble=!0,n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation(),!1});window.$CF=document.all&&!window.opera?function(n){return typeof n=="string"?window.$CF(document.getElementById(n)):(CFElement.prototype.extend&&n&&!n.extend&&CFElement.prototype.extend(n),n)}:function(n){return n};window.HTMLElement?CFElement=window.HTMLElement:(CFElement={},CFElement.prototype={},CFElement.prototype.extend=function(n){for(var t in this)n[t]||(n[t]=this[t])});CFElement.findPos||(CFElement.prototype.findPos=function(){var n=this,t=curtop=0;try{if(n.offsetParent)for(t=n.offsetLeft,curtop=n.offsetTop;n=n.offsetParent;)t+=n.offsetLeft,curtop+=n.offsetTop}catch(i){}return{left:t,top:curtop}});CFElement.getDimensions||(CFElement.prototype.getDimensions=function(){return{width:this.clientWidth,height:this.clientHeight}});CFElement.hasClassName||(CFElement.prototype.hasClassName=function(n){return new RegExp("\\b"+n+"\\b").test(this.className)});CFElement.addClassName||(CFElement.prototype.addClassName=function(n){this.hasClassName(n)||(this.className+=(this.className?" ":"")+n)});CFElement.removeClassName||(CFElement.prototype.removeClassName=function(n){this.className=this.className.replace(new RegExp("\\b"+n+"\\b"),"").replace(/\s\s/g," ")});CFElement.toggleClassName||(CFElement.prototype.toggleClassName=function(n){this.hasClassName(n)?this.removeClassName(n):this.addClassName(n)});CFElement.getChildrenByClassName||(CFElement.prototype.getChildrenByClassName=function(n){for(var t,r=[],i=0;i<this.childNodes.length;i++)t=this.childNodes[i],t.nodeType==1&&$CF(t).hasClassName(n)&&r.push(t);return r});CFElement.addEvent||(CFElement.prototype.addEvent=function(n,t,i){this.addEventListener?this.addEventListener(n,t,i):this.attachEvent("on"+n,t)});CFElement.removeEvent||(CFElement.prototype.removeEvent=function(n,t,i){this.removeEventListener?this.removeEventListener(n,t,i):this.detachEvent("on"+n,t)});window.addEvent||(window.addEvent=function(n,t,i){this.addEventListener?this.addEventListener(n,t,i):n!="load"&&n!="resize"?document.attachEvent("on"+n,t):this.attachEvent("on"+n,t)});window.removeEvent||(window.removeEvent=function(n,t,i){this.removeEventListener?this.removeEventListener(n,t,i):n!="load"&&n!="resize"?document.detachEvent("on"+n,t):this.detachEvent("on"+n,t)});ContentFlowGlobal.init()