(function(){
function k(c,d,b){
    var a="on"+d;
	if(c.addEventListener)c.addEventListener(d,b,false);
	else if(c.attachEvent)c.attachEvent(a,b);
	else{var f=c[a];c[a]=function(){
		var g=f.apply(this,arguments),e=b.apply(this,arguments);
		return g==undefined?e:(e==undefined?g:e&&g)}}};
var l="static/hello.png",m=52,n=37,o=75,p=100;
function q(c,d,b,a,f){return{url:c,name:d,tooltip:b,color:a,yAdjust:f}}
var r=[q("http://judesimon.com/","Jude's Blog","Welcome to my blog","#54a70d",[2,5]),
	q("http://gallery.judesimon.com/","Photo Gallery","Jude's photo galleries","#3b79e7",[2,5]),
	q("http://mail.judes.me/","@judesimon.com","Login to your Email account @judesimon.com","#f3e76e",[3,7]),
	q("http://judesimon.com/Opera/","Opera Browser","Some Opera tips & tricks","#96cfec",[4,9]),
	q("http://twitter.com/microjude/","Me on Twitter","Follow Jude on Twitter","#e6af36",[3,7]),
	q("http://micro.judes.me/","\Micro Jude","\A micro-blogging platform on GAE","#ff9202",[2,5]),
	q("http://audio.judesimon.com/","\Audio Archive","Some radio program recordings and podcasts","#d93c08",[2,5])],s=[];
function t(c,d){while(d&&c!=d)d=d.parentNode;return d==c}
function v(c,d){
   return function(b){
	b=b||window.event;
	var a=s[d],
	f=c=="mouseover",
	g=b.target||b.srcElement,
	e=b.relatedTarget||(f?b.fromElement:b.toElement),
	h=!e||t(a.element,e),i=t(a.element,g);
	if(f&&!h||!f&&(!e||i&&!h)){
 	 var j=a.icon;j.mouseTimeout=window.clearTimeout(j.mouseTimeout);
 	 var u=f?1:-1;if(j.b!=u)j.mouseTimeout=window.setTimeout(j.e(u,undefined),f?p/3:p)}}}
function w(c,d,b){k(c,d,v(d,b))}
function x(c,d,b){
	this.c=c;
	var a=document.createElement("div"),
	f=c.color,g="background-color:"+f,
	e="width:1px;height:1px;"+g+";float:",
	h='<div style="height:1px;overflow:hidden"><div style="'+e+'left"></div><div style="'+e+'right"></div></div>',
	i="margin:0 1px;height:1px;overflow:hidden;"+g;a.innerHTML='<div style="display:none;position:absolute;top:0;left:0;z-index:2;background:#fff;cursor:pointer;cursor:hand"><a href="'+d+'" style="color:#444;text-decoration:none" target=_blank><div style="'+i+'"></div><div style="text-align:center;border-left:1px solid;border-right:1px solid;border-color:'+
f+'">'+h+'<div style="margin:0 auto;white-space:nowrap;padding:.2em 0 0"><font size=-1><span>'+b+"</span></font></div>"+h+'</div><div style="'+i+'"></div><div style="height:4px" align="center"><div style="position:relative;top:-1px;z-index:3;width:8px;overflow:hidden;margin:0 auto;height:4px;background:no-repeat -260px '+-c.spriteCoordinateList[0].y+'px"></div></div></a></div>';
	this.h=a.getElementsByTagName("span")[0];
	document.body.appendChild(a);a.firstChild.firstChild.lastChild.firstChild.style.backgroundImage="url("+l+")";
	this.element=a.firstChild;
	var j=s.length;s.push({icon:c,element:this.element});
		w(this.element,"mouseover",j);w(this.element,"mouseout",j)}
x.prototype.play=function(c){
	var d=this.c.element.firstChild,b={left:-d.offsetLeft,top:0};
    while(d){b.left+=d.offsetLeft;b.top+=d.offsetTop;d=d.offsetParent}
    var a=this.element.style;
    if(a.display=="none"){a.visibility="hidden";a.display="block"}
    var f=this.element.offsetHeight,g=this.h.offsetWidth+14;
    if(a.visibility=="hidden"){a.display="none";a.visibility="visible"}
    a.width=g+"px";
    b.left-=(g-this.c.element.parentNode.offsetWidth)/2;
    b.top-=f-3;b.top+=20*Math.pow(1-c/this.c.frames,3);
    a.left=b.left+"px";a.top=b.top+"px";
    if(c==0||this.c.b<0)a.display="none";
    else{
     a.display="";
     var e=c/this.c.frames;
     if("opacity"in a)a.opacity=e;
     	else if("MozOpacity"in a)a.MozOpacity=e;
     	else if("KhtmlOpacity"in a)a.KhtmlOpacity=e;
     	else if("filter"in a)a.filter="alpha(opacity="+e*100+")"}};
function y(c,d,b,a,f){
	this.element=c;
	this.mouseTimeout=null;
	this.frames=d.length-1;this.spriteCoordinateList=d;
	this.color=b;
	this.d=null;
	this.g=c.getElementsByTagName("div")[1];
	this.i=new x(this,a,f);
	this.b=-1;
	this.a=1;
	var g=s.length;s.push({icon:this,element:c});
		w(c,"mouseover",g);
		w(c,"mouseout",g)}
y.prototype.e=function(c,d){var b=this;return function(){b.f(c,d)}};
y.prototype.f=function(c,d){
	if(c){
		this.b=c;
		this.mouseTimeout=window.clearTimeout(this.mouseTimeout);
		this.d=window.clearTimeout(this.d)}
	if(typeof d!="undefined")
		this.a=d;
	    var b=this.spriteCoordinateList[this.a];
	    this.g.style.backgroundPosition=-b.x+"px "+-b.y+"px";
	    this.i.play(this.a);
	    var a=this.element.style;
	    if(this.b<0){a.color="#444";a.textDecoration="none"}
	    else{a.color=this.color;a.textDecoration="underline"}
	    this.a+=this.b;
	    if(this.a>this.frames)this.a=this.frames-1;else if(this.a<0)this.a=1;
	    else this.d=window.setTimeout(this.e(undefined,undefined),o)};
k(window,"load",function(){
  try{document.execCommand("BackgroundImageCache",false,true)}
  catch(c){}
  var d='<table style="margin:2em auto;border-collapse:collapse;line-height:1.4em" cellpadding="3" cellspacing="2" border="0"><tr>';
  for(var b=0;b<r.length;++b){
    var a=r[b];

  	var f=[],g=n*b;
  	for(var e=0;e<7;++e)
  	if(e>4)f.push({x:m*4,y:g-a.yAdjust[e-5]});
  	else f.push({x:m*e,y:g});
  	a.coordinates=f;d+='<td style="text-align:center;padding:0 .35em 0 .4em;margin:0;cursor:pointer;cursor:hand"><a style="color:#444;text-decoration:none;" href="'+a.url+'"><div><div style="width:52px;height:37px;margin:5em .5em .5em 1em;cursor:pointer;cursor:hand;background: no-repeat 0 '+
-g+'px"></div><span style="white-space:nowrap"><font size=-1>'+a.name+"</font></span></div></a></td>"}
  d+="</tr></table>";
  var h=document.getElementById("tb");
  h.innerHTML=d;
  var i=h.getElementsByTagName("a");
  for(var b=0;b<i.length;++b){i[b].firstChild.firstChild.style.backgroundImage="url("+l+")";
  new y(i[b],r[b].coordinates,r[b].color,r[b].url,r[b].tooltip)}});
})();

