if (typeof(bostoncom_most_popular_GetWidgetBtn) == "undefined") { bostoncom_most_popular_GetWidgetBtn = {}; bostoncom_most_popular_GetWidgetBtn.open = function() { var config = new WIDGETBOX.subscriber.WidgetMenuConfig(); config.regId = '86bcc870-9079-4c31-b21d-b73f985ab262'; config.sourceId = 'e417f7e2-584b-48e5-a276-8868562b582c'; 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 = bostoncom_most_popular_GetWidgetBtn.readConfig(); WIDGETBOX.subscriber.Main.renderGetWidget(config); } bostoncom_most_popular_GetWidgetBtn.render = function() { bostoncom_most_popular_GetWidgetBtn.load(); if(!false){ document.write("\"Get"); } } bostoncom_most_popular_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?31061"; head.appendChild(script); } bostoncom_most_popular_GetWidgetBtn.readConfig = function() { var cfgData = ""; var cfgForm = document.getElementById('bostoncom_most_popular_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; } }; bostoncom_most_popular_GetWidgetBtn.render();