ZiXON.namespace("ZiXON.Widgets");
new function(){var e=document.createElement("link");e.setAttribute("href","http://www.climateday.eu/zixon/widgets/button.css");e.setAttribute("rel","stylesheet");e.setAttribute("type","text/css");document.getElementsByTagName("head")[0].appendChild(e);};
(function(){ZiXON.Widgets.Button = function(o){if (o!=null){var d=document;o.color=o.color||"gray";o.url=o.url||"";o.height=o.height||"26";o.title=o.title||0;if(o.gradient==1){if(o.height=="20")d.write('<span class="gradient20"');else d.write('<span class="gradient"');if(o.id){window[o.id]=this;d.write(' id="'+o.id+'"');}if(o.textalign)d.write(' style="text-align:'+o.textalign+'"');if(o.title)d.write('><acronym title="'+o.title+'"');d.write('><span class="'+o.color+'"><span>');if(o.image){if(o.text) d.write('<img src="'+o.image+'" border="0">');else d.write('<img src="'+o.image+'" border="0" style="margin-right: 0;">');}if(o.text) d.write(o.text);d.write('</span></span>');if(o.title)d.write('</acronym>');d.write('</span>');}else if(o.active==1){if(o.height=="20")d.write('<span class="buttonactive20"');else d.write('<span class="buttonactive"');if(o.id){window[o.id]=this;d.write(' id="'+o.id+'"');}if(o.textalign)d.write(' style="text-align:'+o.textalign+'"');if(o.title)d.write('><acronym title="'+o.title+'"');d.write('><span class="'+o.color+'"><span>');if(o.image){if(o.text) d.write('<img src="'+o.image+'" border="0">');else d.write('<img src="'+o.image+'" border="0" style="margin-right: 0;">');}if(o.text) d.write(o.text);d.write('</span></span>');if(o.title)d.write('</acronym>');d.write('</span>');}else{if(o.height=="20") d.write('<span class="button20"');else d.write('<span class="button"');if(o.id){window[o.id]=this;d.write(' id="'+o.id+'"');}if(o.textalign) d.write(' style="text-align:'+o.textalign+'"');d.write('><a class="'+o.color+'" href="'+o.url+'"');if(o.target) d.write(' target="'+o.target+'"');if(o.title) d.write(' title="'+o.title+'"');if(o.onclick) d.write(' onclick="'+o.onclick+';return false;"');if(o.width) d.write(' style="width:'+o.width+'"');d.write('><span>');if(o.image){if(o.text) d.write('<img src="'+o.image+'" border="0">');else d.write('<img src="'+o.image+'" border="0" style="margin-right: 0;">');}if(o.text) d.write(o.text);d.write('</span></a></span>');}}}})();