(function(){
var g,aa=encodeURIComponent,ba=/^(\w+)?(?:\.(.+))?$/;function O(a,b){if(!a)return{};var c=q("a.l",a)||q("a",a,1)[0],e=c.href.match(/[\/.]google\.[.\w:]+\/url.*[?&]q=(.*?)(&|$)/),d={e:e?decodeURIComponent(e[1]):c.href,c:D.length,a:a,b:b};
d.g=a.style[S];if(b!=0)d.s=R;else{d.s=k("div");u(d.s,a);if(!Q)Q=d.s}d.R=c;d.r=0;d.p=q("button.w1",a);d.m=q("button.w2",a);d.p.onclick=l(xa,l(gb,d,0));d.m.onclick=l(xa,l(gb,d,1));d.p.onmouseover=(d.m.onmouseover=(d.p.onmouseout=(d.m.onmouseout=kb)));if(d.d=q("span.w3",a))d.d.onclick=l(gb,d,2);var h=q("button.wci",a);if(h){d.C=(d.F=0);d.j=q(".wcd",a);if(d.j){d.i=n(q(".wct",a).innerHTML.replace(/<wbr>/g,""),1);q(".wcl",d.j).onclick=l(Ma,d)}h.onclick=l(Ma,d);h.onmouseover=(h.onmouseout=kb);}D.push(d);return d}function kb(a){if(this.className in $){this.style.backgroundPosition=a.type=="mouseout"?"":-$[this.className][0]+"px "+-$[this.className][1]+"px";}}google.sw=function(a){g=a;ib()};
})();
if(!window.gbar||!gbar.close){window.gbar={};(function(){var b=window.gbar,f,h;b.qs=function(a){var c=window.encodeURIComponent&&(document.forms[0].q||"").value;if(c)a.href=a.href.replace(/([?&])q=[^&]*|$/,function(i,g){return(g||"&")+"q="+encodeURIComponent(c)})};function j(a,c){a.visibility=h?"hidden":"visible";a.left=c+"px"}b.tg=function(a){a=a||window.event;var c=0,i,g=window.navExtra,d=document.getElementById("gbi"),e=a.target||a.srcElement;a.cancelBubble=true;if(!f){f=document.createElement(Array.every||window.createPopup?"iframe":"div");f.frameBorder="0";f.src="#";d.parentNode.appendChild(f).id="gbs";if(g)for(i in g)d.insertBefore(g[i],d.firstChild).className="gb2";document.onclick=b.close}if(e.className!="gb3")e=e.parentNode;do c+=e.offsetLeft;while(e=e.offsetParent);j(d.style,c);f.style.width=d.offsetWidth+"px";f.style.height=d.offsetHeight+"px";j(f.style,c);h=!h};b.close=function(a){h&&b.tg(a)}})();;};

