var im_videos = ''; var IM_SERVER_NAME = "//player.oculu.com/im4/"; var protocol = document.location.protocol; var OCULU_ASSET_LOCATION = IM_SERVER_NAME; // im_loadjscssfile(OCULU_ASSET_LOCATION+'im_lightbox.css','css'); im_loadjscssfile(OCULU_ASSET_LOCATION+'video_player-html5.css','css'); im_loadjscssfile(OCULU_ASSET_LOCATION+'plugins/panellum/css/pannellum.css','css'); im_loadjscssfile(OCULU_ASSET_LOCATION+'plugins/panellum/js/pannellum.js','js'); im_loadjscssfile(OCULU_ASSET_LOCATION+'plugins/panellum/js/libpannellum.js','js'); im_loadjscssfile('//imasdk.googleapis.com/js/sdkloader/ima3.js','js'); document.write( "" ); document.write( "" ); document.write( "" ); document.write( "" ); document.write( "" ); im_loadjscssfile(OCULU_ASSET_LOCATION+'video_player-html5.LR.js?1511441434','js'); function im_loadjscssfile(filename, filetype){ if (filetype=="js"){ //if filename is a external JavaScript file var fileref=document.createElement('script') fileref.setAttribute("type","text/javascript") fileref.setAttribute("src", filename) } else if (filetype=="css"){ //if filename is an external CSS file var fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet") fileref.setAttribute("type", "text/css") fileref.setAttribute("href", filename) } if (typeof fileref!="undefined") document.getElementsByTagName("head")[0].appendChild(fileref) }