(function(){
function H(a,b,c){var d="on"+b;
if(a.addEventListener){a.addEventListener(b,c,false)
}else if(a.attachEvent){a.attachEvent(d,c)}
else{
	var f=a[d];a[d]=function(){
		var e=f.apply(this,arguments),h=c.apply(this,arguments);
		return e==undefined?h:(h==undefined?e:h&&e)}}};
		var l=window,p=document,ha,P,D,n,V,J="",M=null,y=null,v=null,B=-1,R,g,s,u,C=null,r=null,x,F,ma={},m=null,X,G=0,K=0,U=0,A=null,S,I=false,$=false,da,L;
		{var xa=navigator.userAgent.toLowerCase();da=xa.indexOf("opera")!=-1;
		L=xa.indexOf("msie")!=-1&&!da}var Q=null,ya=new RegExp("^[\\s\\u1100-\\u11FF\\u3040-\\u30FF\\u3130-\\u318F\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFF\\uAC00-\\uD7A3\\uF900-\\uFAFF\\uFF65-\\uFFDC]+$"),j="jmazon-ac-",la=true;
});
(function(){
function v(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 r="/images/jmazon_toolbar_animation.png",t=52,y=37,w=75,u=100;
function k(c,d,b,a,f){
	return{
	url:c,name:d,tooltip:b,color:a,yAdjust:f
	}
	}
	var l=[k("/love/loveIndex.php","Romance","Happiness","#ff5be4",[2,5]),
		   k("/business/businessIndex.php","Business","Success","#005984",[3,7]),
		   k("/leisure/leisureIndex.php","Leisure","Happy","#54a70d",[2,5])],
		  m=[];
function s(c,d){
	while(d&&c!=d){
		d=d.parentNode}return d==c
		}
		function x(c,d){
			return function(b){
				b=b||window.event;var a=m[d],f=c=="mouseover",g=b.target||b.srcElement,e=b.relatedTarget||(f?b.fromElement:b.toElement),h=!e||s(a.element,e),j=s(a.element,g);
				if(f&&!h||!f&&(!e||j&&!h)){var i=a.icon;i.mouseTimeout=window.clearTimeout(i.mouseTimeout);var p=f?1:-1;if(i.b!=p){i.mouseTimeout=window.setTimeout(i.e(p,undefined),f?u/3:u)}}}}function n(c,d,b){v(c,d,x(d,b))}function q(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>',j="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"><div style="'+j+'"></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="'+j+'"></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:transparent url('+r+") no-repeat scroll -260px "+-c.spriteCoordinateList[0].y+'px"></div></div></a></div>';this.h=a.getElementsByTagName("span")[0];document.body.appendChild(a);this.element=a.firstChild;
var i=m.length;m.push({icon:c,element:this.element});n(this.element,"mouseover",i);n(this.element,"mouseout",i)}q.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 o(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 q(this,a,f);this.b=-1;this.a=1;var g=m.length;m.push({icon:this,element:c});n(c,"mouseover",g);n(c,"mouseout",g)}o.prototype.e=function(c,d){var b=this;return function(){b.f(c,d)}};o.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),w)}};v(window,"load",function(){try{document.execCommand("BackgroundImageCache",false,true)}catch(c){}var d='<table style="margin:0.2em auto;border-collapse:collapse;line-height:1.4em" cellpadding="3" cellspacing="2" border="0"><tr>';
for(var b=0;b<l.length;++b){var a=l[b];var f=[],g=y*b;for(var e=0;e<7;++e){if(e>4){f.push({x:t*4,y:g-a.yAdjust[e-5]})}else{f.push({x:t*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 style="padding: 0pt 3.35em 0pt 3em;"><div style="width:52px;height:37px;margin:.5em auto;cursor:pointer;cursor:hand;background: transparent url('+
r+") 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 j=h.getElementsByTagName("a");for(var b=0;b<j.length;++b){new o(j[b],l[b].coordinates,l[b].color,l[b].url,l[b].tooltip)}});
})();
