function openVideo( url) { window.open( url, 'video', 'status=no,Width=540,Height=490,scrollbars=no,resizeable=no,toolbar=no,menubar=no,location=no'); } function player_DoFSCommand(command, args) { if ( command=="openVideo" ) { openVideo( args); return; } } function Scroll( id, step, time, right) { var l = parseInt( document.getElementById( id ).style.width ); var left = document.getElementById( id ).style.left; left = left.replace( /px/gi, "" ); document.getElementById( id ).style.left = left - step; if ( left < l * (-1) ) { document.getElementById( id ).style.left = right; } setTimeout( 'Scroll( \''+id+'\', '+step+', '+time+', '+right+')', time); }