function alert1(_1){
}
if(!ANSW){
var ANSW=new Object();
}
ANSW.Balloon=function(){
var _2;
this.oldkeyup=_2;
var _3;
this.tmrIFrameGone=_3;
var _4=200;
this.blbWidth=_4;
this.autoAway=true;
this.showCloseBox=false;
this.initBalloon=function(){
if(arguments.length>0){
var _5=arguments[0];
if(_5.width!=null){
this.blbWidth=_5.width;
}
if(_5.autoAway!=null){
this.autoAway=_5.autoAway;
}
this.width=this.blbWidth;
}
};
var _6;
this.childID=_6;
this.Show=Show;
this.Hide=Hide;
this.isVisible=isVisible;
function Show(){
var _7;
var _8=0,bleft=0;
var _9=0,aleft=0;
var _a;
var _b="SE";
var _c="";
var _d="";
var _e="";
var _f=false;
var _10=ANSW.isFirefoxExtension?window._content.document:document;
_4=String(this.width)+"px";
var _11=_10.getElementById("AnswersBalloon");
alert1(" formerBalloon= "+_11);
autoAway=this.autoAway;
if(Show.arguments.length>0){
var _12=Show.arguments[0];
if(_12.title!=null){
_7=_12.title;
}
if(_12.top!=null){
_8=_12.top;
}
if(_12.left!=null){
bleft=_12.left;
}
if(_12.anchor!=null){
_a=_12.anchor;
_9=getTop(_a);
aleft=getLeft(_a);
}
if(_12.query!=null){
_c=_12.query;
}
if(_12.nafid!=null){
_d=_12.nafid;
}
if(_12.cobrand!=null){
_e=_12.cobrand;
}
if(_12.nohook!=null){
_f=true;
}
}
alert1("btop = "+_8);
if(bleft==-1&&_8==-1){
var _13=_10.getElementById("Answertip");
_13.innerHTML="<DIV class=\"answering\" >Answering...</DIV>";
var _14=_10.getElementById("AnswersAds");
var _15="";
if(ANSW.Balloon.prototype.answersURL.indexOf(":8080")!=-1){
_15="/answers";
}
if(_14!=null){
_14.src=this.answersURL+_15+"/main/tip2.jsp?s="+_c+"&wt=1";
if(typeof _e!="undefined"&&_e!=null){
_14.src+="&cobrand="+_e;
}
if(typeof _d!="undefined"&&_d!=null){
_14.src+="&nafid="+_d;
}
}
return;
}else{
this.balloonDIV=_10.createElement("DIV");
this.balloonDIV.id="AnswersBalloon";
this.balloonDIV.style.width=String(_4);
this.balloonDIV.style.position="absolute";
this.balloonDIV.style.visibility="hidden";
this.balloonDIV.style.zIndex=99999;
}
var ret=this.balloonInfrastructure(balloonBody(_7,this.showCloseBox),_b,_c,_d,_e);
if(_11){
ANSW.b5.Hide();
this.childID=_10.body.replaceChild(this.balloonDIV,_11);
}else{
this.childID=_10.body.appendChild(this.balloonDIV);
}
this.balloonDIV.innerHTML=ret;
var _17;
var _18;
if(_a!=null){
_17=aleft+bleft;
_18=_9-this.balloonDIV.offsetHeight+_8;
}else{
_17=bleft;
_18=_8-this.balloonDIV.offsetHeight;
}
alert1("balloonLeft= "+_17+" balloonTop= "+_18);
var _19=_17;
var _1a;
alert1("bAdjustedLeft= "+_19);
alert1("balloonDIV.offsetWidth= "+this.balloonDIV.offsetWidth);
alert1("balloonDIV.offsetHeight= "+this.balloonDIV.offsetHeight);
var _1b;
var _1c;
var _1d;
var _1e;
if(self.innerHeight){
_1b=self.innerWidth;
_1c=self.innerHeight;
}else{
if(_10.documentElement&&_10.documentElement.clientHeight){
_1b=_10.documentElement.clientWidth;
_1c=_10.documentElement.clientHeight;
}else{
if(_10.body){
_1b=_10.body.clientWidth;
_1c=_10.body.clientHeight;
}
}
}
if(self.pageYOffset){
_1d=self.pageXOffset;
_1e=self.pageYOffset;
}else{
if(_10.documentElement&&_10.documentElement.scrollTop){
_1d=_10.documentElement.scrollLeft;
_1e=_10.documentElement.scrollTop;
}else{
if(_10.body){
_1d=_10.body.scrollLeft;
_1e=_10.body.scrollTop;
}
}
}
alert1("clientWidth= "+_1b);
alert1("clientHeight= "+_1c);
alert1("scrollLeft= "+_1d);
alert1("scrollTop= "+_1e);
var _1f=_19-0+this.balloonDIV.offsetWidth-_1d+20;
alert1("check= "+_1f);
if(_1b-0<_1f-0){
_b="SW";
alert1("SW");
ret=this.balloonInfrastructure(balloonBody(_7,this.showCloseBox),_b,_c,_d,_e);
this.balloonDIV.innerHTML=ret;
_17=_19-this.balloonDIV.offsetWidth;
alert1("balloonLeft = "+_17);
_1a=false;
}else{
_b="SE";
_1a=true;
}
alert1("balloonLeft= "+_17+" balloonTop= "+_18);
if(_18<_1e){
if(_1a){
_b="NE";
ret=this.balloonInfrastructure(balloonBody(_7,this.showCloseBox),_b,_c,_d,_e);
this.balloonDIV.innerHTML=ret;
}else{
_b="NW";
ret=this.balloonInfrastructure(balloonBody(_7,this.showCloseBox),_b,_c,_d,_e);
this.balloonDIV.innerHTML=ret;
}
_18+=this.balloonDIV.offsetHeight;
if(_a!=null){
_18+=_a.offsetHeight;
if(document.all&&!ANSW.Balloon.prototype.isOpera){
_18+=this.balloonDIV.offsetParent.scrollTop;
}
}
}else{
alert1("1left1= "+_17+" top1= "+_18);
alert1("2left1= "+_17+" top1= "+_18);
}
if(this.showCloseBox){
if(_b=="SE"||_b=="SW"){
btnClose=this.balloonDIV.children[0].children[0].children[1].children[0].children[0].children[0].children[0].children[2].children[0];
}else{
btnClose=this.balloonDIV.children[0].children[0].children[2].children[0].children[0].children[0].children[0].children[2].children[0];
}
btnClose.onclick=this.Hide;
}
alert1("3balloonLeft= "+_17+" balloonTop= "+_18);
if(!ANSW.Balloon.prototype.isOpera){
if(_a){
var _20=ScrollOffsets(_a);
_18-=_20[0];
_17-=_20[1];
}
}
if(_17<0||_18<0||(_18+this.balloonDIV.offsetHeight-_1e-_10.body.clientHeight)>0){
var _21=_10.getElementById("AnswerTipHook");
if(_21){
_21.style.visibility="hidden";
}
if(_b.indexOf("N")==0){
_18=_1e-18;
}else{
_18=_1e;
}
_17=_1b-this.balloonDIV.offsetWidth+_1d;
}else{
if(ANSW.isFirefoxExtension){
if(_b.indexOf("E")>0){
_17-=20;
}else{
_17+=20;
}
if(_b=="SE"||_b=="SW"){
_18-=5;
}else{
_18+=5;
}
}else{
if(_b=="NW"||_b=="SW"){
_17+=15;
}
if(_b=="NW"||_b=="NE"){
_18+=10;
}
}
}
if(_f){
var _21=_10.getElementById("AnswerTipHook");
if(_21){
_21.style.visibility="hidden";
}
}
alert1("leftb= "+this.balloonDIV.style.left+" topb= "+this.balloonDIV.style.top);
alert1("4balloonLeft= "+_17+" balloonTop= "+_18);
alert1("4this.balloonDIV.offsetHeight= "+this.balloonDIV.offsetHeight+" top= "+top+" mydoc.body.clientHeight= "+_10.body.clientHeight);
this.balloonDIV.style.top=_18+"px";
this.balloonDIV.style.left=_17+"px";
alert1("lefta= "+this.balloonDIV.style.left+" topa= "+this.balloonDIV.style.top);
alert1("direction="+_b);
var _13=_10.getElementById("Answertip");
_13.style.overflow="auto";
this.SuppressSelects();
this.SuppressFlash();
this.balloonDIV.style.visibility="visible";
alert1(this.balloonDIV.style.width);
if(this.autoAway){
this.balloonDIV.onmouseover=Hide;
}else{
this.balloonDIV.onmouseover="";
}
this.tmrIFrameGone=setInterval(this.IFrameGone,400);
}
function IFrameGone(){
var _22=ANSW.isFirefoxExtension?window._content.document:document;
var ac=_22.getElementById("answertipClose");
if(ac.innerHTML=="close"){
ac.innerHTML="";
ANSW.b5.Hide();
}else{
if(ac.innerHTML=="options"){
var _24="";
if(ANSW.Balloon.prototype.answersURL.indexOf(":8080")!=-1){
_24="/answers";
}
ac.innerHTML="";
if(ANSW.isFirefoxExtension){
window.openDialog("chrome://answers/content/options.xul","1-Click Answers Options","centerscreen,chrome,modal");
}else{
window.open(ANSW.Balloon.prototype.answersURL+_24+"/main/transoptform?gwp=11");
}
}
}
}
this.IFrameGone=IFrameGone;
function isVisible(){
if(this.balloonDIV){
if(this.balloonDIV.style.visibility=="hidden"){
return false;
}else{
return true;
}
}else{
return false;
}
}
function Hide(){
clearInterval(this.tmrIFrameGone);
if(!this.balloonDIV||this.balloonDIV.style.visibility=="hidden"){
return;
}
this.balloonDIV.style.visibility="hidden";
var _25=ANSW.isFirefoxExtension?window._content.document:document;
var _26=_25.getElementById("Answertip");
_26.style.overflow="hidden";
this.RestoreSelects();
this.RestoreFlash();
}
function SuppressSelects(){
var _27=ANSW.isFirefoxExtension?window._content.document:document;
var _28=_27.getElementsByTagName("SELECT");
for(var i=0;i<_28.length;i++){
if(_28[i].balloonMember!="true"){
if(_28[i].style.visibility=="visible"||_28[i].style.visibility==""){
if(ObjectOverlap(ANSW.b5,_28[i])){
_28[i].style.visibility="hidden";
_28[i].baloonHidden=true;
}
}
}
}
}
this.SuppressSelects=SuppressSelects;
function RestoreSelects(){
var _2a=ANSW.isFirefoxExtension?window._content.document:document;
var _2b=_2a.getElementsByTagName("SELECT");
for(var i=0;i<_2b.length;i++){
if(_2b[i].baloonHidden){
_2b[i].style.visibility="visible";
_2b[i].baloonHidden=false;
}
}
}
this.RestoreSelects=RestoreSelects;
function SuppressFlash(){
var _2d=ANSW.isFirefoxExtension?window._content.document:document;
var _2e=_2d.getElementsByTagName("EMBED");
var bt=_2d.getElementById("AnswersBalloon");
for(var i=0;i<_2e.length;i++){
if(_2e[i].balloonMember!="true"){
if(_2e[i].style.visibility=="visible"||_2e[i].style.visibility==""){
if(ObjectOverlap(bt,_2e[i])){
var _31=_2e[i].getAttribute("wmode");
if(_31==null||_31=="undefined"){
_31="window";
}else{
_31=_31.toLowerCase();
}
if(_31=="window"){
_2e[i].style.visibility="hidden";
_2e[i].baloonHidden=true;
}
}
}
}
}
_2e=_2d.getElementsByTagName("OBJECT");
for(var i=0;i<_2e.length;i++){
if(_2e[i].balloonMember!="true"){
if(_2e[i].style.visibility=="visible"||_2e[i].style.visibility==""){
if(ObjectOverlap(bt,_2e[i])){
var _31=_2e[i].getAttribute("wmode");
if(_31==null||_31=="undefined"){
_31="window";
}else{
_31=_31.toLowerCase();
}
if(_31=="window"){
_2e[i].style.visibility="hidden";
_2e[i].baloonHidden=true;
}
}
}
}
}
}
this.SuppressFlash=SuppressFlash;
function RestoreFlash(){
var _32=ANSW.isFirefoxExtension?window._content.document:document;
var _33=_32.getElementsByTagName("EMBED");
for(var i=0;i<_33.length;i++){
if(_33[i].baloonHidden){
_33[i].style.visibility="visible";
_33[i].baloonHidden=false;
}
}
_33=_32.getElementsByTagName("OBJECT");
for(var i=0;i<_33.length;i++){
if(_33[i].baloonHidden){
_33[i].style.visibility="visible";
_33[i].baloonHidden=false;
}
}
}
this.RestoreFlash=RestoreFlash;
function ObjectOverlap(_35,_36){
var _37=getLeft(_35);
var _38=getTop(_35);
var _39=getLeft(_35)+_35.offsetWidth;
var _3a=getTop(_35)+_35.offsetHeight;
var _3b=getLeft(_36);
var _3c=getTop(_36);
var _3d=getLeft(_36)+_36.offsetWidth;
var _3e=getTop(_36)+_36.offsetHeight;
var _3f=(_37<_3d&&_3b<_39);
var _40=(_38<_3e&&_3c<_3a);
return (_3f&&_40);
}
function getObjLeft(_41){
return (_41.offsetParent?(getObjLeft(_41.offsetParent)+_41.offsetLeft):_41.offsetLeft);
}
function getObjTop(_42){
return (_42.offsetParent?(getObjTop(_42.offsetParent)+_42.offsetTop):_42.offsetTop);
}
function getLeft(_43){
return (getObjLeft(_43));
}
function getTop(_44){
return (getObjTop(_44));
}
function InsideObject(obj,x,y){
var _48=getTop(obj);
var _49=getLeft(obj);
var _4a=_49+obj.offsetWidth;
var _4b=_48+obj.offsetHeight;
var _4c=(x<_4a+4&&x>_49-1);
var _4d=(y<(_4b+10)&&y>(_48-10));
return (_4c&&_4d);
}
function ScrollOffsets(_4e){
var _4f=new Array(0,0);
try{
var _50=_4e.parentElement;
while(_50!=null){
if(_50.scrollTop!=null){
_4f[0]+=parseInt(_50.scrollTop,10);
_4f[1]+=parseInt(_50.scrollLeft,10);
}
_50=_50.parentElement;
}
}
catch(ex){
}
return _4f;
}
function balloonInfrastructure(_51,_52,_53,_54,_55){
var ret;
var _57="";
if(this.answersURL.indexOf(":8080")!=-1){
_57="/answers";
}
if(typeof (_55)=="undefined"||!_55){
_55="";
}
var _58="22px";
if(typeof _54!="undefined"&&_54!=null){
switch(_54){
case 5:
_58="62px";
break;
default:
_58="22px";
break;
}
}
if(typeof _55!="undefined"){
switch(_55){
case "cbs1":
_58="60px";
break;
default:
break;
}
}
var _59=" <tr id=\"sponsor\" height=\""+_58+"\">"+"    <td style=\"border-left: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandle2\" handlefor=\"AnswersBalloon\"></td>"+"    <td  id=\"AnswersFrame\" valign=top colspan=\"4\" style=\"height:100%;\"> <iframe id=\"AnswersAds\" scrolling=\"no\" style=\"margin:0px 0px 0px 1px;padding:0px;border:0px;width:99%;height:"+_58+"\" src=\""+this.answersURL+_57+"/main/tip2.jsp?s="+_53+"&wt=1&nafid="+_54+"\"></iframe>"+"    </td>"+"<td  style=\"border-right: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandle4\" handlefor=\"AnswersBalloon\"></td>"+"  </tr>";
if(typeof _55!="undefined"){
switch(_55){
case "cbs":
_59="";
break;
case "cbs1":
_55="cbs";
break;
default:
break;
}
}
switch(_52){
case "SE":
ret="<table class=\"JSBalloon\"  cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse;direction:ltr;\" id=\"AutoNumber1\">"+"  <tr class=\"handle\" id=\"AnswersHandle1\" handlefor=\"AnswersBalloon\">"+"    <td class=\"topimagecorner1\" height=\"8\" width=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cLeftTop"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"    <td class=\"topimage1\" height=\"8\" width=100% style=\"border-top:1px solid #999999; border-left-width:1px; border-right-width:1px; border-bottom-width:1px; \" colspan=\"4\"></td>"+"    <td class=\"topimagecorner1\" height=\"8\"  width=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cRightTop"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"  </tr>"+"  <tr class=\"centerrow\">"+"<td style=\"border-left: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandlea\" handlefor=\"AnswersBalloon\"></td>"+"    <td  valign=top colspan=\"4\" style=\"\">"+_51+"    </td>"+"<td  style=\"border-right: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandleb\" handlefor=\"AnswersBalloon\"></td>"+"  </tr>"+_59+"  <tr class=\"handle\" id=\"AnswersHandle3\" handlefor=\"AnswersBalloon\">"+"    <td class=\"bottomimagecorner1\" width=\"8\" height=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cLeftBottom"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"    <td  class=\"bottomimage1\" height=\"8\"  colspan=\"4\" width=\"280\"></td>"+"    <td class=\"bottomimagecorner1\" width=\"8\" height=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cRightBottom"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"  </tr>"+"  <tr >"+"    <td width=\"10\" height=\"10\"></td>"+"    <td width=\"1\" style=\"border-top: 1px solid #999999; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px\" height=\"10\"></td>"+"    <td class=\"bottomimagecorner1\"  height=\"10\" id=\"AnswerTipHook\">"+"    <img class=\"AnswerTipSouth\"  src=\""+this.JSBalloonPath+"/main/images/aSouthEast"+_55+".gif\" width=\"67\" height=\"18\"></td>"+"    <td width=100% height=\"10\" style=\"border-top: 1px solid #999999; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px\"></td>"+"    <td width=\"70\" height=\"10\" style=\"border-top: 1px solid #999999; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px\"></td>"+"    <td width=\"10\" height=\"10\"></td>"+"  </tr>"+"</table>";
break;
case "SW":
ret="<table class=\"JSBalloon\"  cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse;direction:ltr;\"  id=\"AutoNumber1\" >"+"  <tr class=\"handle\" id=\"AnswersHandle5\" handlefor=\"AnswersBalloon\">"+"    <td class=\"topimagecorner1\" height=\"1\" width=\"10\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cLeftTop"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"    <td class=\"topimage1\" height=\"8\" width=179 style=\"border-top:1px solid #999999; border-left-width:1px; border-right-width:1px; border-bottom-width:1px;\"  colspan=\"4\"></td>"+"    <td class=\"topimagecorner1\" height=\"8\"  width=\"11\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cRightTop"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"  </tr>"+"  <tr class=\"centerrow\">"+"<td style=\"border-left: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandlec\" handlefor=\"AnswersBalloon\"></td>"+"    <td valign=top colspan=\"4\" style=\"\">"+_51+"    </td>"+"<td  style=\"border-right: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandled\" handlefor=\"AnswersBalloon\"></td>"+"  </tr>"+_59+"  <tr class=\"handle\" id=\"AnswersHandle6\" handlefor=\"AnswersBalloon\">"+"    <td class=\"bottomimagecorner1\" width=\"10\" height=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cLeftBottom"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"    <td class=\"bottomimage1\" height=\"8\"  colspan=\"4\" width=\"179\"></td>"+"    <td class=\"bottomimagecorner1\" width=\"11\" height=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cRightBottom"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"  </tr>"+"  <tr>"+"    <td width=\"10\" height=\"10\"></td>"+"    <td width=\"70\" style=\"border-top: 1px solid #999999; border-left-width:1px; border-right-width:1px; border-bottom-width:1px\" height=\"10\"></td>"+"    <td  height=\"10\" style=\"border-left-width: 1px; border-right-width: 1px; border-top: 1px solid #999999; border-bottom-width: 1px\" width=\"100%\">"+"    </td>"+"    <td  class=\"bottomimagecorner1\" align=\"right\" id=\"AnswerTipHook\">"+"    <img class=\"AnswerTipSouth\" src=\""+this.JSBalloonPath+"/main/images/aSouthWest"+_55+".gif\" width=\"67\" height=\"18\"></td>"+"    <td width=\"1\" height=\"10\" style=\"border-top: 1px solid #999999;\"></td>"+"    <td width=\"10\" height=\"10\"></td>"+"  </tr>"+"</table>";
break;
case "NE":
ret="<table class=\"JSBalloon\"  cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse;direction:ltr;\"  id=\"AutoNumber1\" >"+"   <tr>"+"    <td width=\"10\" height=\"9\"></td>"+"    <td width=\"1\" style=\"border-bottom:1px solid #999999; \" height=\"9\"></td>"+"    <td  class=\"topimagecorner1\" id=\"AnswerTipHook\" height=\"9\" valign=\"bottom\">"+"    <img class=\"AnswerTipNorth\" src=\""+this.JSBalloonPath+"/main/images/aNorthEast"+_55+".gif\" width=\"67\" height=\"18\"></td>"+"    <td width=100% height=\"9\" style=\"border-bottom:1px solid #999999; \"></td>"+"    <td width=\"70\" height=\"9\" style=\"border-bottom:1px solid #999999;\"></td>"+"    <td width=\"10\" height=\"9\"></td>"+"  </tr>"+"  <tr class=\"handle\" id=\"AnswersHandle7\" handlefor=\"AnswersBalloon\">"+"    <td class=\"topimagecorner1\" height=\"8\" width=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cLeftTop"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"    <td class=\"topimage1\" height=\"8\" width=100% colspan=\"4\" ></td>"+"    <td class=\"topimagecorner1\" height=\"8\"  width=\"10\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cRightTop"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"  </tr>"+"  <tr class=\"centerrow\">"+"<td style=\"border-left: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandlee\" handlefor=\"AnswersBalloon\"></td>"+"    <td valign=top colspan=\"4\" style=\"\">"+_51+"    </td>"+"<td  style=\"border-right: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandlef\" handlefor=\"AnswersBalloon\"></td>"+"  </tr>"+_59+"  <tr class=\"handle\" id=\"AnswersHandle9\" handlefor=\"AnswersBalloon\">"+"    <td class=\"bottomimagecorner1\" width=\"8\" height=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cLeftBottom"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"    <td class=\"bottomimage1\" height=\"8\" style=\"border-bottom:1px solid #999999; border-left-width:1px; border-right-width:1px; border-top-width:1px\" colspan=\"4\" width=\"280\" ></td>"+"    <td class=\"bottomimagecorner1\" width=\"8\" height=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cRightBottom"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"  </tr>"+"</table>";
break;
case "NW":
ret="<table class=\"JSBalloon\"  cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse;direction:ltr;\"  id=\"AutoNumber1\" >"+"  <tr>"+"    <td width=\"10\" height=\"10\"></td>"+"    <td width=\"70\" style=\"border-bottom:1px solid #999999;  border-left-width:1px; border-right-width:1px; \" height=\"10\"></td>"+"    <td  height=\"10\" style=\"border-bottom:1px solid #999999; border-left-width: 1px; border-right-width: 1px; \" width=\"100%\">"+"    </td>"+"    <td  class=\"topimagecorner1\" align=\"right\" valign=\"bottom\" id=\"AnswerTipHook\">"+"    <img class=\"AnswerTipNorth\"  src=\""+this.JSBalloonPath+"/main/images/aNorthWest"+_55+".gif\" width=\"67\" height=\"18\"></td>"+"    <td width=\"1\" height=\"10\" style=\"border-bottom:1px solid #999999;\"></td>"+"    <td width=\"10\" height=\"10\"></td>"+"  </tr>"+"  <tr class=\"handle\" id=\"AnswersHandle10\" handlefor=\"AnswersBalloon\">"+"    <td class=\"topimagecorner1\" height=\"8\" width=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cLeftTop"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"    <td class=\"topimage1\" height=\"8\" width=179 colspan=\"4\" ></td>"+"    <td class=\"topimagecorner1\" height=\"8\"  width=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cRightTop"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"  </tr>"+"  <tr class=\"centerrow\">"+"<td style=\"border-left: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandleg\" handlefor=\"AnswersBalloon\"></td>"+"    <td valign=top colspan=\"4\" style=\"\">"+_51+"    </td>"+"<td  style=\"border-right: 1px solid #999999;\" width=\"3\" height=100% class=\"handle\" id=\"AnswersHandleh\" handlefor=\"AnswersBalloon\"></td>"+"  </tr>"+_59+"  <tr class=\"handle\" id=\"AnswersHandle12\" handlefor=\"AnswersBalloon\">"+"    <td class=\"bottomimage1\" width=\"8\" height=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cLeftBottom"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"    <td class=\"bottomimage1\" height=\"8\" style=\"border-bottom:1px solid #999999; border-left-width:1px; border-right-width:1px; border-top-width:1px\" colspan=\"4\" width=\"179\" ></td>"+"    <td class=\"bottomimage1\" width=\"8\" height=\"8\">"+"    <img border=\"0\" src=\""+this.JSBalloonPath+"/main/images/cRightBottom"+_55+".gif\" width=\"8\" height=\"8\"></td>"+"  </tr>"+"</table>";
break;
}
return ret;
}
this.balloonInfrastructure=balloonInfrastructure;
function balloonBody(_5a,_5b){
body="";
return "<table id=\"Balloontable1\" class=\"donotmoveme\" style=\"width:99%;\"><TR><TD> <DIV id=\"Answertip\" style=\"overflow:auto;height:248px;width:100%\";>"+body+"</DIV> <DIV id=\"answertipClose\" style=\"display:none;\" ></DIV></TD></TR></table>";
}
function SendQuery(obj,_5d,_5e){
var top=getTop(obj);
var _60=getLeft(obj);
var _61=obj.innerHTML.replace(/<br>/gi," ").replace(/<[^>]+>/g,"");
this.FireQuery(_61,top,_60,-1,_5d,_5e);
return false;
}
this.SendQuery=SendQuery;
function FireQuery(_62,top,_64,fw,_66,_67){
var _68=encodeURIComponent(_62);
var _69=getFocusWord(_62,fw);
this.Show({title:"",top:top,left:_64,query:_69,nafid:ANSW.nafid,cobrand:ANSW.cobrand,nohook:_67});
if(isBoolPrefEnabled("javascript.enabled")){
ensureScriptIsLoaded(_68,fw,ANSW.nafid,_66,ANSW.cobrand);
}else{
var _6a=ANSW.isFirefoxExtension?window._content.document:document;
if(typeof answertipCss=="undefined"||answertipCss==null){
loadCSS();
}
var _6b=_6a.getElementById("Answertip");
_6b.innerHTML="You need to enable Javascript to have this feature working. Hit ESC to close the AnswerTip.";
}
}
this.FireQuery=FireQuery;
String.prototype.trim=function(){
return this.replace(/^\s+/g,"").replace(/\s+$/g,"");
};
function getFocusWord(_6c,fw){
if(fw<0){
return _6c;
}else{
var _6e=_6c.trim();
var _6f=_6e.split(" ");
if((_6f.length-1)>=fw){
return _6f[fw];
}else{
return _6c;
}
}
}
function isBoolPrefEnabled(_70){
if(ANSW.isFirefoxExtension){
var _71=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);
return _71.getBoolPref(_70);
}else{
return true;
}
}
function ensureScriptIsLoaded(_72,fw,_74,_75,_76){
var _77=ANSW.isFirefoxExtension?window._content.document:document;
var _78=_77.getElementById("answertipScript");
var _79=_77.getElementById("answertipCSS");
var _7a=_77.getElementById("answertipSound");
var _7b=_77.getElementsByTagName("head")[0];
var _7c;
var _7d;
var _7e="";
var src="";
_7c=_77.createElement("script");
_7c.id="answertipScript";
_7c.type="text/javascript";
if(ANSW.isFirefoxExtension){
ANSW.Balloon.prototype.answersURL="http://"+server;
}
if(ANSW.Balloon.prototype.answersURL.indexOf(":8080")!=-1){
_7e="/answers";
}
src=ANSW.Balloon.prototype.answersURL+_7e+"/main/answertip.jsp?";
if(typeof _75!="undefined"&&_75!=null&&_75!=""){
src+="tname="+_75;
}else{
src+="s="+_72;
}
src+="&fw="+fw+"&gwp=18";
if(ANSW.isFirefoxExtension){
src+="&o=0";
}else{
src+="&o=2";
}
var _80=(document.charset?("&encoding="+document.charset):"");
src+=_80;
if(typeof _74!="undefined"&&_74!=null&&_74!=""){
src+="&nafid="+_74;
}
if(typeof _76!="undefined"&&_76!=null&&_76!=""){
src+="&cobrand="+_76;
}
_7c.src=src;
if(_78){
if(ANSW.b5.isIE){
_78.src=src;
}else{
_7b.replaceChild(_7c,_78);
}
}else{
_7b.appendChild(_7c);
}
if(!(_7a)){
_7d=_77.createElement("script");
_7d.id="answertipSound";
_7d.type="text/javascript";
_7d.src=ANSW.Balloon.prototype.JSBalloonPath+"/main/lookup/sound.js";
_7b.appendChild(_7d);
}
if(typeof _79=="undefined"||_79==null){
loadCSS();
}
if(typeof _76!="undefined"&&_76!=null&&_76!=""){
if(_76.indexOf("cbs")==0){
_76="cbs";
}
var _81=_77.getElementById("answertipCSS"+_76);
if(typeof (_81)=="undefined"||_81==null){
loadSingleCSS("web_tip_"+_76+".css","answertipCSS"+_76);
}
}
}
function loadCSS(){
loadSingleCSS("web_tip.css","answertipCSS");
}
this.loadCSS=loadCSS;
function loadSingleCSS(_82,id){
var _84=ANSW.isFirefoxExtension?window._content.document:document;
var _85=_84.getElementsByTagName("head")[0];
var css;
var _87="";
css=_84.createElement("link");
css.type="text/css";
css.rel="stylesheet";
css.href=ANSW.Balloon.prototype.JSBalloonPath+"/main/lookup/"+_82;
css.id=id;
_85.appendChild(css);
}
this.loadSingleCSS=loadSingleCSS;
function loadScript(_88,id){
var _8a=ANSW.isFirefoxExtension?window._content.document:document;
var _8b=_8a.getElementsByTagName("head")[0];
var _8c;
var _8d="";
if(ANSW.Balloon.prototype.answersURL.indexOf(":8080")!=-1){
_8d="/answers";
}
_8c=_8a.createElement("script");
_8c.type="text/javascript";
_8c.src=ANSW.Balloon.prototype.JSBalloonPath+_8d+"/main/"+_88;
_8c.id=id;
_8b.appendChild(_8c);
return false;
}
this.loadScript=loadScript;
function onkeyup(evt){
if(!evt&&window.event){
evt=window.event;
}
var _8f=evt.keyCode;
if(_8f==27){
ANSW.b5.Hide();
}
if(ANSW.isFirefoxExtension){
if(_8f==18&&leftbuttondown==true){
leftbuttondown=false;
evt.stopPropagation();
evt.preventDefault();
evt.preventBubble();
return false;
}
}
if(ANSW.Balloon.prototype.isIE||ANSW.Balloon.prototype.isOpera){
if(ANSW.b5.oldkeyup!=null){
return ANSW.b5.oldkeyup(evt);
}
}
}
this.onkeyup=onkeyup;
function mdown(evt){
if(ANSW.b5.isVisible()){
if(!evt&&window.event){
evt=window.event;
}
var el=ANSW.Balloon.prototype.isFirefox?evt.target:evt.srcElement;
ANSW.b5.checkDown(evt,el);
}
}
this.mdown=mdown;
function checkDown(evt,_93){
var el=this.getReal(_93);
if(ANSW.Balloon.prototype.isIE){
var _95="";
_95=document.body.componentFromPoint(evt.clientX,evt.clientY);
if(_95.indexOf("scrollbar")==0){
this.moveme_onmousedown(evt,el);
}else{
if(el.id==null){
this.Hide();
}else{
if(el.id=="AnswersBalloon"||el.id=="AnswersSponsor"){
this.moveme_onmousedown(evt,el);
}else{
if(el.getAttribute("handlefor")==null||el.getAttribute("handlefor")==""){
this.Hide();
}else{
this.moveme_onmousedown(evt,el);
}
}
}
}
}else{
var _96=ANSW.isFirefoxExtension?window._content.document:document;
if(_96.documentElement.scrollWidth<evt.pageX||_96.documentElement.scrollHeight<evt.pageY){
this.moveme_onmousedown(evt,el);
}else{
if(el.id==null||el.id==""){
this.Hide();
}else{
if(el.id=="AnswersBalloon"||el.id=="AnswersSponsor"){
this.moveme_onmousedown(evt,el);
}else{
if(el.getAttribute("handlefor")==null||el.getAttribute("handlefor")==""){
this.Hide();
}else{
this.moveme_onmousedown(evt,el);
}
}
}
}
}
}
this.checkDown=checkDown;
var _97=null;
var tx;
var ty;
var ie5=document.all!=null&&document.getElementsByTagName!=null;
this.ie5=ie5;
function getReal(el){
temp=el;
while((temp!=null)&&(temp.tagName!="BODY")&&(temp.tagName!="window")){
if(temp.id==null||temp.id.indexOf("AnswersHandle")==0||temp.id.indexOf("AnswersBalloon")==0||temp.id.indexOf("AnswersSponsor")==0){
el=temp;
break;
}
if(ANSW.Balloon.prototype.isIE){
temp=temp.parentElement;
}else{
temp=temp.parentNode;
}
}
return el;
}
this.getReal=getReal;
function moveme_onmousedown(evt,el){
var _9e=ANSW.isFirefoxExtension?window._content.document:document;
var tmp=el.getAttribute("handlefor");
if(tmp==null||tmp==""){
_97=null;
return true;
}else{
_97=_9e.getElementById(tmp);
}
ty=ANSW.Balloon.prototype.isIE?evt.clientY-this.getTopPos(_97):evt.pageY-getTopPos(_97);
tx=ANSW.Balloon.prototype.isIE?evt.clientX-this.getLeftPos(_97):evt.pageX-getLeftPos(_97);
if(ANSW.Balloon.prototype.isIE){
evt.returnValue=false;
evt.cancelBubble=true;
}else{
evt.stopPropagation();
evt.preventDefault();
evt.preventBubble();
return false;
}
}
this.moveme_onmousedown=moveme_onmousedown;
function moveme_onmouseup(){
if(_97){
_97=null;
}
}
this.moveme_onmouseup=moveme_onmouseup;
function moveme_onmousemove(evt){
if(_97){
if(!evt&&window.event){
evt=window.event;
}
if(ANSW.Balloon.prototype.isIE){
if(evt.clientX>=0&&evt.clientY>=0){
_97.style.left=(evt.clientX-tx)+"px";
_97.style.top=(evt.clientY-ty)+"px";
}
evt.returnValue=false;
evt.cancelBubble=true;
}else{
if(evt.pageX>=0&&evt.pageY>=0){
_97.style.left=(evt.pageX-tx)+"px";
_97.style.top=(evt.pageY-ty)+"px";
}
evt.stopPropagation();
evt.preventDefault();
evt.preventBubble();
return false;
}
}
}
this.moveme_onmousemove=moveme_onmousemove;
function getLeftPos(el){
if(this.ie5&&!ANSW.Balloon.prototype.isOpera){
if(el.currentStyle.left=="auto"){
return 0;
}else{
return parseInt(el.currentStyle.left);
}
}else{
return ANSW.Balloon.prototype.isIE?el.style.pixelLeft:parseInt(el.style.left);
}
}
this.getLeftPos=getLeftPos;
function getTopPos(el){
if(this.ie5&&!ANSW.Balloon.prototype.isOpera){
if(el.currentStyle.top=="auto"){
return 0;
}else{
return parseInt(el.currentStyle.top);
}
}else{
return ANSW.Balloon.prototype.isIE?el.style.pixelTop:parseInt(el.style.top);
}
}
this.getTopPos=getTopPos;
function onRightClick(evt){
if(!evt&&window.event){
evt=window.event;
}
var el=ANSW.Balloon.prototype.isFirefox?(ANSW.isFirefoxExtension?evt.originalTarget:evt.target):evt.srcElement;
var _a5=ANSW.b5.getReal(el);
if(_a5.id=="AnswersBalloon"){
if(ANSW.Balloon.prototype.isFirefox){
evt.preventDefault();
evt.stopPropagation();
evt.preventBubble();
return false;
}else{
evt.returnValue=false;
evt.cancelBubble=true;
return false;
}
}
return true;
}
this.onRightClick=onRightClick;
};
ANSW.isFirefoxExtension=false;
ANSW.b5=new ANSW.Balloon();
ANSW.b5.initBalloon({width:490,autoAway:false});
if(!ANSW.getJSHost){
ANSW.getJSHost=function(_a6){
var _a7=null;
var _a8=document.getElementsByTagName("script");
var re=/\s*(https?:\/\/[^\/]*)\//;
for(var i=0;i<_a8.length;i++){
var src=_a8.item(i).src;
if(src.indexOf(_a6)>-1){
if(src.match(re)){
_a7=RegExp.$1;
}else{
_a7=location.protocol+"//"+location.host;
}
break;
}
}
if(_a7==null||_a7=="http://site.answers.com"||_a7=="http://site1.answers.com"){
_a7="http://www.answers.com";
}
return _a7;
};
}
if(ANSW.answersURL){
ANSW.Balloon.prototype.answersURL=ANSW.Balloon.prototype.JSBalloonPath=ANSW.answersURL;
}else{
if(!ANSW.Balloon.prototype.answersURL){
var host=ANSW.getJSHost("webtip.js");
ANSW.Balloon.prototype.answersURL=host;
if(host=="http://www.answers.com"){
ANSW.Balloon.prototype.JSBalloonPath="http://site.answers.com";
}else{
ANSW.Balloon.prototype.JSBalloonPath=host;
}
}
}
ANSW.Balloon.prototype.isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);
ANSW.Balloon.prototype.isFirefox=(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1);
ANSW.Balloon.prototype.isIE=(navigator.userAgent.toLowerCase().indexOf("msie")!=-1);
ANSW.Balloon.prototype.balloonDIV=0;
ANSW.b5.oldkeyup=document.onkeyup;
if(ANSW.b5.isIE||ANSW.b5.isOpera){
document.onkeyup=ANSW.b5.onkeyup;
document.onmousedown=ANSW.b5.mdown;
document.onmousemove=ANSW.b5.moveme_onmousemove;
document.onmouseup=ANSW.b5.moveme_onmouseup;
document.oncontextmenu=ANSW.b5.onRightClick;
}else{
document.addEventListener("keyup",ANSW.b5.onkeyup,true);
document.addEventListener("mousemove",ANSW.b5.moveme_onmousemove,false);
if(ANSW.isFirefoxExtension==false){
document.addEventListener("mousedown",ANSW.b5.mdown,false);
document.addEventListener("mouseup",ANSW.b5.moveme_onmouseup,false);
document.addEventListener("contextmenu",ANSW.b5.onRightClick,true);
}
}
ANSW.b5.loadCSS();

