if (typeof(hs_football_scores_GetWidgetBtn) == "undefined") { hs_football_scores_GetWidgetBtn = {}; hs_football_scores_GetWidgetBtn.open = function() { var config = new WIDGETBOX.subscriber.WidgetMenuConfig(); config.regId = 'bbd747ad-a993-4a24-8ff4-f6dcc58dd5ce'; config.sourceId = '78397653-d6b3-461c-89fd-8839b553f8e1'; 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 = hs_football_scores_GetWidgetBtn.readConfig(); WIDGETBOX.subscriber.Main.renderGetWidget(config); } hs_football_scores_GetWidgetBtn.render = function() { hs_football_scores_GetWidgetBtn.load(); if(!false){ document.write("\"Get"); } } hs_football_scores_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?32865"; head.appendChild(script); } hs_football_scores_GetWidgetBtn.readConfig = function() { var cfgData = ""; var cfgForm = document.getElementById('hs_football_scores_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; } }; hs_football_scores_GetWidgetBtn.render();