<textarea id="embedcode">
<!-- Put both of these <script> tags in your <head>. Though it will still work in the <body> you may get flickering of alt content. -->
<!-- This first <script> only needs to be on the page once even if you have multiple widgets. -->
<script type="text/javascript" src="http://qa.a-widget.com/kickFlash/scripts/swfobject2.js?2"></script>
<script type="text/javascript">
(function(){
var flashvars = {affiliateSiteId:"194571", widgetId:"509731", width:"768", height:"1000", revision:"65"},
params = {menu:"false", allowfullscreen:"true", allowscriptaccess:"always", wmode:"transparent"},
attributes = {id:"kickWidget_194571_509731", name:"kickWidget_194571_509731"},
expressInstallURL = "http://cdftest.kicktest.com/kickFlash/scripts/expressInstall2.swf?2",
swfURL = "http://cdftest.kicktest.com/service/getWidgetSwf.kickAction",
callback = function(e){ if (e.success==false){ document.getElementById("altContentDiv_509731").innerHTML = '<iframe src="http://qa.a-widget.com/kickFlash/js/compiler/v2/iframe.html?amp%3BwidgetId=509731&affiliateSiteId=194571&%3BwidgetHost=qa%2Ea%2Dwidget%2Ecom&%3Brevision=65&%3BreferralUrl=%27%20escape%28window%2Elocation%2Ehref%29%20%27" height="1000" width="768" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:768px;height:1000px"></iframe>' } }
swfobject.embedSWF(swfURL, "altContentDiv_509731", "768", "1000", "10", expressInstallURL, flashvars, params, attributes, callback);
})();
</script>
<!-- Put this <div> anywhere in the <body> of your page where you want the widget to show up. -->
<div id="altContentDiv_509731"></div>
</textarea>
<button id="getData">get data</button>
<hr />
<label>Source</label><input type="text" id="src" /> <br />
<label>height</label><input type="text" id="height" /> <br />
<label>width</label><input type="text" id="width" /> <br />
<hr />
<textarea id="json"></textarea>