function makeLink(d,a,c){var f=document.getElementById(d),h=f.innerHTML,e=document.createElement("a"),b=document.createElement("img"),g=document.createTextNode(h);while(f.firstChild){f.removeChild(f.firstChild)}b.style.height="1em";b.style.width="1em";b.style.border="none";b.style.display="inline";b.style.verticalAlign="baseline";b.style.margin="0";b.style.marginRight="0.2em";b.onload=function(){(function(j,i){j.insertBefore(i,j.firstChild)})(e,b)};if(!c){if(a.indexOf("/")>0){b.src="http://"+a.substring(0,a.indexOf("/"))+"/favicon.ico"}else{b.src="http://"+a+"/favicon.ico"}}else{b.src="http://"+c}e.setAttribute("href","http://"+a);e.setAttribute("class","outLink");e.appendChild(g);f.appendChild(e)}$(function(){(function(j){var a={canvas_compatible:false,check_canvas:function(){try{this.canvas_compatible=!!(j.createElement("canvas").getContext("2d"))}catch(l){this.canvas_compatible=!!(j.createElement("canvas").getContext)}return this.canvas_compatible}},k=84,h=j.getElementById("logo"),e,c,b;if(a.check_canvas()){h.removeChild(h.firstChild);e=j.createElement("canvas");h.style.textIndent=0;h.style.background="none";h.appendChild(e);c=e.getContext("2d");c.canvas.width=k;c.canvas.height=k;b=0;setInterval(i,50)}function i(){c.clearRect(0,0,k,k);c.save();c.translate(k/2,k/2);c.save();c.rotate(Math.PI);d(b,3);c.restore();c.rotate(Math.PI/3);d(b+0.3,5);c.rotate(-Math.PI/3*2);d(b+0.7,4);c.restore();b+=0.05}function d(m,p){var l=0,o,n;for(;l<Math.PI*2;l+=0.1){o=f(l+0.1);n=f(l);c.lineWidth=(o[2]+n[2])*k/200+0.5;c.beginPath();c.lineTo(o[0],o[1]);c.lineTo(n[0],n[1]);c.stroke()}for(l=0;l<p;l++){g(m+(Math.PI/(p/2))*l)}}function g(m){var l=f(m);c.beginPath();c.arc(l[0],l[1],l[2]*k/100+2,0,2*Math.PI,true);c.closePath();c.fill()}function f(l){return[Math.sin(l)*k/2.2,Math.cos(l)*k/8,(Math.sin(l-0.5*Math.PI)+1)/2]}})(document)});
