function prevNews(){if(currentNews==0){currentNews=newsList.length-1}else{currentNews--}opacityTween=new OpacityTween(document.getElementById("NewsTickerText"),Tween.regularEaseOut,100,0,.5);opacityTween.start();opacityTween.onMotionFinished=function(){document.getElementById("NewsTickerText").innerHTML=newsList[currentNews];opacityTween2=new OpacityTween(document.getElementById("NewsTickerText"),Tween.regularEaseIn,0,100,.5);opacityTween2.start()}}function nextNews(){if(currentNews<newsList.length-1){currentNews++}else{currentNews=0}opacityTween=new OpacityTween(document.getElementById("NewsTickerText"),Tween.regularEaseOut,100,0,.5);opacityTween.start();opacityTween.onMotionFinished=function(){document.getElementById("NewsTickerText").innerHTML=newsList[currentNews];opacityTween2=new OpacityTween(document.getElementById("NewsTickerText"),Tween.regularEaseIn,0,100,.5);opacityTween2.start()}}function tick(){var a=document.getElementById(fID);a.style.backgroundImage="url("+imageList[currentImage]+")";document.getElementById("RightNavOne").setAttribute("class","RightPictureNavigationItem");document.getElementById("RightNavTwo").setAttribute("class","RightPictureNavigationItem");document.getElementById("RightNavThree").setAttribute("class","RightPictureNavigationItem");document.getElementById("RightNavFour").setAttribute("class","RightPictureNavigationItem");document.getElementById(elementList[currentImage]).setAttribute("class","RightPictureNavigationItemActive");document.getElementById("linkTop").innerHTML=linkList[currentImage];document.getElementById(bID).style.visibility="visible";if(currentImage<imageList.length-1){currentImage++}else{currentImage=0}if(!isClicked){setTimeout("tick()",1e4)}}function clickPrevNews(){clearInterval(newsTimer);prevNews()}function clickNextNews(){clearInterval(newsTimer);nextNews()}function kickOff(){var a=document.getElementById(bID);a.style.visibility="hidden";for(i=0;i<imageList.length;i++){a.style.backgroundImage="url("+imageList[currentImage]+")";currentImage++}currentImage=0;document.getElementById("linkTop").innerHTML=linkList[currentImage];document.getElementById("NewsTickerText").innerHTML=newsList[currentNews];newsTimer=setInterval("nextNews()",7e3);tick()}function changePic(a,b){document.getElementById("RightNavOne").setAttribute("class","RightPictureNavigationItem");document.getElementById("RightNavTwo").setAttribute("class","RightPictureNavigationItem");document.getElementById("RightNavThree").setAttribute("class","RightPictureNavigationItem");document.getElementById("RightNavFour").setAttribute("class","RightPictureNavigationItem");document.getElementById(a).setAttribute("class","RightPictureNavigationItemActive");var c=document.getElementById(fID);document.getElementById("linkTop").innerHTML=linkList[b];c.style.backgroundImage="url("+imageList[b]+")";currentImage=b;isClicked=true}function transferImage(){var a=document.getElementById(bID);a.style.backgroundImage="url("+imageList[currentImage]+")";var b=document.getElementById(fID);foregroundele.style.backgroundImage="url("+imageList[currentImage]+")";tick()}function animateFadeIn(a,b){var c=(new Date).getTime();var d=c-a;var e=document.getElementById(b);if(e.FadeTimeLeft<=d){e.style.opacity=e.FadeState==1?"1":"0";e.style.filter="alpha(opacity = "+(e.FadeState==1?"100":"0")+")";e.FadeState=e.FadeState==1?2:-2;tick();return}e.FadeTimeLeft-=d;var f=e.FadeTimeLeft/TimeToFade;if(e.FadeState==1){f=1-f}e.style.opacity=f;e.style.filter="alpha(opacity = "+f*100+")";setTimeout("animateFadeIn("+c+",'"+b+"')",33)}function fadeIn(a){var b=document.getElementById(a);if(b==null){return}if(b.FadeState==null){if(b.style.opacity==null||b.style.opacity==""||b.style.opacity=="1"){b.FadeState=2}else{b.FadeState=-2}}if(b.FadeState==1||b.FadeState==-1){b.FadeState=b.FadeState==1?-1:1;b.FadeTimeLeft=TimeToFade-b.FadeTimeLeft}else{b.FadeState=b.FadeState==2?-1:1;b.FadeTimeLeft=TimeToFade;setTimeout("animateFadeIn("+(new Date).getTime()+",'"+a+"')",33)}}function changeImage(a,b){var c=document.getElementById(a);c.style.backgroundImage="url("+b+")";fadeIn(a)}function animateFadeOut(a,b,c){var d=(new Date).getTime();var e=d-a;var f=document.getElementById(b);if(f.FadeTimeLeft<=e){f.style.opacity=f.FadeState==1?"1":"0";f.style.filter="alpha(opacity = "+(f.FadeState==1?"100":"0")+")";f.FadeState=f.FadeState==1?2:-2;changeImage(b,c);return}f.FadeTimeLeft-=e;var g=f.FadeTimeLeft/TimeToFade;if(f.FadeState==1){g=1-g}f.style.opacity=g;f.style.filter="alpha(opacity = "+g*100+")";setTimeout("animateFadeOut("+d+",'"+b+"', '"+c+"')",33)}function fadeOut(a,b){var c=document.getElementById(a);if(c==null){return}if(c.FadeState==null){if(c.style.opacity==null||c.style.opacity==""||c.style.opacity=="1"){c.FadeState=2}else{c.FadeState=-2}}if(c.FadeState==1||c.FadeState==-1){c.FadeState=c.FadeState==1?-1:1;c.FadeTimeLeft=TimeToFade-c.FadeTimeLeft}else{c.FadeState=c.FadeState==2?-1:1;c.FadeTimeLeft=TimeToFade;setTimeout("animateFadeOut("+(new Date).getTime()+",'"+a+"', '"+b+"')",33)}}function changeText(a,b){var c=document.getElementById(a);document.getElementById("tabOne").setAttribute("class","ContentTab");document.getElementById("tabTwo").setAttribute("class","ContentTab");document.getElementById("tabThree").setAttribute("class","ContentTab");c.setAttribute("class","ContentTabActive");document.getElementById("TabOneSpan").style.display="none";document.getElementById("TabTwoSpan").style.display="none";document.getElementById("TabThreeSpan").style.display="none";var d=document.getElementById(b);d.style.display="block"}var TimeToFade=1e3;var newsTimer=null

