if(typeof TGN=="undefined"){var TGN={}}if(typeof TGN.Util=="undefined"){TGN.Util={}}TGN.Util.HoverTip=function(){this.init()};TGN.Util.HoverTip.tipHideTimer=null;TGN.Util.HoverTip.tipShowTimer=null;TGN.Util.HoverTip.tipHideTimout=0;if(typeof setCookie=="undefined"){document.write("<script type='text/javascript' src='http://c.mfcreative.com/js/utility.js'> <\/script>")}TGN.Util.HoverTip.tip=null;TGN.Util.HoverTip.prototype.init=function(){this.panel=new YAHOO.widget.Panel("div_hoverTip",{fixedcenter:false,underlay:false,close:true,modal:false,visible:false,zIndex:1100,draggable:false});this.panel.setHeader("");this.panel.setBody("");this.panel.setFooter("");this.panel.cfg.getProperty("strings").close=" ";this.panel.cfg.setProperty("zIndex",1100);this.panel.render(document.body);document.getElementById("div_hoverTip").className="hovertip"};TGN.Util.HoverTip.CurrTip=null;TGN.Util.HoverTip.prototype.show=function(){if(TGN.Util.HoverTip.CurrTip!=null&&TGN.Util.HoverTip.CurrTip==this.elementId&&this.panel.cfg.getProperty("visible")){return}TGN.Util.HoverTip.CurrTip=this.elementId;this.panel.setHeader("<h3>"+this.title+"</h3>");var e='<div id="knub"></div><div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div><div id="tp_content" class="content">'+this.body+"</div>";this.panel.setBody(e);this.panel.cfg.setProperty("context",[this.elementId,this.tAlign,this.eAlign]);if(this.width>0){document.getElementById("div_hoverTip").style.width=this.width+"px";document.getElementById("tp_content").style.width=this.width-26+"px";document.getElementById("tp_content").style.marginLeft="-"+(this.width-14)+"px";document.getElementById("tp_content").style.paddingLeft="6px";document.getElementById("tp_content").style.paddingRight="6px";document.getElementById("tp_bd").style.marginLeft=this.width-14+"px"}var a="knub";if(this.tAlign[1]=="r"){var b=document.getElementById(a);b.style.background="url(i/tip_knub_r.png) no-repeat 0 0;";var g=YAHOO.util.Dom.getXY(this.elementId);document.getElementById("div_hoverTip_c").style.left=(g[0]-this.width-30)+"px"}document.getElementById("div_hoverTip").style.display="block";document.getElementById(a).style.top=(0.8*((document.getElementById("div_hoverTip").scrollHeight/2)-(23)))+"px";document.getElementById("div_hoverTip").style.top=(0.8*(0-((document.getElementById("div_hoverTip").scrollHeight/2)-(document.getElementById(this.elementId).scrollHeight/2))))+"px";this.panel.show();var f=document.getElementById(this.elementId);if(TGN.Util.HoverTip.tipHideTimout>=0&&f.tagName=="INPUT"){function c(h){return(function(){TGN.Util.HoverTip.close();YAHOO.util.Event.removeListener(h,"blur")})}function d(h,i){return(function(){document.getElementById(i).focus();YAHOO.util.Event.addListener(i,"blur",c(i))})}setTimeout(d(this.panel,this.elementId),100)}};TGN.Util.HoverTip.close=function(){if(null!=TGN.Util.HoverTip.tip&&null!=TGN.Util.HoverTip.tip.panel&&TGN.Util.HoverTip.tip.panel.cfg.getProperty("visible")){TGN.Util.HoverTip.tip.panel.hide()}};TGN.Util.HoverTip.showHoverTip=function(a,h,f,i,d,k,b,e,g){TGN.Util.HoverTip.stopHideHoverTipTimer();if(g!=null&&typeof g=="number"&&g>0){clearInterval(TGN.Util.HoverTip.tipShowTimer);TGN.Util.HoverTip.tipShowTimer=setInterval(function(){TGN.Util.HoverTip.showHoverTip(a,h,f,i,d,k,b,e,0)},g);return}if(e==null||typeof e!="number"||e<1){e=0}if(TGN.Util.HoverTip.tip==null){TGN.Util.HoverTip.tip=new TGN.Util.HoverTip();if(e>0){YAHOO.util.Event.addListener(document.getElementById("div_hoverTip"),"mouseout",TGN.Util.HoverTip.startHideHoverTipTimer)}if(g>0){YAHOO.util.Event.addListener(document.getElementById("div_hoverTip"),"mouseover",TGN.Util.HoverTip.stopHideHoverTipTimer)}}if(e>0){TGN.Util.HoverTip.tipHideTimout=e}if(d==null||typeof d=="undefined"||d.length<1){d="tr"}if(k==null||typeof k=="undefined"||k.length<1){k="tl"}if(i==null||typeof i=="undefined"||i.length<1){i="Get Better Matches"}if(b==null||typeof b=="undefined"||b<1){b=200}TGN.Util.HoverTip.tip.elementId=a;TGN.Util.HoverTip.tip.body=f;TGN.Util.HoverTip.tip.title=i;TGN.Util.HoverTip.tip.eAlign=d;TGN.Util.HoverTip.tip.tAlign=k;TGN.Util.HoverTip.tip.width=b;var j;if(h=="name"||h=="date"||h=="place"){j=getDictionaryCookie("hvt",h);if(j==1){return}var c=new Date();c.setFullYear(c.getFullYear()+20,0,14);setDictionaryCookie("hvt",h,1,"",c)}else{j=getDictionaryCookie("hvt",h);if(j==1){return}}TGN.Util.HoverTip.tip.show()};TGN.Util.HoverTip.turnHoverTipsOn=function(){var a=new Date();a.setFullYear(a.getFullYear()+20,0,14);setDictionaryCookie("hvt","name",0,"",a);setDictionaryCookie("hvt","date",0,"",a);setDictionaryCookie("hvt","place",0,"",a)};TGN.Util.HoverTip.startHideHoverTipTimer=function(a){if(a==null||typeof a!="number"||a.length<1){a=TGN.Util.HoverTip.tipHideTimout}clearInterval(TGN.Util.HoverTip.tipHideTimer);clearInterval(TGN.Util.HoverTip.tipShowTimer);if(TGN.Util.HoverTip.tip!=null&&typeof TGN.Util.HoverTip.tip!="undefined"){TGN.Util.HoverTip.tipHideTimer=setInterval(TGN.Util.HoverTip.tip.close,a)}};TGN.Util.HoverTip.HideKWTips=function(){setDictionaryCookie("hvt","kw",1,"","");location.reload(true)};TGN.Util.HoverTip.stopHideHoverTipTimer=function(){clearInterval(TGN.Util.HoverTip.tipHideTimer);clearInterval(TGN.Util.HoverTip.tipShowTimer)};document.write('<div id="div_hoverTip" class="hovertip" style="display:none"><div id="tp_bd" class="bd"></div></div>');