var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
/*server side analogue is function display_embed in WDWLibraryEmbed*/
/*params
embed_type: string , one of predefined accepted types
embed_id: string, id of media in corresponding host, or url if no unique id system is defined for host
attrs: object with html attributes and values format e.g. {width:'100px', style:"display:inline;"}
*/
function spider_display_embed(embed_type, file_url, embed_id, attrs) {
var html_to_insert = '';
switch(embed_type) {
case 'EMBED_OEMBED_YOUTUBE_VIDEO':
var oembed_youtube_html ='";
html_to_insert += oembed_youtube_html;
break;
case 'EMBED_OEMBED_VIMEO_VIDEO':
var oembed_vimeo_html ='";
html_to_insert += oembed_vimeo_html;
break;
case 'EMBED_OEMBED_FLICKR_IMAGE':
var oembed_flickr_html ='
";
html_to_insert += oembed_flickr_html;
break;
case 'EMBED_OEMBED_FLICKR_VIDEO':
/* code...*/
break;
case 'EMBED_OEMBED_INSTAGRAM_VIDEO':
var oembed_instagram_html ='
";
html_to_insert += oembed_facebook_video_html;
break;
case 'EMBED_OEMBED_DAILYMOTION_VIDEO':
var oembed_dailymotion_html ='";
html_to_insert += oembed_dailymotion_html;
break;
case 'EMBED_OEMBED_IMGUR':
/*not working yet*/
var oembed_imgur_html ='