var elementList = new Array();
elementList[0] = "RightNavOne";
elementList[1] = "RightNavTwo";
elementList[2] = "RightNavThree";
elementList[3] = "RightNavFour";

var isClicked = false;

var linkList = new Array();
linkList[0] = "<a href='http://www.nomissolutions.com/about_us/events/'><div id='LeftPictureNavigationHolder'></div></a>";
linkList[1] = "<a href='./how_it_works/'><div id='LeftPictureNavigationHolder'></div></a>";
linkList[2] = "<a href='./resources/price_sensitivity_index/'><div id='LeftPictureNavigationHolder'></div></a>";
linkList[3] = "<a href='./solutions/products/nomis_score.php'><div id='LeftPictureNavigationHolder'></div></a>";

var imageList = new Array();
var currentImage = 0;
imageList[0] = "/images/base/home-promo-forum.jpg";
imageList[1] = "/images/base/home-promo-10x-ROI.jpg";
imageList[2] = "/images/base/home-promo-spend5.jpg";
imageList[3] = "/images/base/home-promo-score.jpg";

var isNewsClicked = false;

var newsList = new Array();
var currentNews = 0;

newsList[0] = "<a href='http://www.nomissolutions.com/library/Nomis_Solutions_2011_Year_End.pdf'>Nomis Solutions doubles number of customers in 2011</a>";
newsList[1] = "<a href='/about_us/press_releases/20110715NomisSolutionsNomisScoreforPriceSensitivityEstimation.php'>Nomis Solutions releases Nomis Score for Price Sensitivity Estimation</a>";
newsList[2] = "<a href='http://www.nomissolutions.com/library/Forum_2012_Press_Release.pdf'>Nomis Solutions announces details of 2012 Global Pricing Forum</a>";
newsList[3] = "<a href='http://www.nomissolutions.com/library/Nomis_Solutions_2011_Year_End.pdf'>Nomis Solutions doubles number of customers in 2011</a>";


var fID = "PictureHolder";
var bID = "PictureHolder2";


