function player(id,url,width,height,type) { if (!IsElement('p_' + id)) { var player = document.createElement('div'); player.id = 'p_' + id; player.style.cssText = 'display:block;margin:5px 0 0 2px'; player.innerHTML = eval('player_' + type)(url.replace('"',''),width,height); getObj(id).appendChild(player); } else { var p = getObj(id); p.removeChild(p.lastChild); } } function player_rm(url,width,height){ if (is_ie) { return "
"; } else if (agt.indexOf('firefox')!=-1) { return "
"; } else if (agt.indexOf('safari')!=-1) { return "
"; } else { return "
"; } } function player_flash(url,width,height){ if (is_ie) { return ""; } else { return ""; } } function player_wmv(url,width,height) { if (height<64) height = 64; if (is_ie) { return ""; } else if (agt.indexOf('firefox')!=-1) { return ""; } else if (agt.indexOf('safari')!=-1) { return ""; } else { return ""; } }