
/* smartweb - jw fvl player functions */

function createplayer() {
  var so = new SWFObject('/player/mediaplayer.swf','myplayer','300','20','8');
  so.addParam('allowscriptaccess','always');
  so.addParam('allowfullscreen','false');
  so.addVariable('width','300');
  so.addVariable('height','20');
  so.addVariable('autostart','false');
  so.addVariable('volume','80');
  so.addVariable('javascriptid','myplayer');
  so.addVariable('enablejs','true');
  so.write('container');
}  

function sendEvent(swf,typ,prm) { 
  thisMovie(swf).sendEvent(typ,prm); 
};
function getUpdate(typ,pr1,pr2,swf) {};
function thisMovie(swf) {
  if(navigator.appName.indexOf("Microsoft") != -1) {
    return window[swf];
  } else {
    return document[swf];
  }
};
function getLength(swf) { 
  var len = thisMovie(swf).getLength();
};
function addItem(swf,obj,idx) { 
  thisMovie(swf).addItem(obj,idx); 
};
function removeItem(swf,idx) { 
  thisMovie(swf).removeItem(idx); 
};
function itemData(swf,idx) { 
  var obj = thisMovie(swf).itemData(idx); 
};
function loadFile(swf,obj) { 
  thisMovie(swf).loadFile(obj); 
};

function openplayer(url){
var playerwindow = window.open(url,'musicheadplayer','status=1,location=0,scrollbars=0,resizable=0,width=410,height=200,menubar=0');
playerwindow.focus();
return false;
};