/**********************************************************************
TERMS OF USE - EASING EQUATIONS
Open source under the BSD License.
Copyright (c) 2001 Robert Penner
JavaScript version copyright (C) 2006 by Philippe Maegerman
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.

*****************************************/

function OpacityTween(a,b,c,d,e){this.targetObject=a;this.init(new Object,"x",b,c,d,e)}function Delegate(){}Delegate.create=function(a,b){var c=new Array;var d=arguments.length;for(var e=2;e<d;e++)c[e-2]=arguments[e];return function(){var d=[].concat(arguments,c);b.apply(a,d)}};Tween=function(a,b,c,d,e,f,g){this.init(a,b,c,d,e,f,g)};var t=Tween.prototype;t.obj=new Object;t.prop="";t.func=function(a,b,c,d){return c*a/d+b};t.begin=0;t.change=0;t.prevTime=0;t.prevPos=0;t.looping=false;t._duration=0;t._time=0;t._pos=0;t._position=0;t._startTime=0;t._finish=0;t.name="";t.suffixe="";t._listeners=new Array;t.setTime=function(a){this.prevTime=this._time;if(a>this.getDuration()){if(this.looping){this.rewind(a-this._duration);this.update();this.broadcastMessage("onMotionLooped",{target:this,type:"onMotionLooped"})}else{this._time=this._duration;this.update();this.stop();this.broadcastMessage("onMotionFinished",{target:this,type:"onMotionFinished"})}}else if(a<0){this.rewind();this.update()}else{this._time=a;this.update()}};t.getTime=function(){return this._time};t.setDuration=function(a){this._duration=a==null||a<=0?1e5:a};t.getDuration=function(){return this._duration};t.setPosition=function(a){this.prevPos=this._pos;var b=this.suffixe!=""?this.suffixe:"";this.obj[this.prop]=Math.round(a)+b;this._pos=a;this.broadcastMessage("onMotionChanged",{target:this,type:"onMotionChanged"})};t.getPosition=function(a){if(a==undefined)a=this._time;return this.func(a,this.begin,this.change,this._duration)};t.setFinish=function(a){this.change=a-this.begin};t.getFinish=function(){return this.begin+this.change};t.init=function(a,b,c,d,e,f,g){if(!arguments.length)return;this._listeners=new Array;this.addListener(this);if(g)this.suffixe=g;this.obj=a;this.prop=b;this.begin=d;this._pos=d;this.setDuration(f);if(c!=null&&c!=""){this.func=c}this.setFinish(e)};t.start=function(){this.rewind();this.startEnterFrame();this.broadcastMessage("onMotionStarted",{target:this,type:"onMotionStarted"})};t.rewind=function(a){this.stop();this._time=a==undefined?0:a;this.fixTime();this.update()};t.fforward=function(){this._time=this._duration;this.fixTime();this.update()};t.update=function(){this.setPosition(this.getPosition(this._time))};t.startEnterFrame=function(){this.stopEnterFrame();this.isPlaying=true;this.onEnterFrame()};t.onEnterFrame=function(){if(this.isPlaying){this.nextFrame();setTimeout(Delegate.create(this,this.onEnterFrame),0)}};t.nextFrame=function(){this.setTime((this.getTimer()-this._startTime)/1e3)};t.stop=function(){this.stopEnterFrame();this.broadcastMessage("onMotionStopped",{target:this,type:"onMotionStopped"})};t.stopEnterFrame=function(){this.isPlaying=false};t.continueTo=function(a,b){this.begin=this._pos;this.setFinish(a);if(this._duration!=undefined)this.setDuration(b);this.start()};t.resume=function(){this.fixTime();this.startEnterFrame();this.broadcastMessage("onMotionResumed",{target:this,type:"onMotionResumed"})};t.yoyo=function(){this.continueTo(this.begin,this._time)};t.addListener=function(a){this.removeListener(a);return this._listeners.push(a)};t.removeListener=function(a){var b=this._listeners;var c=b.length;while(c--){if(b[c]==a){b.splice(c,1);return true}}return false};t.broadcastMessage=function(){var a=new Array;for(var b=0;b<arguments.length;b++){a.push(arguments[b])}var c=a.shift();var d=this._listeners;var e=d.length;for(var b=0;b<e;b++){if(d[b][c])d[b][c].apply(d[b],a)}};t.fixTime=function(){this._startTime=this.getTimer()-this._time*1e3};t.getTimer=function(){return(new Date).getTime()-this._time};Tween.backEaseIn=function(a,b,c,d,e,f){if(g==undefined)var g=1.70158;return c*(a/=d)*a*((g+1)*a-g)+b};Tween.backEaseOut=function(a,b,c,d,e,f){if(g==undefined)var g=1.70158;return c*((a=a/d-1)*a*((g+1)*a+g)+1)+b};Tween.backEaseInOut=function(a,b,c,d,e,f){if(g==undefined)var g=1.70158;if((a/=d/2)<1)return c/2*a*a*(((g*=1.525)+1)*a-g)+b;return c/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b};Tween.elasticEaseIn=function(a,b,c,d,e,f){if(a==0)return b;if((a/=d)==1)return b+c;if(!f)f=d*.3;if(!e||e<Math.abs(c)){e=c;var g=f/4}else var g=f/(2*Math.PI)*Math.asin(c/e);return-(e*Math.pow(2,10*(a-=1))*Math.sin((a*d-g)*2*Math.PI/f))+b};Tween.elasticEaseOut=function(a,b,c,d,e,f){if(a==0)return b;if((a/=d)==1)return b+c;if(!f)f=d*.3;if(!e||e<Math.abs(c)){e=c;var g=f/4}else var g=f/(2*Math.PI)*Math.asin(c/e);return e*Math.pow(2,-10*a)*Math.sin((a*d-g)*2*Math.PI/f)+c+b};Tween.elasticEaseInOut=function(a,b,c,d,e,f){if(a==0)return b;if((a/=d/2)==2)return b+c;if(!f)var f=d*.3*1.5;if(!e||e<Math.abs(c)){var e=c;var g=f/4}else var g=f/(2*Math.PI)*Math.asin(c/e);if(a<1)return-.5*e*Math.pow(2,10*(a-=1))*Math.sin((a*d-g)*2*Math.PI/f)+b;return e*Math.pow(2,-10*(a-=1))*Math.sin((a*d-g)*2*Math.PI/f)*.5+c+b};Tween.bounceEaseOut=function(a,b,c,d){if((a/=d)<1/2.75){return c*7.5625*a*a+b}else if(a<2/2.75){return c*(7.5625*(a-=1.5/2.75)*a+.75)+b}else if(a<2.5/2.75){return c*(7.5625*(a-=2.25/2.75)*a+.9375)+b}else{return c*(7.5625*(a-=2.625/2.75)*a+.984375)+b}};Tween.bounceEaseIn=function(a,b,c,d){return c-Tween.bounceEaseOut(d-a,0,c,d)+b};Tween.bounceEaseInOut=function(a,b,c,d){if(a<d/2)return Tween.bounceEaseIn(a*2,0,c,d)*.5+b;else return Tween.bounceEaseOut(a*2-d,0,c,d)*.5+c*.5+b};Tween.strongEaseInOut=function(a,b,c,d){return c*(a/=d)*a*a*a*a+b};Tween.regularEaseIn=function(a,b,c,d){return c*(a/=d)*a+b};Tween.regularEaseOut=function(a,b,c,d){return-c*(a/=d)*(a-2)+b};Tween.regularEaseInOut=function(a,b,c,d){if((a/=d/2)<1)return c/2*a*a+b;return-c/2*(--a*(a-2)-1)+b};Tween.strongEaseIn=function(a,b,c,d){return c*(a/=d)*a*a*a*a+b};Tween.strongEaseOut=function(a,b,c,d){return c*((a=a/d-1)*a*a*a*a+1)+b};Tween.strongEaseInOut=function(a,b,c,d){if((a/=d/2)<1)return c/2*a*a*a*a*a+b;return c/2*((a-=2)*a*a*a*a+2)+b};OpacityTween.prototype=new Tween;OpacityTween.prototype.constructor=Tween;OpacityTween.superclass=Tween.prototype;var o=OpacityTween.prototype;o.targetObject={};o.onMotionChanged=function(a){var b=a.target._pos;var c=this.targetObject;c.style["opacity"]=b/100;c.style["-moz-opacity"]=b/100;if(c.filters)c.filters.alpha["opacity"]=b}
