/* */ var fadeVal; var quoteNumber=-1; var quotes=[]; var sources=[]; quotes[0]='"I find the meetings that you put together, both for their technical content and the networking opportunities, to be precisely what I am looking for"'; sources[0]='Ben Patel, General Electric'; function startQuotes() { if(quotes.length>0) newQuote(); } function fade() { fadeVal+=16; if(fadeVal<100) { var quote=document.getElementById('quote'); var source=document.getElementById('source'); var val=fadeVal.toString(16); while(val.length<6) val='0'+val; quote.style.color=getColourString(255,255,255,203,1,3,fadeVal); source.style.color=getColourString(255,255,255,0,0,0,fadeVal); setTimeout('fade()',100); } else { newQuote(); } } function newQuote() { var quote=document.getElementById('quote'); var source=document.getElementById('source'); quoteNumber=(quoteNumber+1)%(quotes.length); quote.style.color='#CB0103'; source.style.color='#000000'; quote.innerHTML=quotes[quoteNumber]; source.innerHTML=sources[quoteNumber]; fadeVal=0; setTimeout('fade()',5000); } function getColourString(r1,g1,b1,r2,g2,b2,v1) { var v2=100-v1; var r=Math.floor((r1*v1+r2*v2)/100); var g=Math.floor((g1*v1+g2*v2)/100); var b=Math.floor((b1*v1+b2*v2)/100); var retval; if(r<16) retval='#0'+r.toString(16); else retval='#'+r.toString(16); if(g<16) retval=retval+'0'+g.toString(16); else retval=retval+g.toString(16); if(b<16) retval=retval+'0'+b.toString(16); else retval=retval+b.toString(16); return retval; } function breakFree() { if (top.location) top.location.replace(self.location.href); else top.document.location.replace(self.document.location.href); } function stayInFrame() { var url=document.location.href; return url.substring(url.length-17)=='&stayinframe=true'; } if(top!=self && !stayInFrame()) breakFree();