if(typeof WZD=="undefined"){var WZD={}}var MYJIT_HOST="widget.wzd.com";WZD.Myjit=function(A){this.myjitid="";this.copyright="type1";this.frame=null;this.configuration={title:"",width:0,height:0,skin:9};this.display={title:true,border:true,skin:true};this.css={title:"",body:""};for(key in A){this[key]=A[key]}};WZD.Myjit.prototype={setConfiguration:function(A){for(key in A){this.configuration[key]=A[key]}},setDisplayOption:function(A){for(key in A){this.display[key]=A[key]}},setCss:function(A){for(key in A){this.css[key]=A[key]}},getIframeUrl:function(){var A="http://"+MYJIT_HOST+"/m"+this.myjitid+"?";for(key in this.configuration){this.configuration[key]&&(A+="&w_"+key+"="+encodeURIComponent(this.configuration[key]))}for(key in this.display){A+="&w_display_"+key+"="+(this.display[key]?1:0)}for(key in this.css){this.css[key]&&(A+="&w_css_"+key+"="+encodeURIComponent(this.css[key]))}return A+"&w_copyright="+encodeURIComponent(this.copyright)},updateLayout:function(){this.frame.setAttribute("width",(this.configuration.width!=0?this.configuration.width:"100%"));this.frame.setAttribute("height",(this.configuration.height!=0?this.configuration.height:"100%"))},render:function(B){var F="myjit_"+this.myjitid+"_"+(Math.ceil(Math.random()*100));var D=null;try{D=document.createElement('<iframe frameborder="0" id="'+F+'" allowtransparency="true" scrolling="no">')}catch(A){D=document.createElement("iframe");D.setAttribute("frameborder",0);D.setAttribute("id",F);D.setAttribute("scrolling","no");D.setAttribute("allowtransparency",true)}if(B){var C=(typeof B=="string")?document.getElementById(B):B;C.appendChild(D);this.frame=D}else{var E=document.createElement("div");E.appendChild(D);document.write(E.innerHTML);this.frame=document.getElementById(F)}},load:function(A){this.render(A);this.updateLayout();this.frame.src=this.getIframeUrl()}};