// JavaScript Document
var currentState;
var currentItem=0;
function getUpdate(typ,pr1,pr2,pid) {
   if((pid != "null")&&(pr1 != undefined)) {
      if(typ == "item") { currentItem = pr1; }
         if(typ == "state") {
         currentState = pr1;
      if((currentState=="3")&&(currentItem=="72")) { document.location.href="http://alex.ourera.org"; }
      }
   }
};
function createPlayer(theFile) {
   var so = new SWFObject('http://ourera.org/upload/lib/imagerotator.swf','thePlayerId','720','480','8');
   so.addParam('allowfullscreen','true');
   so.addParam('allowscriptaccess','always');
   so.addVariable('file', theFile);
   so.addVariable('repeat','list'); 
   so.addVariable('shuffle','false'); 
   so.addVariable('showicons','false');
   so.addVariable('width','720');
   so.addVariable('height','480');
   so.addVariable('useaudio','true');
   so.addVariable('kenburns','true');
   so.addVariable('shownavigation','false');
   so.addVariable('transition','slowfade');
   so.addVariable('rotatetime','5');
   so.addVariable('lightcolor','0x990066');
   so.addVariable('enablejs','true');
   so.addVariable('javascriptid','thePlayerId');                
   so.write('placeholder');
}

