javascript:(function(){setTimeout(initFlashControls,100);function initFlashControls(){var count=0;function tt(elem){if(typeof elem.TotalFrames!=%22undefined%22){addFlashControls(elem);++count;}}var i,x;for(i=0;x=document.getElementsByTagName(%22object%22)[i];++i)tt(x);for(i=0;x=document.getElementsByTagName(%22embed%22)[i];++i)tt(x);if(!count)alert(%22No scriptable flash on this page.%22);} function addFlashControls(flash) { seekbar=document.createElement(%22div%22); seekbar.style.width=Math.max(parseInt(flash.width)||0,450) + %22px%22; seekbar.style.margin = %220 auto%22; var where=flash; while(where.parentNode.tagName.toLowerCase()==%22object%22) where=where.parentNode; where.parentNode.insertBefore(seekbar,where.nextSibling); var table=document.createElement(%22table%22); table.style.width=%22100%%22; seekbar.appendChild(table); var row=table.insertRow(-1); var pauseButton=document.createElement(%22button%22); pauseButton.appendChild(document.createTextNode(%22Pause%22)); var buttonCell=row.insertCell(-1); buttonCell.appendChild(pauseButton); var rewindCell=row.insertCell(-1); var rewindButton=document.createElement(%22button%22); rewindButton.appendChild(document.createTextNode(%22<<%22)); rewindCell.appendChild(rewindButton); var prevCell=row.insertCell(-1); var prevButton=document.createElement(%22button%22); prevButton.appendChild(document.createTextNode(%22|<%22)); prevCell.appendChild(prevButton); var slider=row.insertCell(-1); slider.width=%22100%%22; var visibleSlider=document.createElement(%22div%22); visibleSlider.style.position=%22relative%22; visibleSlider.style.height=%2210px%22; visibleSlider.style.width=%22100%%22; visibleSlider.style.MozBorderRadius=%224px%22; visibleSlider.style.background=%22#333%22; slider.appendChild(visibleSlider); var loadmeter=document.createElement(%22div%22); loadmeter.style.position=%22absolute%22; loadmeter.style.top=loadmeter.style.left = %220%22; loadmeter.style.height=%2210px%22; loadmeter.style.width=%220px%22; loadmeter.style.MozBorderRadius=%224px%22; loadmeter.style.background=%22#aaa%22; visibleSlider.appendChild(loadmeter); var thumb=document.createElement(%22div%22); thumb.style.position=%22absolute%22; thumb.style.height=%2220px%22; thumb.style.width=%2210px%22; thumb.style.top=%22-5px%22; thumb.style.MozBorderRadius=%224px%22; thumb.style.background=%22#666%22; visibleSlider.appendChild(thumb); var nextCell=row.insertCell(-1); var nextButton=document.createElement(%22button%22); nextButton.appendChild(document.createTextNode(%22>|%22)); nextCell.appendChild(nextButton); var ffCell=row.insertCell(-1); var ffButton=document.createElement(%22button%22); ffButton.appendChild(document.createTextNode(%22>>%22)); ffCell.appendChild(ffButton); var frameCell=row.insertCell(-1); var framecounter=document.createElement(%22div%22); framecounter.style.background=%22#ccc%22; framecounter.style.color=%22#000%22; framecounter.style.fontWeight=%22bold%22; framecounter.style.padding = %220 5px%22; frameCell.appendChild(framecounter); framecountertext=document.createTextNode(%22%22); framecounter.appendChild(framecountertext); var zoomOutCell=row.insertCell(-1); var zoomOutButton=document.createElement(%22button%22); zoomOutButton.appendChild(document.createTextNode(%22\u2212%22)); zoomOutCell.appendChild(zoomOutButton); var zoomNormalCell=row.insertCell(-1); var zoomNormalButton=document.createElement(%22button%22); zoomNormalButton.appendChild(document.createTextNode(%220%22)); zoomNormalCell.appendChild(zoomNormalButton); var zoomInCell=row.insertCell(-1); var zoomInButton=document.createElement(%22button%22); zoomInButton.appendChild(document.createTextNode(%22+%22)); zoomInCell.appendChild(zoomInButton); var sliderWidth; var paused=false; var dragging=false; var lastframe=-1; addEvent(pauseButton,%22click%22,pauseUnpause); addEvent(rewindButton,%22click%22,rewind); addEvent(prevButton,%22click%22,prevFrame); addEvent(nextButton,%22click%22,nextFrame); addEvent(ffButton,%22click%22,fastforward); addEvent(zoomOutButton,%22click%22,zoomOut); addEvent(zoomNormalButton,%22click%22,zoomNormal); addEvent(zoomInButton,%22click%22,zoomIn); addEvent(slider,%22mousedown%22,drag); addEvent(slider,%22drag%22,function(){return false;}); window.setInterval(update,50); function pauseUnpause(){paused=flash.IsPlaying();pauseButton.style.borderStyle=paused?%22inset%22:%22%22;if(paused)flash.StopPlay();else flash.Play();} function rewind(){flash.GotoFrame(0); flash.Play();} function fastforward(){flash.GotoFrame(totalFrames() - 1);} function prevFrame(){flash.GotoFrame(flash.CurrentFrame()-1);} function nextFrame(){flash.GotoFrame(flash.CurrentFrame()+1);} function zoomIn(){flash.Zoom(67);} function zoomOut(){flash.Zoom(150);} function zoomNormal(){flash.Zoom(0);} function update() { fullSliderWidth=parseInt(getWidth(slider)); sliderWidth=parseInt(fullSliderWidth-getWidth(thumb)); tot=totalFrames(); if (tot > 0) { frame=flash.CurrentFrame(); if (frame < 0) frame = 0; if (framecountertext) { a = tot.toString(); b = (frame+1).toString(); while (b.length < a.length) b = %22\u2007%22 + b; framecountertext.nodeValue=b+%22/%22+a; } if(!dragging) { if (tot > 1) thumb.style.left=(frame/(tot - 1)*sliderWidth)+%22px%22; else thumb.style.left=%220px%22; paused=!flash.IsPlaying(); pauseButton.style.borderStyle=paused?%22inset%22:%22%22; } frame=flash.TGetProperty('/', 12); loadmeter.style.width=(frame/tot*fullSliderWidth)+%22px%22; } else if (framecountertext) { framecountertext.nodeValue=%22Loading...%22; } } function dragMousemove(e) { var pageX=e.clientX+document.body.scrollLeft; var pos=bounds(0,pageX-getX(slider)-5,sliderWidth); t = totalFrames(); if (t > 1) { var frame=bounds(0,Math.round((t - 1)*pos/sliderWidth),t - 1); flash.GotoFrame(frame); } thumb.style.left=pos+%22px%22; } function release(e){removeEvent(document,%22mousemove%22,dragMousemove);removeEvent(document,%22mouseup%22,release);if(!paused)flash.Play();dragging=false;} function drag(e){addEvent(document,%22mousemove%22,dragMousemove);addEvent(document,%22mouseup%22,release);dragging=true;dragMousemove(e);} function bounds(min,val,max){return Math.min(Math.max(min,val),max);} function totalFrames(){if(typeof flash.TotalFrames==%22number%22)return flash.TotalFrames;else if(typeof flash.TotalFrames==%22function%22)return flash.TotalFrames();else return 1;} function getWidth(elem){if(document.defaultView&&document.defaultView.getComputedStyle)return parseFloat(document.defaultView.getComputedStyle(elem,null).getPropertyValue(%22width%22));else return parseFloat(elem.offsetWidth);} function getX(elem){if(!elem) return 0;return(elem.offsetLeft)+getX(elem.offsetParent);} function addEvent(elem,eventName,fun){if(elem.addEventListener)elem.addEventListener(eventName,fun,false);else elem.attachEvent(%22on%22+eventName,fun);} function removeEvent(elem,eventName,fun){if(elem.addEventListener)elem.removeEventListener(eventName,fun,false);else elem.detachEvent(%22on%22+eventName,fun);} } })()