function getButtonSpecs(){return{size:'l',type:'t',outerWidth:185,corners:8,padding:2,logoHeight:24,logoWidth:30,fontSize:18,lineHeight:22,mouseover:'t',showads:'t',logo:'0095C8',text:'000000',background:'',border:'',fontFamily:'Arial, Helvetica, sans-serif',logox:'0095C8',textx:'000000',backgroundx:'F9F9F9',links:'0000FF',active:'FFFFFF',activebg:'0095C8',inactive:'FFFFFF',inactivebg:'CCCCCC',services:[1,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,122,3,33,34,36,4,43,44,46,47,48,49,5,50,51,]};}var isIE6="",swwwurl="https://onlywire.com",wwwurl="http://onlywire.com";if(typeof _ow=="undefined"){_ow={};_ow.btn=getButtonSpecs();_ow.ie6=(isIE6.length>0);_ow.wwwurl=wwwurl;_ow.adurl="http://onlywire.com/download";_ow.imagesPath=wwwurl;_ow.token=null;_ow.E=function(a){return document.createElement(a)};_ow.T=function(a){return document.createTextNode(a)};_ow.H=function(b){var a=document.createElement("span");a.innerHTML=b;return a.children[0]};_ow.isArray=function(a){return !(!a||(!a.length||a.length==0)||typeof a!=="object"||!a.constructor||a.nodeType||a.item)};if(!document.getElementById("ow_css_tag")){var documentHeadArray=document.getElementsByTagName("head");if(documentHeadArray[0]){var documentHead=documentHeadArray[0];var cssTag=null;var scriptTag=null;if(document.createElementNS&&documentHead.tagName=="head"){cssTag=documentHead.appendChild(document.createElementNS("http://www.w3.org/1999/xhtml","link"));if(_ow.ie6){scriptTag=documentHead.appendChild(document.createElementNS("http://www.w3.org/1999/xhtml","script"))}}else{cssTag=documentHead.appendChild(document.createElement("link"));if(_ow.ie6){scriptTag=documentHead.appendChild(document.createElement("script"))}}cssTag.id="ow_css_tag";cssTag.rel="stylesheet";cssTag.href=_ow.wwwurl+"/btn/button_"+_ow.btn.size+".css";cssTag.type="text/css";if(_ow.ie6){scriptTag.type="text/javascript";scriptTag.src=_ow.wwwurl+"/js/pngfix.js"}}}_ow.DOMready=(function(){var a={};a.isReady=false;a.init=function(b){if(!this.isReady){this.bindReady(b)}else{b()}};a.bindReady=function(b){if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){a.isReady=true;a.init(b)},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){a.isReady=true;a.init(b)}})}}};return a})();_ow.getScript=function(a,b,d){this.url=a;this.seperator=(a.match(/\?/))?"&":"?";this.jsonpCallback="jsonp"+(new Date()).getTime();this.jsonp="jsonp="+this.jsonpCallback;this.cache="_="+(new Date()).getTime();this.callback=d||function(){};window[this.jsonpCallback]=function(e){b(e)};var c=this;_ow.DOMready.init(function(){c.makeScriptTag()});if(typeof(_bookmarklet)!="undefined"){c.makeScriptTag()}};_ow.getScript.prototype={makeScriptTag:function(){var c=document.getElementsByTagName("head")[0];var b=document.createElement("script");b.setAttribute("type","text/javascript");b.src=this.url+this.seperator+this.jsonp+"&"+this.cache;var a=false;var d=this;b.onload=b.onreadystatechange=function(){if(!a&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){a=true;d.callback();c.removeChild(b)}};c.appendChild(b)}};_ow.focusTo=function(b,a){if(typeof a=="undefined"){a=b.value.length}if(b.createTextRange){if(range==0){range=b.createTextRange()}range.moveEnd("character",b.value.length);range.moveStart("character",a);setTimeout("range.select()",10)}else{if(b.setSelectionRange){b.select();b.setSelectionRange(a,b.value.length)}else{b.blur()}}};_ow.class_select=function(b){var a=document.getElementById("tag_"+b);a.style.cursor="pointer";a.style.color="#000";a.style.textDecoration="none";a.className="tag_selected"};_ow.class_deselect=function(b){var a=document.getElementById("tag_"+b);a.style.color="#309acc";a.style.textDecoration="underline";a.style.cursor="pointer";a.className="tag_deselected"};_ow.swap=function(a){var g=_ow.Popup.fieldsToUpdate.tags.value;var e=g.replace(/^\s+|\s+$/g,"");var c=e.split(" "),h=false,d,b=a.toLowerCase();if(c[0].replace(/^\s+|\s+$/g,"")==""){c.splice(0,1)}for(d=0;d<c.length;d++){if(c[d].toLowerCase()==b){c.splice(d,1);_ow.class_deselect(a);h=true;d-=1}}if(!h){c.push(a);_ow.class_select(a)}var f=c.join(" ");_ow.Popup.fieldsToUpdate.tags.value=(f.length>1)?f+" ":f};_ow.getTopLeft=function(e){function j(){var q=0,p=0;if(typeof(window.pageYOffset)=="number"){p=window.pageYOffset;q=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){p=document.body.scrollTop;q=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){p=document.documentElement.scrollTop;q=document.documentElement.scrollLeft}}}return[q,p]}function f(){var q=0,p=0;if(typeof(window.innerWidth)=="number"){q=window.innerWidth;p=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){q=document.documentElement.clientWidth;p=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){q=document.body.clientWidth;p=document.body.clientHeight}}}return[q,p]}var o=curtop=0;var h=e.clientHeight;var n=e.clientWidth;if(e.offsetParent){do{o+=e.offsetLeft;curtop+=e.offsetTop}while(e=e.offsetParent)}var c=curtop;var d=o;var m=h+c;var l=f();var b=l[0];var a=l[1];if(d>b/2){d=d-_ow.Popup.popupWidth+n}var g=j();var i=c-g[1];var k=_ow.Popup.popup.clientHeight||_ow.Popup.getClientHeight();if(i>a/2&&(c>k)){m=c-k}return[m,d]};_ow.Dom=(function(){function a(c){while(c.hasChildNodes()){c.removeChild(c.firstChild)}return c}function b(d){var c;return document.getElementById(d)||(c=document.getElementsByName(d)&&c[0])}b.clearChildren=a;return b})();_ow.Event={stop:function(a){if(!a){var a=window.event}a.cancelBubble=true;if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}if(a.stopPropagation){a.stopPropagation()}},stopPropagation:function(a){if(!a){var a=window.event}a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}}};_ow.Box=function(b){var a=function(){_ow.Dom.clearChildren(_ow.Popup.popup);var c=_ow.E("div");c.appendChild(_ow.Template.genHeader(2));c.appendChild(_ow.Template.genLogo());var g=document.createElement("div");g.style.clear="both";g.style.height="0px";c.appendChild(g);var h=document.createElement("div");h.className="success";h.style.position="relative";h.style.background='url("'+_ow.wwwurl+'/onlywire_button/images/success.png") no-repeat';h.style.width="372px";h.style.height="40px";h.style.margin="25px 0 0";var d=document.createElement("span");d.style.color="#65666a";d.style.position="absolute";d.style.top="13px";d.style.left="55px";d.style.fontSize="11px";d.style.fontWeight="bold";if(typeof b=="string"){var f=document.createTextNode(b);d.appendChild(f)}else{d.appendChild(b)}h.appendChild(d);c.appendChild(h);var e=document.createElement("div");e.style.clear="both";e.style.height="0px";c.appendChild(e);_ow.Popup.popup.appendChild(c);_ow.Popup.align(_ow.Popup.currentButton)};return{success:a}};_ow.Auth=(function(){var a={};a.authData=null;a.init=function(){var b="url="+encodeURIComponent(document.domain);if(_ow.token){b+="&token="+encodeURIComponent(_ow.token)}new _ow.getScript(_ow.wwwurl+"/widget/getWidgetData?"+b,function(c){a.authData=c;_ow.Template.init();_ow.Popup.init()})};if(typeof(_bookmarklet)!="undefined"){a.init()}if(window.addEventListener){a.init()}else{window.attachEvent("onload",function(){a.init()})}a.isLoggedIn=function(){if(a.authData.error){return false}else{return true}};a.logout=function(){new _ow.getScript(_ow.wwwurl+"/widget/logout.php",function(){},function(){_ow.Auth.init()})};return a})();_ow.Submit=function(b,a){this.obj=b};_ow.Submit.prototype._analCheck=function(c){if(c.nodeName=="INPUT"){if(c.checked){return c.value}else{return""}}var a="";var d=0;for(var b=0;b<c.length;b++){if(c[b].checked){if(d>0){a+=","}a+=c[b].value;d++}}return a};_ow.Submit.prototype.form2obj=function(f){var e={};if(typeof(f)=="string"){f=document.getElementById(f)}if(f){for(var b=0;b<f.elements.length;b++){var d=f.elements[b];if(d.name){var c=undefined;if((d.tagName.toUpperCase()=="INPUT"&&d.type.match(/^text|hidden|password$/i))||d.tagName.toUpperCase()=="TEXTAREA"||(d.type.match(/^CHECKBOX|RADIO$/i)&&d.checked)){c=d.value.length>0?d.value:undefined}else{if(d.tagName.toUpperCase()=="SELECT"){if(d.multiple){var c=[];for(var a=0;a<d.options.length;a++){if(d.options[a].selected){c.push(d.options[a].value)}}if(c.length==0){c=undefined}}else{c=d.options[d.selectedIndex].value}}}if(c!=undefined){if(e.hasOwnProperty(d.name)){if(e[d.name] instanceof Array){e[d.name]=e[d.name].concat(c)}else{e[d.name]=[].concat(e[d.name],c)}}else{e[d.name]=d.value}}}}}return e};_ow.Submit.prototype.obj2query=function(d,a,c){if(typeof d!="object"){return""}if(arguments.length==1){a=/\.php$/.test(document.location.href)}var g="";for(var f in d){if(d.hasOwnProperty(f)){var e=c?c+"."+f:f;if(d[f] instanceof Array){for(var b=0;b<d[f].length;b++){if(typeof d[f][b]=="object"){g+="&"+obj2query(d[f][b],a,e)}else{g+="&"+encodeURIComponent(e)+(a?"[]":"")+"="+encodeURIComponent(d[f][b])}}}else{if(d[f] instanceof Date){g+="&"+encodeURIComponent(e)+"="+d[f].getTime()}else{if(d[f] instanceof Object){if(d.toString&&d.toString!==Object.prototype.toString){g+="&"+encodeURIComponent(e)+"="+encodeURIComponent(d[f].toString())}else{g+="&"+obj2query(d[f],a,e)}}else{g+="&"+encodeURIComponent(e)+"="+encodeURIComponent(d[f])}}}}}return g.replace(/^&/,"")};_ow.Submit.prototype.bookmark=function(e){var a=this;var d=this._analCheck(e);var c=d.split(",").length;if(this.obj.tags.value=="space separated"||this.obj.tags.value==""){this.obj.tags.value="onlywire"}if(this.obj.url.value==""){alert("URL field cant be blank");return}var b=_ow.wwwurl+"/widget/save?title="+encodeURIComponent(this.obj.title.value)+"&url="+encodeURIComponent(this.obj.url.value)+"&tags="+this.obj.tags.value+"&private="+this.obj.priv.checked+"&c="+this.obj.notes.value+"&service="+d+"&token="+(_ow.token?encodeURIComponent(_ow.token):"");new _ow.getScript(b,function(){var f=_ow.E("span");f.appendChild(_ow.H('<span>Your submission will be processed by the <strong>OnlyWire Submitter</strong>. <a target="_blank" href="'+wwwurl+'/download">Click Here to Download</a></span>'));f.style.display="block";f.style.marginLeft="-4px";f.style.marginTop="-5px";_ow.Box(f).success()})};_ow.Submit.prototype.status=function(){var a=this.form2obj(this.obj);if(!a.status){alert("Please enter a status.");return}if(!a["service[]"]){alert("Please select at least 1 service.");return}var c=a["service[]"];if(_ow.isArray(c)){c=c.join(",")}var d=this.obj2query({services:c,status:a.status});var b=_ow.wwwurl+"/widget/updatestatus?"+d;new _ow.getScript(b,function(){},function(){var e=_ow.E("span");e.appendChild(_ow.H('<span>Your submission will be processed by the <strong>OnlyWire Submitter</strong>. <a target="_blank" href="'+wwwurl+'/download">Click Here to Download</a></span>'));e.style.display="block";e.style.marginLeft="-4px";e.style.marginTop="-5px";_ow.Box(e).success()})};_ow.Submit.prototype.mylogins=function(){var a=this.obj.getElementsByTagName("input");for(var d=0;d<a.length;d++){if(a[d].value=="username"||a[d].value=="password"){a[d].value=""}}var b=this.form2obj(this.obj);var f=this.obj2query(b);if(!f){alert("Please enter your login info.");return}var g=_ow.Auth.authData.username;var c=_ow.wwwurl+"/widget/save_services?do=update_bookmark_logins&u="+g+"&"+f;new _ow.getScript(c,function(){});var e=_ow.E("span");e.appendChild(_ow.T("Your login information has been saved"));e.style.display="block";e.style.marginLeft="-4px";e.style.marginTop="-5px";_ow.Box(e).success();setTimeout(function(){_ow.Auth.init()},3000)};_ow.Submit.prototype.share=function(){var a=this;var d=encodeURIComponent(_ow.Popup.fieldsToUpdate.title.value);var b=encodeURIComponent(_ow.Popup.fieldsToUpdate.url.value);if(this.obj.from.value==""){alert("From email cant be blank");return}else{var c=/^[^@]+@[^@]+.[a-z]{2,}$/i;if(this.obj.from.value.search(c)==-1){alert("Invalid e-mail address");return}}if(this.obj.to.value=="comma separated"||this.obj.to.value==""){alert("To email cant be blank");return}var e=this.obj.to.value.split(",").length;new _ow.getScript(_ow.wwwurl+"/widget/sendemail?from="+encodeURIComponent(this.obj.from.value)+"&to="+encodeURIComponent(this.obj.to.value)+"&message="+encodeURIComponent(this.obj.message.value)+"&title="+d+"&url="+b,function(f){_ow.Box("Your email has been sent.").success()})};_ow.Submit.prototype.signup=function(){var a=this;new _ow.getScript(_ow.wwwurl+"/widget/signup?subscription=free&cardnumber=&cvv=&mm=-1&yy=-1&zip=&cardname=&cardtype=&username="+this.obj.username.value+"&email="+this.obj.email.value+"&m="+this.obj.password.value+"&captcha_code="+this.obj.captcha_code.value+"&industry=Button",function(b){if(b=="Success"){_ow.Box("Your account has been created, please login.").success();_ow.Popup.loadSignin()}else{alert(b)}})};_ow.Submit.prototype.signin=function(b){var a=this;if(b){this.obj=b}new _ow.getScript(_ow.wwwurl+"/widget/login?username="+this.obj.username.value+"&m="+this.obj.password.value,function(c){if(c.response=="Success"){_ow.token=c.token;_ow.Auth.init()}else{alert(c.response)}})};_ow.Template=(function(){var a={};a.homepage=null;a.bookmark=null;a.share=null;a.init=function(){a.myloginspage=a.genMyLoginsPage();a.homepage=a.genHomepage();a.bookmark=a.genBookmark();a.share=a.genShare();a.signup=a.genSignup();a.signin=a.genSignin();a.status=a.genStatus();a.tags=a.genTags()};a.genTitle=function(b){var c=document.createElement("div");c.style.height="22px";c.style.color="#"+_ow.btn.textx;c.style.fontSize="13px";c.style.fontWeight="bold";c.style.padding="18px 0 0 0px";c.appendChild(document.createTextNode(b));return c};a.genRound=function(f,d,c){var g=document.createElement("div");g.style.position="relative";g.style.height="21px";g.style.width="394px";g.style.background='url("'+_ow.wwwurl+'/onlywire_button/images/round.png") no-repeat top left';g.style.fontSize="10px";g.style.marginBottom="10px";g.style.marginLeft="6px";var e=document.createElement("div");e.style.position="absolute";e.style.left="10px";e.style.top="3px";e.appendChild(document.createTextNode(f));if(d){var b=document.createElement("a");b.style.position="absolute";b.style.top="3px";b.style.right="10px";b.style.color="#309acc";b.href="#";b.onclick=function(){_ow.Popup.loadMyLoginsPage();return false};b.appendChild(document.createTextNode(d));g.appendChild(b)}g.appendChild(e);return g};a.genHeader=function(e){var g=document.createElement("ul");g.style.padding="6px 0";g.style.margin="19px 0 0";g.style.borderBottom="1px solid #ccc";g.style.width="358px";g.style.top="19px";g.style.left="9px";var f=4;for(var d=0,j,h;d<f;d++){j=document.createElement("li");j.style.display="inline";j.style.listStyle="none";j.style.padding="0px";j.style.margin="6px 10px 0 0";j.style.cursor="pointer";h=document.createElement("a");h.style.padding="7px 7px";h.style.margin="0";h.style.border="1px solid #ccc";h.style.borderBottom="none";h.style.backgroundColor="#"+_ow.btn.inactivebg;h.style.textDecoration="none";h.style.outline="none";h.style.color="#"+_ow.btn.inactive;h.style.fontWeight="bold";h.style.lineHeight="16px";if(d==0){if(_ow.Auth.isLoggedIn()){h.onclick=function(i){_ow.Event.stop(i);_ow.Popup.loadBookmark()}}else{h.onclick=function(i){_ow.Event.stop(i);_ow.Popup.loadHomepage()}}h.appendChild(document.createTextNode("Bookmark"))}else{if(d==1){h.onclick=function(i){_ow.Event.stop(i);if(_ow.Auth.isLoggedIn()){_ow.Popup.loadStatus()}else{_ow.Popup.loadSignin()}};h.appendChild(document.createTextNode("Status"))}else{if(d==2){h.onclick=function(i){_ow.Event.stop(i);_ow.Popup.loadShare()};h.appendChild(document.createTextNode("Email"))}else{if(d==3){h.target="_blank";if(_ow.Auth.isLoggedIn()){h.href=_ow.wwwurl+"/history";h.appendChild(document.createTextNode("My Account"))}else{h.href=_ow.wwwurl;h.appendChild(document.createTextNode("What's This?"))}}}}}if(e==d){h.style.backgroundColor="#"+_ow.btn.activebg;h.style.color="#"+_ow.btn.active}j.appendChild(h);g.appendChild(j)}var b=_ow.H('<a style="color:#'+_ow.btn.active+";text-decoration:none;background:#"+_ow.btn.activebg+';width:14px;height:14px;display:block;position: absolute;top:0;right:0;" href="#"><div style="position:absolute;left:3px; top:0px;">X</div></a>');b.onclick=function(i){_ow.Event.stop(i);_ow.Popup.hide()};g.appendChild(b);if(_ow.Auth.isLoggedIn()){var c=_ow.H('<div style="color:#309ACC;position: absolute;top:0;right:27px;"></div>');c.appendChild(_ow.T(_ow.Auth.authData.username));var k=_ow.H('<a style="color:#309ACC;" href="#">logout</a>');k.onclick=function(i){_ow.Event.stop(i);_ow.Auth.logout()};g.appendChild(c)}return g};a.genLogo=function(){var b=document.createElement("div");b.className="ow_rounded_logo";b.style.width="55px";b.style.height="55px";b.style.position="absolute";b.style.top="19px";b.style.right="9px";if(_ow.ie6){b.style.background="#"+_ow.btn.logox+' url("'+_ow.wwwurl+'/images/onlywire_logo_small_square.gif") no-repeat center'}else{b.style.background="#"+_ow.btn.logox+' url("'+_ow.wwwurl+'/images/onlywire_logo_small_square.png") no-repeat center'}return b};a.genBookList=function(n,d){if(!n){return}var s={};s.elements=[];var c=document.createElement("div");c.style.margin="0px 0px 10px 0px";c.style.overflow="auto";c.style.position="relative";c.style.maxHeight="200px";c.style.backgroundColor="white";for(var l=0,r,k,e,p,b;l<n.length;l++){r=n[l];var q=false;if(_ow.Auth.isLoggedIn()){q=true}else{var t=r.pk_id*1;if(_ow.btn.services.length==0){q=true}else{if(!Array.indexOf){for(var g=0;g<_ow.btn.services.length;g++){if(_ow.btn.services[g]==t){q=true}}}else{if(_ow.btn.services.indexOf(t)>-1){q=true}}}}if(q){b="label_"+r.pk_id;k=document.createElement("div");k.style.cssText="float:left";k.style.width="200px";k.style.fontSize="10px";k.style.marginBottom="4px";e=document.createElement("label");e.setAttribute("for",b);try{var m=document.createElement("<input type='checkbox' checked='checked'>")}catch(f){var m=document.createElement("input")}m.setAttribute("id",b);m.style.verticalAlign="middle";m.style.marginRight="3px";m.type="checkbox";if(d){m.value=r.name_clean;m.setAttribute("name","service[]")}else{m.value=r.pk_id}m.checked="true";p=document.createElement("img");p.style.verticalAlign="middle";p.style.marginRight="3px";p.src=_ow.imagesPath+"/i/"+r.small_icon;if(_ow.Auth.isLoggedIn()){k.appendChild(m)}e.appendChild(p);if(_ow.Auth.isLoggedIn()){e.appendChild(document.createTextNode(r.name))}else{var o=document.createElement("a");o.style.color="#000";var h=r.post_link;o.href=_ow.wwwurl+"/bounce?t="+encodeURIComponent(h);o.setAttribute("post_link",h);if(_ow.Auth.isLoggedIn()){o.setAttribute("title","Auto submission not yet supported, coming soon!")}o.setAttribute("rel","external");o.setAttribute("target","_blank");o.style.textDecoration="underline";o.appendChild(document.createTextNode(r.name));if(!h){e.appendChild(document.createTextNode(r.name))}else{e.appendChild(o)}}k.appendChild(e);c.appendChild(k);s.elements.push(m)}}s.list=c;return s};a.genWrapper=function(){var b=document.createElement("div");b.fontSize="10px";b.color="#000";b.style.margin="10px";b.style.textAlign="center";b.style.position="relative";return b};a.genWrapContent=function(){var d=document.createElement("div");d.style.marginTop="10px";d.style.textAlign="center";d.appendChild(document.createTextNode("By signing up, you agree to the "));var c=document.createElement("a");c.style.color="#309acc";c.appendChild(document.createTextNode("Terms of service"));c.href="#";c.onclick=function(){window.open(_ow.wwwurl+"/terms");return false};var b=document.createElement("a");b.style.color="#309acc";b.href="#";b.onclick=function(){window.open(_ow.wwwurl+"/terms");return false};b.appendChild(document.createTextNode("Privacy Policy."));d.appendChild(c);d.appendChild(document.createTextNode(" and "));d.appendChild(b);return d};a.genInfo=function(d){var e=document.createElement("div");e.style.border="1px solid #ffcc00";e.style.backgroundColor="#FDED8B";e.style.color="#000";e.style.fontWeight="bold";e.style.width="192px";e.style.height="52px";e.style.fontSize="10px";e.style.position="absolute";e.style.top="10px";e.style.right="10px";var c=document.createElement("span");c.style.position="absolute";c.style.top="8px";c.style.left="8px";c.style.right="8px";c.appendChild(document.createTextNode(d));var b=document.createElement("div");b.style.position="absolute";b.style.top="52px";b.style.right="10px";b.style.width="8px";b.style.height="15px";b.style.background='url("'+_ow.wwwurl+'/onlywire_button/images/arrow.gif") no-repeat';e.appendChild(b);e.appendChild(c);return e};a.genTags=function(){var h=_ow.E("div");var d=_ow.Auth.authData.tags||{};h.appendChild(this.genHeader(0));h.appendChild(this.genLogo());var g=h.appendChild(this.genTitle("Select Tags"));var b=_ow.E("div");b.style.overflow="auto";b.style.background="none";b.style.maxHeight="200px";for(var e=0;e<d.length;e++){var f=document.createElement("span");f.appendChild(document.createTextNode(d[e].tag));f.style.color="#309acc";f.style.textDecoration="underline";f.style.cursor="pointer";f.id="tag_"+d[e].tag;f.onclick=function(){var i=_ow.Popup.fieldsToUpdate.tags;if(i.value=="space separated"){i.value=""}_ow.swap(this.id.replace(/tag_/,""))};b.appendChild(f);b.appendChild(document.createTextNode(" "))}h.appendChild(b);var c=this.genButton("Done",function(i){_ow.Event.stop(i);_ow.Popup.loadBookmark()});h.appendChild(this.genFooter(c));return h};a.genHomepage=function(){var j=_ow.E("div");j.appendChild(this.genHeader(0));j.appendChild(this.genLogo());var e=j.appendChild(this.genTitle("Bookmark Content"));var h=this.genBookList(_ow.Auth.authData.services||{});var d=h.list.getElementsByTagName("a");for(var c=0,b=[];c<d.length;c++){b.push(d[c])}_ow.Popup.fieldsToUpdate.services=b;j.appendChild(h.list);if(_ow.Auth.isLoggedIn()){j.appendChild(this.selectAllNone(h.list))}var g=this.genButton("Create Your Account",function(i){_ow.Event.stop(i);_ow.Popup.loadSignup()});var f=this.genButton("Login",function(i){_ow.Event.stop(i);_ow.Popup.loadSignin()});j.appendChild(this.genFooter(g,f));return j};a.getTheHeight=function(c){var b;var d=document.createElement("div");d.style.width=_ow.Popup.popupWidth;d.appendChild(c);document.body.appendChild(d);b=d.clientHeight;document.body.removeChild(d);return b};a.genAd=function(d){var c=document.createElement("div");c.style.position="relative";c.style.marginTop="25px";c.style.marginLeft="-10px";c.style.width="434px";c.style.height="88px";var b=document.createElement("img");b.src=_ow.wwwurl+"/images/ads/submitter.jpg";b.style.cursor="pointer";b.onclick=function(){window.open(_ow.adurl,"popUpWindow","")};c.appendChild(b);d.style.height="130px";d.appendChild(c)};a.genButton=function(c,d){var b=document.createElement("button");b.appendChild(document.createTextNode(c));b.onclick=d;return b};a.genFooter=function(b,d){var e=document.createElement("div");e.style.height="30px";e.style.textAlign="center";e.style.margin="10px";if(d){var c=document.createElement("span");c.style.color="black";c.style.display="block";c.style.fontWeight="bold";c.appendChild(document.createTextNode("...or create an account to submit to MULTIPLE SITES"));e.appendChild(c);e.style.height="50px"}b.style.marginTop="5px";b.style.marginLeft="5px";e.appendChild(b);if(d){d.style.marginTop="5px";d.style.marginLeft="5px";e.appendChild(d)}if(_ow.Auth.authData.sub_type=="free"){this.genAd(e);if(d){e.style.height="140px"}}else{}return e};a.genTable=function(f){if(!f){return}var m={};m.elements={};var l=document.createElement("table");var d=document.createElement("tbody");l.style.fontSize="10px";l.style.width="380px";l.style.margin="auto";l.style.textAlign="left";for(var c=0;c<f.length;c++){var g=f[c];var h=document.createElement("tr");var e=document.createElement("td");e.style.textAlign="right";e.style.width="100px";e.appendChild(document.createTextNode(g.left));var b=document.createElement("td");if(g.type=="input"||g.type=="input_password"||g.type=="input_checkbox"){var j=document.createElement("input");j.style.border="1px solid #6eafd7";j.style.padding="0 3px";j.style.fontSize="10px";j.style.width="200px";if(g.type=="input_password"){j.type="password"}else{if(g.type=="input_checkbox"){j.type="checkbox";j.style.width="auto";j.style.border="0px"}else{j.type="text"}}j.value=g.value;j.onclick=function(){if(this.value=="comma separated"||this.value=="space separated"){this.value=""}};m.elements[g.id]=j;b.appendChild(j)}else{if(g.type=="textarea"){var k=document.createElement("textarea");k.style.border="1px solid #6eafd7";k.style.padding="0 3px";k.style.fontSize="10px";k.style.width="200px";k.style.height="70px";e.style.verticalAlign="top";b.appendChild(k);m.elements[g.id]=k}else{b.appendChild(g.type);m.elements[g.id]=g.type}}h.appendChild(e);h.appendChild(b);d.appendChild(h)}l.appendChild(d);m.table=l;return m};a.genLogins=function(m){var b=_ow.H('<form style="height: 300px; overflow: auto;width: 100%;"></form>');var g;for(var f=0;f<m.length;f++){var c=m[f].pk_id;var e=false,l=false;for(var j=0;j<_ow.Auth.authData.services.length;j++){var d=_ow.Auth.authData.services[j];if(d.pk_id==c){e=d.username;l=d.password;break}}g='<div style="float: left;width:200px;overflow:hidden;text-align: center;">';g+='<center style=""><img src="'+_ow.imagesPath+"/i/"+m[f].small_icon+'" style="vertical-align: middle;" />'+m[f].name+"</center>";g+='<input name="'+m[f].pk_id+'|username" type="text" value="'+(e||"username")+'" style="font-size: 11px;border:1px solid #BDBDA9;color:#999999;margin-bottom:2px;"/><br>';g+='<input name="'+m[f].pk_id+'|password" type="text" value="'+(l||"password")+'" style="font-size: 11px;border:1px solid #BDBDA9;color:#999999;"/>';g+="</div>";b.appendChild(_ow.H(g))}var h=b.getElementsByTagName("input");for(var k=0;k<h.length;k++){h[k].onclick=function(i){if(this.value=="password"||this.value=="username"){this.value=""}}}return b};a.selectAllNone=function(b){var c="Select none";var e="Select all";var d=_ow.H('<a href="#" style="color:#309ACC;display:block;margin-bottom:10px;text-align:center;">'+c+"</a>");d.onclick=function(h){var f=b.getElementsByTagName("input");if(this.innerHTML==c){for(var g=0;g<f.length;g++){f[g].checked=false}this.innerHTML=e}else{if(this.innerHTML==e){for(var g=0;g<f.length;g++){f[g].checked=true}this.innerHTML=c}}_ow.Event.stop(h)};return d};a.genMyLoginsPage=function(){var f=_ow.E("div");f.appendChild(this.genHeader(0));f.appendChild(this.genLogo());var e=f.appendChild(this.genTitle("My Logins"));var d=f.appendChild(this.genInfo("To proceed, enter your login info for your bookmark services:"));d.style.top="53px";d.style.right="83px";e.style.marginTop="30px";var b=this.genLogins(_ow.Auth.authData.all_services||_ow.Auth.authData.services);f.appendChild(b);var c=this.genButton("Save My Logins",function(h){_ow.Event.stop(h);var g=new _ow.Submit(b);g.mylogins()});f.appendChild(_ow.H('<center style="font-size:9px;">OnlyWire Protects your Privacy.  Login Information is not Shared with Anyone.</center>'));f.appendChild(this.genFooter(c));return f};a.genBookmark=function(){if(_ow.Auth.authData.services==false){return a.myloginspage}else{var b=_ow.E("div");b.appendChild(this.genHeader(0));b.appendChild(this.genLogo());var g=b.appendChild(this.genTitle("Bookmark Content"));var j=b.appendChild(this.genRound("Post this page to all your favorites sites:","Set up bookmark sites",swwwurl+"/services"));var d=this.genBookList(_ow.Auth.authData.services);b.appendChild(d.list);b.appendChild(this.selectAllNone(d.list));b.appendChild(this.genRound("Description"));var i=_ow.H('<a style="color:#309ACC;" href="#">My Tags</a>');i.onclick=function(k){_ow.Event.stop(k);_ow.Popup.loadTags()};var f=[{id:"title",left:"Title",value:"",type:"input"},{id:"url",left:"URL",value:"",type:"input"},{id:"tags",left:"Tags",value:"",type:"input"},{id:"0",left:"",value:"",type:i},{id:"notes",left:"Notes",value:"",type:"textarea"},{id:"priv",left:"Mark as Private?",value:"",type:"input_checkbox"}];var c=this.genWrapper();var h=this.genTable(f);_ow.Popup.fieldsToUpdate.title=h.elements.title;_ow.Popup.fieldsToUpdate.url=h.elements.url;_ow.Popup.fieldsToUpdate.tags=h.elements.tags;c.appendChild(h.table);b.appendChild(c);h.elements.tags.id="tags";var e=this.genButton("Bookmark",function(l){_ow.Event.stop(l);var k=new _ow.Submit(h.elements);k.bookmark(d.elements)});b.appendChild(this.genFooter(e))}return b};a.genStatus=function(){if(!_ow.Auth.isLoggedIn()){return a.signin}if(_ow.Auth.authData.status_services==false){return a.myloginspage}var f=_ow.E("div");f.appendChild(this.genHeader(1));f.appendChild(this.genLogo());f.appendChild(this.genTitle("Update Status"));f.appendChild(this.genRound("Post your status to the following sites:","Set up sites",swwwurl+"/services"));var d=_ow.E("form");var e=this.genBookList(_ow.Auth.authData.status_services,true);d.appendChild(e.list);d.appendChild(this.selectAllNone(e.list));var b=_ow.H('<table style="margin: auto; font-size: 10px; width: 380px; text-align: left;"><tbody><tr><td style="text-align: right; width: 100px; vertical-align: top;">Status</td><td><textarea name="status" style="border: 1px solid rgb(110, 175, 215); padding: 0pt 3px; font-size: 10px; width: 200px; height: 70px;"></textarea></td></tr></tbody></table>');d.appendChild(b);var c=this.genButton("Update Status",function(h){_ow.Event.stop(h);var g=new _ow.Submit(d);g.status()});d.appendChild(this.genFooter(c));f.appendChild(d);return f};a.genShare=function(){var g=_ow.E("div");g.appendChild(this.genHeader(2));g.appendChild(this.genLogo());g.appendChild(this.genTitle("Share/Email Content"));var f="";if(_ow.Auth.isLoggedIn()){f=_ow.Auth.authData.email}var e=[{id:"to",left:"Enter Email Addresses",value:"comma separated",type:"input"},{id:"from",left:"Your Email Address",value:f,type:"input"},{id:"message",left:"Message",value:"",type:"textarea"}];var c=this.genWrapper();var d=this.genTable(e);c.appendChild(d.table);g.appendChild(c);var b=this.genButton("Send",function(){var h=new _ow.Submit(d.elements);h.share()});g.appendChild(this.genFooter(b));return g};a.genSignup=function(){var i=_ow.E("div");i.appendChild(this.genHeader(0));i.appendChild(this.genLogo());i.appendChild(this.genTitle("Create a free account"));var b=document.createElement("img");b.setAttribute("alt","Captcha Image");b.style.width="199px";b.src=_ow.wwwurl+"/securimage/securimage_show.php";var e=document.createElement("span");var h=document.createElement("a");h.style.color="#309acc";h.href="#";h.appendChild(document.createTextNode("Login"));h.onclick=function(){_ow.Popup.loadSignin();return false};e.appendChild(document.createTextNode("Already have an account? "));e.appendChild(h);var g=[{id:"0",left:"",value:"Already have an account? <a href='#'>Login</a>",type:e},{id:"username",left:"Username",value:"",type:"input"},{id:"password",left:"Password",value:"",type:"input_password"},{id:"email",left:"Email",value:"",type:"input"},{id:"0",left:"",value:"",type:b},{id:"captcha_code",left:"Enter Code",value:"",type:"input"}];var d=this.genWrapper();var f=this.genTable(g);d.appendChild(f.table);d.appendChild(this.genWrapContent());i.appendChild(d);var c=this.genButton("Sign Up",function(){var j=new _ow.Submit(f.elements);j.signup()});i.appendChild(this.genFooter(c));return i};a.genSignin=function(){var i=_ow.E("div");i.appendChild(this.genHeader(0));i.appendChild(this.genLogo());i.appendChild(this.genTitle("Login"));var e=document.createElement("span");var h=document.createElement("a");h.style.color="#309acc";h.href="#";h.appendChild(document.createTextNode("Sign up"));h.onclick=function(){_ow.Popup.loadSignup();return false};var d=document.createElement("a");d.style.color="#309acc";d.href="#";d.appendChild(document.createTextNode("Forgot password?"));d.onclick=function(){window.open(_ow.wwwurl+"/forgotpassword");return false};e.appendChild(document.createTextNode("New to OnlyWire? "));e.appendChild(h);var g=[{id:"0",left:"",value:"",type:e},{id:"username",left:"Username",value:"",type:"input"},{id:"password",left:"Password",value:"",type:"input_password"},{id:"0",left:"",value:"Forgot password?",type:d}];var c=this.genWrapper();var f=this.genTable(g);c.appendChild(f.table);i.appendChild(c);var b=this.genButton("Login",function(){var j=new _ow.Submit(f.elements);j.signin()});i.appendChild(this.genFooter(b));return i};return a})();_ow.Popup=(function(){var a={};a.popup=null;a.currentButton=null;a.currentTag=null;a.fieldsToUpdate={};a.popupHeight=200;a.popupWidth=432;a.init=function(){if(!this.popup){a.popup=a.genPopup();document.body.appendChild(a.popup);document.onclick=function(){_ow.Popup.hide()}}if(typeof(_bookmarklet)!="undefined"){_ow.Popup.show();if(typeof(_ow_loading_text)!="undefined"){_ow_loading_text.hide()}}if(_ow.Auth.isLoggedIn()){this.updateFields();this.loadBookmark()}else{this.loadHomepage()}};a.show=function(b){if(typeof(_bookmarklet)=="undefined"){if(!this.popup){return}}var c=[];if(b){this.currentButton=b;c=_ow.getTopLeft(b);this.popup.style.position="absolute"}else{this.currentButton=null;c[0]=0;c[1]=0;this.popup.style.position="fixed"}this.popup.style.display="block";this.popup.style.top=c[0]+"px";this.popup.style.left=c[1]+"px";if(_ow.Auth.authData.services){this.updateFields()}};a.align=function(b){if(!this.popup){return}if(this.popup.style.display=="none"){return}var c=[];if(b){c=_ow.getTopLeft(b);this.popup.style.position="absolute"}else{c[0]=0;c[1]=0;this.popup.style.position="fixed"}this.popup.style.top=c[0]+"px";this.popup.style.left=c[1]+"px"};a.hide=function(b){this.popup.style.display="none"};a.updateFields=function(){if(typeof(_bookmarklet)=="undefined"){if(!this.currentTag){return}}else{this.currentTag=_ow.H("<b></b>")}var f=this.currentTag.getAttribute("title")||window.document.title;var c=this.currentTag.getAttribute("url")||window.location.href;var b=this.currentTag.getAttribute("tags")||"space separated";if(this.fieldsToUpdate.title&&this.fieldsToUpdate.url&&this.fieldsToUpdate.tags){this.fieldsToUpdate.title.value=f;this.fieldsToUpdate.url.value=c;this.fieldsToUpdate.tags.value=b}if(this.fieldsToUpdate.services){for(var d=0,e;d<this.fieldsToUpdate.services.length;d++){e=this.fieldsToUpdate.services[d];e.href=_ow.wwwurl+"/bounce?t="+encodeURIComponent(e.getAttribute("post_link").replace(/\[URL\]/g,encodeURIComponent(c)).replace(/\[TITLE\]/g,encodeURIComponent(f)))}}};a.getClientHeight=function(){var b=0;this.popup.style.display="block";b=this.popup.clientHeight;return b};a.genPopup=function(){var b=_ow.E("div");b.style.width=this.popupWidth+"px";b.style.position="absolute";b.style.zIndex="10000020";b.style.backgroundColor="#"+_ow.btn.backgroundx;b.style.display="none";b.style.fontFamily="verdana";b.style.fontSize="11px";b.style.textAlign="left";b.style.color="#"+_ow.btn.textx;b.style.border="1px solid #e0e0e0";b.style.padding="0 9px 10px 9px";b.onclick=function(c){_ow.Event.stopPropagation(c)};return b};a.setHeight=function(b){this.popupHeight=b;this.popup.style.height=b+"px"};a.loadHomepage=function(){_ow.Dom.clearChildren(this.popup);this.popup.appendChild(_ow.Template.homepage);_ow.Popup.align(this.currentButton)};a.loadBookmark=function(){_ow.Dom.clearChildren(this.popup);this.popup.appendChild(_ow.Template.bookmark);_ow.Popup.align(this.currentButton)};a.loadStatus=function(){_ow.Dom.clearChildren(this.popup);this.popup.appendChild(_ow.Template.status);_ow.Popup.align(this.currentButton)};a.loadShare=function(){_ow.Dom.clearChildren(this.popup);this.popup.appendChild(_ow.Template.share);_ow.Popup.align(this.currentButton)};a.loadTags=function(){_ow.Dom.clearChildren(this.popup);this.popup.appendChild(_ow.Template.tags);_ow.Popup.align(this.currentButton)};a.loadSignup=function(){_ow.Dom.clearChildren(this.popup);this.popup.appendChild(_ow.Template.signup);_ow.Popup.align(this.currentButton)};a.loadSignin=function(){new _ow.getScript(_ow.wwwurl+"/widget/login",function(b){if(b=="Success"){_ow.token=b.token;_ow.Auth.init()}else{alert(b)}})};a.loadMyLoginsPage=function(){_ow.Dom.clearChildren(this.popup);this.popup.appendChild(_ow.Template.myloginspage);_ow.Popup.align(this.currentButton)};return a})();_ow.genButton=function(c){if(!c){return}var e=_ow.E("a");_ow.button=e;e.href="#";if(_ow.btn.type=="t"){e.className="ow_button"}else{e.className="ow_button_border";e.style.backgroundColor="#"+(_ow.btn.background||"ffffff");e.style.borderColor="#"+(_ow.btn.border||"000000")}var b=_ow.E("span");e.appendChild(b);b.className="ow_logo";b.style.backgroundColor="#"+(_ow.btn.logo||"000000");b.style.margin="0px";var a=_ow.E("img");b.appendChild(a);a.className="ow_logo_img";if(_ow.ie6){a.src=_ow.wwwurl+"/images/onlywire_logo_small.gif"}else{a.src=_ow.wwwurl+"/images/onlywire_logo_small.png"}var d=_ow.E("span");e.appendChild(d);d.className="ow_text";d.style.color="#"+(_ow.btn.text||"000000");d.style.fontSize=(_ow.btn.fontSize||"12")+"px";d.style.fontFamily=(_ow.btn.fontFamily||"Arial");d.appendChild(_ow.T("Bookmark & Share"));e.onclick=function(f){_ow.Event.stopPropagation(f);_ow.Event.stop(f);_ow.Popup.currentTag=c;_ow.Popup.show(this)};if(_ow.btn.mouseover=="t"){e.onmouseover=function(){_ow.Popup.currentTag=c;_ow.Popup.show(this)}}return e};_ow.insertButton=function(){var a=document.getElementsByTagName("script");var e=[];for(var b=0;b<a.length;b++){var d=a[b];if(d.className=="owbutton"){e.push(d)}else{if(d.id=="owbutton"){e.push(d)}}}var c=e[e.length-1];if(!c){return}c.parentNode.insertBefore(_ow.genButton(c),c)}}_ow.insertButton();if(_ow.Popup.popup&&(typeof(_bookmarklet)!="undefined")){_ow.Popup.show()}var owga=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");setTimeout(function(){new _ow.getScript(owga+"google-analytics.com/ga.js",function(){},function(){var a=_gat._getTracker("UA-5399665-1");a._trackPageview(window.location.href.split("/")[2])})},10);