if (typeof(extra_bases_blog_GetWidgetBtn) == "undefined") { extra_bases_blog_GetWidgetBtn = {}; extra_bases_blog_GetWidgetBtn.open = function() { var config = new WIDGETBOX.subscriber.WidgetMenuConfig(); config.regId = '7c0c73c8-ef80-4778-a95e-07e4eb006270'; config.sourceId = '07820f11-b37d-4f43-913f-f4fa4a99681f'; config.context = "wild"; config.location = window.location.href; config.toPn = 'code'; config.galleryUrl = 'http://www.widgetbox.com'; config.syndUrl = 'http://widgetserver.com/syndication'; config.cdnRuntimeUrl = 'http://cdn.widgetserver.com/syndication'; config.configData = extra_bases_blog_GetWidgetBtn.readConfig(); WIDGETBOX.subscriber.Main.renderGetWidget(config); } extra_bases_blog_GetWidgetBtn.render = function() { extra_bases_blog_GetWidgetBtn.load(); if(!false){ document.write("\"Get"); } } extra_bases_blog_GetWidgetBtn.load = function() { var head = document.getElementsByTagName("head")[0]; script = document.createElement("script"); //script.id = "widgetbox_lib_subscriber_" + libInfo.id; script.type = "text/javascript"; script.src = "http://cdn.widgetserver.com/syndication/subscriber/Main.js?31345"; head.appendChild(script); } extra_bases_blog_GetWidgetBtn.readConfig = function() { var cfgData = ""; var cfgForm = document.getElementById('extra_bases_blog_GetWidgetForm'); if (cfgForm && cfgForm.elements) { for (var i = 0; i < cfgForm.elements.length; i++) { if (cfgForm.elements[i] && cfgForm.elements[i].value) { cfgData += cfgForm.elements[i].name + "=" + escape(cfgForm.elements[i].value) + "&"; } } } return cfgData; } }; extra_bases_blog_GetWidgetBtn.render();