/*
*/
var fadeVal;
var quoteNumber=-1;
var quotes=[];
var sources=[];
quotes[0]='"Very Good"';
sources[0]='Tyndall';
quotes[1]='"Excellent"';
sources[1]='Microdul AG';
quotes[2]='"Excellent"';
sources[2]='EnOcean Alliance';
quotes[3]='"Good venue, excellent conference"';
sources[3]='Emerald Group Publishing Ltd.';
quotes[4]='"Well organised, interesting presentations"';
sources[4]='University of Bristol';
quotes[5]='"Excellent day"';
sources[5]='Surrey University';
quotes[6]='"Interesting event"';
sources[6]='Fraunhofer IKTS';
quotes[7]='"Informative"';
sources[7]='Samsung Electronics';
quotes[8]='"I found it to be useful"';
sources[8]='Omega Completion Technology Ltd.';
quotes[9]='"Very well organised"';
sources[9]='Delta';
quotes[10]='"Some great presentations in real world practical implementation of Energy Harvesting"';
sources[10]='Sensors & Instrumentation KTN';
quotes[11]='"A fantastic opportunity to see the current state of play concerning Energy Harvesting"';
sources[11]='New Concept Gaming';
quotes[12]='"Well organised and good quality of presentations"';
sources[12]='Murata Electronics';
quotes[13]='"Well worth coming"';
sources[13]='University of Sheffield/METRC';
quotes[14]='"Very professional and high-level presentations"';
sources[14]='Schneider Electric';
quotes[15]='"This is a great forum in which to participate"';
sources[15]='Varta Microbattery GmbH';
quotes[16]='"The event was very beneficial for our research"';
sources[16]='LBC';
quotes[17]='"The content was great, I really enjoyed the speakers. The exhibit had some excellent demonstrations and the networking opportunities were abundant!"';
sources[17]='POPedge LLC, USA';
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();