/*
*/
var fadeVal;
var quoteNumber=-1;
var quotes=[];
var sources=[];
quotes[0]='"These are extremely informative, and the ability to have so many end users discuss their experiences as well as their needs, is of great help to the industry."';
sources[0]='Ink World';
quotes[1]='"Well organized"';
sources[1]='Brother';
quotes[2]='"Very informative and excellent opportunity for networking."';
sources[2]='Toyo Ink Europe';
quotes[3]='"Great event! Great place to meet face to face the reality of RFID."';
sources[3]='Wolfberry y Cia SA de CV';
quotes[4]='"Everything was great."';
sources[4]='Wolfberry y Cia SA de CV';
quotes[5]='"Wonderful!"';
sources[5]='Thoronics Ltd';
quotes[6]='"Interaction and lessons learned is key to success."';
sources[6]='Caterpillar Inc';
quotes[7]='"Knowledgeable and interesting."';
sources[7]='Calorique Ltd';
quotes[8]='"Excellent coordination, great speakers."';
sources[8]='Celestica';
quotes[9]='"This is the most comprehensive and current RFID information exchange."';
sources[9]='FCI Microconnections';
quotes[10]='"Very good and overall educational."';
sources[10]='Quad Graphics';
quotes[11]='"Good cross section of the business and barometer on how it is evolving."';
sources[11]='Packaging One';
quotes[12]='"Outstanding networking opportunity. Great intra-industry collaboration opportunity."';
sources[12]='PPG Industries';
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();