if (typeof(christmas_postcards_GetWidgetBtn) == "undefined") { christmas_postcards_GetWidgetBtn = {}; christmas_postcards_GetWidgetBtn.open = function() { var config = new WIDGETBOX.subscriber.WidgetMenuConfig(); config.regId = '7c42d3e1-2960-43f9-b6fa-8c36e39cfd10'; config.sourceId = '53a94d5c-e00b-4b3e-a878-015489c103a8'; 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 = christmas_postcards_GetWidgetBtn.readConfig(); WIDGETBOX.subscriber.Main.renderGetWidget(config); } christmas_postcards_GetWidgetBtn.render = function() { christmas_postcards_GetWidgetBtn.load(); if(!false){ document.write("\"Get"); } } christmas_postcards_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?33133"; head.appendChild(script); } christmas_postcards_GetWidgetBtn.readConfig = function() { var cfgData = ""; var cfgForm = document.getElementById('christmas_postcards_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; } }; christmas_postcards_GetWidgetBtn.render();