var gBeginElementID = ''; 
 
 	function logMsg(msg) 
 	{ 
 var log = document.getElementById('event_log'); 
 if ( log ) 
 log.innerHTML += '['+new Date().toString()+'] ' + msg + '<br>'; 
 } 
 
 function clearlog() 
 { 
 var log = document.getElementById('event_log'); 
 if ( log ) 
 log.innerHTML = ''; 
 } 
 
 function myAddListener(obj, evt, handler, captures) 
 { 
 if ( document.addEventListener ) 
 obj.addEventListener(evt, handler, captures); 
 else 
 obj.attachEvent('on'+evt, handler); // IE requires this form 
 } 
 
 function getTargetId(event) 
 { 
 // an event has the target element as a property. the property has a 
 // different name in IE so handle that here 
 var target = event.target ? event.target : event.srcElement; 
 return target.id; 
 } 
 
 function pluginBegin(evt) 
 { 
 
 } 
 
 function onEvent(evt) 
 { 
 
 
 } 
 function finishedMovieFile() {
/*document.location.hreg = 'http://www.plum28.com/index.php'; returnValue=false;*/
	window.location = 'http://www.plum28.com/index.php'; returnValue=false;
}
 function setup() 
 { 
 // register for events on the <object> element, our handler will be triggered even if 
 // the browser uses the <embed> because events pass through the parent element 
 var plug = document.getElementById('qtmovie_object'); 
 
 if ( null == plug ) 
 { 
 alert("QT plug-in not instantiated on <body> load event???"); 
 return; 
 } 
/* myAddListener(plug,'qt_begin', pluginBegin, false); 
 myAddListener(plug,'qt_abort', onEvent, false); 
 myAddListener(plug,'qt_canplay', onEvent, false); 
 myAddListener(plug,'qt_canplaythrough', onEvent, false); 
 myAddListener(plug,'qt_durationchange', onEvent, false); */
 myAddListener(plug,'qt_ended', finishedMovieFile, false); 
/* myAddListener(plug,'qt_error', onEvent, false); 
 myAddListener(plug,'qt_load', onEvent, false); 
 myAddListener(plug,'qt_loadedfirstframe',onEvent, false); 
 myAddListener(plug,'qt_loadedmetadata', onEvent, false); 
 myAddListener(plug,'qt_pause', onEvent, false); 
 myAddListener(plug,'qt_play', onEvent, false); 
 myAddListener(plug,'qt_progress', onEvent, false); 
 myAddListener(plug,'qt_stalled', onEvent, false); 
 myAddListener(plug,'qt_timechanged', onEvent, false); 
 myAddListener(plug,'qt_volumechange', onEvent, false); 
 myAddListener(plug,'qt_waiting', onEvent, false); */
 } 

