var _tsvc=_tsvc||[];_tsvc.push({account:"fba69785-472c-4660-b04f-c1184b7dc58e"});_tsvc.push({svc:"sharelink",id:"tejji_id_neig4wvpngs98uxr",pos:"bm",css:"defaultcss"}),function(){var n=document.createElement("script");n.async=!0;n.type="text/javascript";n.src="http://service.tejji.com/sharelink/gadgetjs";document.getElementsByTagName("body")[0].appendChild(n)}(),function(){function n(n){var t=document.createElement("script");t.async=!0;t.src=n;document.getElementsByTagName("head")[0].appendChild(t)}function t(){n("http://widgets.amung.us/small.js")}setTimeout(function(){t()},5e3)}(),function(){var t={XMLHttpFactories:[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],createXMLHTTPObject:function(){for(var t=!1,n=0;n<this.XMLHttpFactories.length;n++){try{t=this.XMLHttpFactories[n]()}catch(i){continue}break}return t},sendRequest:function(n,t,i,r){var u=this.createXMLHTTPObject(),f;u&&(f=i?"POST":"GET",(typeof r=="undefined"||r===null)&&(r="application/x-www-form-urlencoded"),u.open(f,n,!0),u.setRequestHeader("User-Agent","XMLHTTP/1.0"),i&&u.setRequestHeader("Content-type",r),u.onreadystatechange=function(){u.readyState==4&&(u.status==200||u.status==304)&&t(u)},u.readyState!=4)&&u.send(i)},getJSON:function(n,t){var i="json"+(Math.random()*100).toString().replace(/\./g,"");window[i]=function(n){t&&t(n)};document.getElementsByTagName("body")[0].appendChild(function(){var t=document.createElement("script");return t.type="text/javascript",t.src=n.replace("callback=?","callback="+i),t}())}},n={s:{downloadUrl:"http://apps.tejji.com/home/appurl?",downloadMoreUrl:"http://apps.tejji.com/?",instructionUrl:"http://apps.tejji.com/home/instructions",appsUrl:"http://apps.tejji.com/",defaultHref:"#",defaultHrefMore:"...",url:{key:"url",val:null},source:{key:"s",val:null},cls:{button:"apps_tejji_com_add_to_browser_button",buttonFixed:"apps_tejji_com_add_to_browser_button_fixed"},css:{id:"apps_tejji_com_add_to_browser_css"}},getPort:function(){return location.port==="81"||location.port==="82"?":82":""},updatePort:function(){var t=n.getPort();n.s.downloadUrl="http://apps.tejji.com"+t+"/home/appurl?";n.s.downloadMoreUrl="http://apps.tejji.com"+t+"/?";n.s.instructionUrl="http://apps.tejji.com"+t+"/home/instructions";n.s.appsUrl="http://apps.tejji.com"+t+"/"},Install:function(n,t,i){return i()},showInstructions:function(){window.open(this.s.instructionUrl,"_blank")},showApps:function(){window.open(this.s.appsUrl,"_blank")},responseJson:function(t){var i=t,r,u,f;for(r in i)u=i[r].AppUrl,f=i[r].ChromeId,n.Install(u,f,function(){var n=document.createElement("iframe");n.style.visibility="hidden";document.body.appendChild(n);n.src=u});i.length<=0},addToBrowser_click:function(i,r){var u=r.href;u=u.replace("callback=download","callback=?");t.getJSON(u,n.responseJson)},listen:function(n,t,i){if(t.addEventListener)t.addEventListener(n,function(n){i(n,t)},!1);else{if(t.attachEvent)return t.attachEvent("on"+n,function(n){i(n,t)});window.alert("No event handler found!")}},insertButton:function(){var n=document.createElement("div"),t;n.innerHTML='<a href="#" target="_newtab" class="'+this.s.cls.buttonFixed+'" >Add to Browser<\/a>';t=n.getElementsByTagName("a")[0];document.body.appendChild(t)},loadButtons:function(n){var i=document.getElementsByClassName(n),f=i.length,u,r,t;for(u=this.s.url.val,r=this.s.source.val,t=0;t<f;t++)i[t].href.substr(-1)===this.s.defaultHref?(i[t].href=this.s.downloadUrl+this.s.source.key+"="+r+"&"+this.s.url.key+"="+i[t].href.substr(0,i[t].href.length-1)+"&callback=download",this.listen("click",i[t],this.addToBrowser_click)):i[t].href.substr(-3)===this.s.defaultHrefMore?i[t].href=this.s.downloadMoreUrl+this.s.source.key+"="+r+"&"+this.s.url.key+"="+u:(i[t].href=this.s.downloadUrl+this.s.source.key+"="+r+"&"+this.s.url.key+"="+i[t].href+"&callback=download",this.listen("click",i[t],this.addToBrowser_click))},loadDefault:function(){this.s.url.val="http://apps.tejji.com/";this.s.source.val="f0de0e66e6b65bed9a9f73459b6adbe7";this.s.url.val=encodeURIComponent(this.s.url.val);this.s.source.val=encodeURIComponent(this.s.source.val);this.applyCss()},cssText:function(){return".apps_tejji_com_add_to_browser_button { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #ffffff; padding: 10px 20px; background: -moz-linear-gradient( top, #3f71a7 0%, #366196); background: -webkit-gradient( linear, left top, left bottom, from(#3f71a7), to(#366196)); -moz-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; border: 1px solid #366196; -moz-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 1px 0px rgba(255,255,255,0.3); -webkit-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 1px 0px rgba(255,255,255,0.3); box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 1px 0px rgba(255,255,255,0.3); text-shadow: 0px -1px 1px rgba(000,000,000,0.2), 0px 1px 0px rgba(255,255,255,0.3); text-decoration: none; /* Additional */ padding: 5px 10px; }\t                        .apps_tejji_com_add_to_browser_button:hover { background: #2D71EE; -webkit-box-shadow: 1px 1px #596ed0; -moz-box-shadow: 1px 1px #596ed0; box-shadow: 1px 1px #596ed0; text-shadow: 1px 1px 0px #596ed0; border-color: #6cb4f8; }                                    .apps_tejji_com_add_to_browser_button:active { background: #2A69EF; background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#327aef), color-stop(100%,#2e76eb)); background: -moz-linear-gradient(center top, #327aef 0%, #2e76eb 100%); -webkit-box-shadow: 1px 1px 3px 0px #0066cc inset; -moz-box-shadow: 1px 1px 3px 0px #0066cc inset; box-shadow: 1px 1px 3px 0px #0066cc inset; text-shadow: 1px 1px 0px #001AA6; border-color: #6cb4f8; }                                    .apps_tejji_com_add_to_browser_button_fixed { font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-size: 16px; color: #FFFFFF; padding: 10px 20px; background-color: #ab0000; -moz-linear-gradient( top, #ff2819 0%, #ab0000); background: -webkit-gradient( linear, left top, left bottom, from(#ff2819), to(#ab0000)); -moz-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; border: 0px solid #7d0000; -moz-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 2px rgba(255,255,255,0.7); -webkit-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 2px rgba(255,255,255,0.7); box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 2px rgba(255,255,255,0.7); text-shadow: 0px -1px 0px rgba(000,000,000,0.4), 0px 1px 0px rgba(255,255,255,0.3); text-decoration: none; /* Additional */ padding: 5px 10px; position: fixed; right: 0px; top: 50%; margin-right: -50px; text-decoration: none; -webkit-transform: rotate(-90deg); /* Safari */ -moz-transform: rotate(-90deg); /* Firefox */ -ms-transform: rotate(-90deg); /* IE */ -o-transform: rotate(-90deg); /* Opera */ filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=3); /* Internet Explorer */ }            "},applyCss:function(){var t=document,r,n,i;t.getElementById(this.s.css.id)||(r=t.getElementsByTagName("head")[0],n=t.createElement("style"),n.id=this.s.css.id,n.type="text/css",i=this.cssText(),n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i)),r.appendChild(n))},init:function(){this.loadDefault();this.insertButton();this.loadButtons(this.s.cls.buttonFixed);this.loadButtons(this.s.cls.button)}};window.onload=function(){n.updatePort();n.init()}}()