Main Page |
Productions |
Educational work |
Photo Gallery |
Video Gallery |
Contact |
Ελληνικές σελίδες |
\n'); } var currentState = null; var currentPosition; var currentItem; var startTime; var stopTime; // these functions are caught by the JavascriptView object of the player. function sendEvent(thePlayer, typ, prm) { thisMovie(thePlayer).sendEvent(typ,prm); }; function getUpdate(typ,pr1,pr2,pid) { if(pid != "null") { if(typ == "time") { currentPosition = pr1; } else if(typ == "state") { currentState = pr1; } else if(typ == "item") { currentItem = pr1; } if( currentState == 2 || currentState == 3 ) { if( stopTime != undefined && stopTime > 0 ) { if (currentPosition >= stopTime) { setTimeout(sendEvent('myContent', 'stop'),500); } } } } } function getItemData(pid, idx) { var nodes = ""; if(pid != "null") { var obj = thisMovie(pid).itemData(idx); for(var i in obj) { nodes += "