if (typeof par !== 'undefined') { // par.addEventListener('load', function() { player_init("1"); }); } if (typeof player_init !== 'undefined') { // player_init("1"); }