var LEFT=3; var RIGHT=4; var STOP=6; var iNr=0; var iMax=7; var IEV = 0; var IHTML = false; var imgL = null; var imgR = null; var running = true; var started = false; var idSet = null; var idErr = null; var ua=navigator.userAgent; var MSIEoffset=ua.indexOf("MSIE"); if (MSIEoffset!=-1) IEV=parseFloat(ua.substring(MSIEoffset+5,ua.indexOf(";",MSIEoffset))); if(document.createElement) { imgL = document.createElement('img'); imgL.onload = function (evt) { if(IEV >= 5) document.images[LEFT].filters["blendTrans"].apply(); document.images[LEFT].src = this.src; if(IEV >= 5) document.images[LEFT].filters["blendTrans"].play(); }; imgR = document.createElement('img'); imgR.onload = function (evt) { if(IEV >= 5) document.images[RIGHT].filters["blendTrans"].apply(); document.images[RIGHT].src = this.src; if(IEV >= 5) document.images[RIGHT].filters["blendTrans"].play(); } } function init() { if (IEV>=5) { document.images[LEFT].style.filter = "blendTrans(duration=1.5)"; document.images[RIGHT].style.filter = "blendTrans(duration=1.5)"; } if (document.getElementById) if (typeof document.getElementById('cr').innerHTML == 'string') if (document.getElementById('cr').innerHTML.substring(1,10) == '1998-2007') IHTML = true; idSet=setTimeout('setimgs();',3000); idErr=setTimeout('showMsg();',10000); } function showMsg() { if (!started) alert("If you still can't see images the reason could be:\n\n"+ "1. You don't use Internet Explorer 5+ or compatible\n"+ "2. You don't use Netscape Navigator 6+ or compatible\n"+ "3. Your browser does not support Javascript or it's turned off\n"+ "4. You've disabled essential features in your browser\n"+ "5. Your browser can't display images or they're blocked\n"+ "6. Please, verify all your Settings and try again..."); } function setimgs() { if(!IHTML) return; if(imgL!=null && imgR!=null) { imgL.src = "img/l"+iNr+".gif"; setTimeout('delayRight('+iNr+');',500); iNr += 1; if (iNr>iMax) iNr=0; if (iNr==0) { running = false; if (document.images) { document.images['mail'].src='img/ArrowR.gif'; document.images[STOP].src = "img/run.gif"; document.images[STOP].title = 'Play it again...'; } } else { idSet=setTimeout('setimgs();',20000); } if (!started) started = true; } } function delayRight(nr) { imgR.src = "img/r"+nr+(nr==1?".jpg":".gif"); } function refreshImg() { if (document.images) { document.images['logo'].src='img/FLogoG.gif'; document.images['rtv'].src='img/ArrowR.gif'; document.images['mail'].src='img/ArrowR.gif'; } } function navigate(el,cmd) { if (running) { clearTimeout(idSet); if (cmd == 'stop') { running = false; el.src = "img/run.gif"; el.title = 'Continue'; } else { if (cmd == 'back') { setBack(); } idSet = setTimeout('setimgs();',0); } } else { running = true; document.images[STOP].src = "img/pause.gif"; document.images[STOP].title = 'Pause'; if (cmd == 'back') { setBack(); } idSet = setTimeout('setimgs();',0); } } function setBack() { iNr -= 1; if (iNr<0) iNr=iMax; iNr -= 1; if (iNr<0) iNr=iMax; }
