/*  Browser Tools (bt) v 1.5a
 *
 *  (C) Copyright 2000-2003, Creativyst, Inc.
 *           ALL RIGHTS RESERVED
*/


/*
 * ThrowAwayEmails:
 *   Add/remove any you'd like in this list.  If you add lines
 *   be sure and do it with += which means to append instead
 *   of assign.  Also, don't forget to include a space at the
 *   start so there is a space between the first one and the
 *   last one from the line above.
 *
*/ 
var ThrowAwayEmails = "hotmail.com yahoo.com hotbot.com";
ThrowAwayEmails += " excite.com netscape.net";



var IsNSobs = 0; var IsIEobs = 0; IsIEobs = (document.all) ? 1:0; if( !IsIEobs ) IsNSobs = (document.layers) ? 1:0; var btBn2CT = 0; var isdomCT = 0; var IsMouse = 0; var MouseTime = 40; var MouseVis = 0; var MPx = -1; var MPy = -1; var TAEmailsBeenUCased = 0; function ClientType()
{ var agt=navigator.userAgent.toLowerCase(); if( btBn2CT ) { if( btBn2CT < 0 ) { btBn2CT = 0; return(0);}
return(btBn2CT);}
if(document.getElementById) { isdomCT = 1;}
if( (agt.indexOf("mozilla") != -1) &&
(agt.indexOf("spoofer") == -1) &&
(agt.indexOf("compatible") == -1) ) { if(agt.indexOf("gecko") != -1) { btBn2CT = 30; return(30);}
btBn2CT = 10; return(10);}
else if( agt.indexOf("msie") != -1 ) { btBn2CT = 1; return(1);}
else if(agt.indexOf("opera") != -1) { btBn2CT = 20; return(20);}
btBn2CT = -1; return(0);}
function IsIE()
{ var i; if(btBn2CT) { if(btBn2CT == 1) { return(1);}
return(0);}
i = ClientType(); if(i == 1) { return(1);}
return(0);}
function IsNS()
{ var c; if(btBn2CT) { if(btBn2CT == 10) { return(1);}
return(0);}
c = ClientType(); if(c == 10) { return(1);}
return(0);}
function IsDOM()
{ var i; if(btBn2CT) { return(isdomCT);}
i = ClientType(); return(isdomCT);}
function CookieGet(name)
{ if(document.cookie == "") return(null); var pe = document.cookie; var r = name + "="; var begin = pe.indexOf("; " + r); if(begin == -1) { begin = pe.indexOf(r); if(begin != 0) return null;} else
begin += 2; var end = document.cookie.indexOf(";", begin); if(end == -1/*(*/) { end = pe.length;}
return unescape(pe.substring(begin + r.length, end));}
function CookieDelete(name, path, domain)
{ if(CookieGet(name)) /*c*/ { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";}
}
function CookieSet(name, value, expires, path, domain, secure)
{ var curCookie = name + "=" + escape(value) + ( (expires) ? ("; expires=" + expires.toGMTString()) : "" ) + ( (path) ? ("; path=" + path) : "" ) + ( (domain) ? ("; domain=" + domain) : "" ) + ( (secure) ? "; secure" : "" ); document.cookie = curCookie;}
function VisitCookie(CounterNumber,days,debounce)
{ var dc,NDays,NHours,CNum,nnn; var wc,sc,pc,lastidx; var Vis = 0; V1c2p = new Array(); V1c2s = new Array(); var ChangeMade; var ED1 = new Date(); var ED2 = new Date(); DateFix(ED1); DateFix(ED2); V1c2s[105] = "0"; for(i = 0;i < 105;i++) { V1c2s[i] = "0";}
sc = ""; if(debounce < 0) { for(i = 0;i < 105;i++) { sc += V1c2s[i]; sc += "**";}
CookieSet("VCs",sc,null,"/");}
if(CounterNumber) { if(CounterNumber < 0) { CounterNumber = 0;}
if(CounterNumber > 99) { CounterNumber = 99;}
CNum = CounterNumber + 5;}
else { CNum = 0 + 5;}
if(days) { if(days < 1) { days = 60;}
if(days > 2000) { days = 1000;}
NDays = days;}
else { NDays = 60;}
if(debounce/*)*/) { if(debounce > 48) debounce = 48; NHours = debounce;}
else { NHours = 0;}
sc = CookieGet("VCs"); if(sc) { V1c2s = sc.split("**",150);}
pc = CookieGet("VCp"); if(pc) { V1c2p = pc.split("**",150);}
ChangeMade = 0; if(CounterNumber) { if(V1c2s[0] == "0") { V1c2s[0] = "1"; V1c2p[0] = CounterNumber; ChangeMade = 1;}
}
if(V1c2s[1] == "0") { V1c2s[1] = "1"; V1c2p[1] = document.referrer; ChangeMade = 1;}
for(i = 2;i < 5;i++) { V1c2p[i] = " ";}
nnn = 0; if(V1c2s[5] == 0) { V1c2s[5] = "1"; if(!V1c2p[5]) V1c2p[5] = "0"; nnn = eval(V1c2p[5]); nnn++; V1c2p[5] = nnn; ChangeMade = 1;}
if(V1c2s[CNum] == 0) { V1c2s[CNum] = "1"; if(!V1c2p[CNum]) V1c2p[CNum] = "0"; nnn = eval(V1c2p[CNum]); if( isNaN(nnn) ) { nnn = 0;}
nnn++; V1c2p[CNum] = nnn; ChangeMade = 1;}
if(ChangeMade) { sc = ""; for(i = 0;i < V1c2s.length;i++) { sc += V1c2s[i]; sc += "**";}
lastidx = V1c2p.length - 1; pc = ""; for(i = 0;i <= lastidx;i++) { if(!V1c2p[i]) { V1c2p[i] = "0";}
if(V1c2p[i] == "undefined" || V1c2p[i] == "NaN") { V1c2p[i] = "0";}
pc += V1c2p[i]; if(i != lastidx) { pc += "**";}
}
DateAddHours(ED1,NHours); if(NHours) { CookieSet("VCs",sc,ED1,"/");}
else { CookieSet("VCs",sc,null,"/");}
DateAddDays(ED2,NDays); CookieSet("VCp", pc, ED2, "/");}
}
function DateFix(dt)
{ var b = new Date(0); var s = b.getTime(); if(s > 0) dt.setTime(dt.getTime() - s);}
function DateAddHours(date,hours)
{ date.setTime(date.getTime() + hours * 3600000);}
function DateAddDays(date,days)
{ DateAddHours(date,(days * 24));}
function DateAddWeeks(date,weeks)
{ DateAddHours(date,(weeks * 168));}
function MouseX()
{ if(IsMouse != 1) { MouseSetup();}
if(MPx < 0) return(100); return(MPx);}
function MouseY()
{ if(IsMouse == 0) { MouseSetup();}
if(MPy < 0) return(100);/*p*/
return(MPy);}
function MouseXYTime(mt)
{ if(IsMouse == 0) { MouseSetup();}
if(mt) { if(mt > 5 && mt < 3000) { MouseTime = mt;}
}
}
function MouseSetup()
{ if(IsMouse == 1) return; IsNSobs = IsNS(); IsIEobs = IsIE(); if(IsNSobs || IsDOM()) { window.onMouseMove = MouseISR;}
MouseVis = 1; IsMouse = 1; MouseThread();}
function MouseThread()
{ if(MouseVis == 1) { MouseVis = 0; if( IsNSobs == 1 && (!IsDOM()) ) { window.captureEvents(Event.MOUSEMOVE);}
else { document.body.onmousemove = MouseISR;}
}
setTimeout("MouseThread()",MouseTime);}
function MouseISR(evnt)
{ if(IsNSobs && !IsDOM()) { window.releaseEvents(Event.MOUSEMOVE); MPx = evnt.pageX;/*i*/
MPy = evnt.pageY;}
else { document.body.onmousemove = null; if(IsIEobs) { MPx = window.event.clientX; MPy = window.event.clientY;}
else { MPx = evnt.clientX; MPy = evnt.clientY;}
}
MouseVis = 1;}
function FieldGet(b, p, sz)
{ var o,i; o = ""; for(i = 0;i < sz;i++) { o += b.charAt( (i + p) );}
return(o);}
function FieldPut(s, b, p)
{ var o,i,k; o = ""; k = 0; for(i = 0; i < 500; i++) { if((s.length + p) > b.length) { b += "        ";}
else { break;}
}
for(i = 0;i < b.length;i++/*c*/) { if( i >= p && k < s.length ) { o += s.charAt(k); k++;}
else { o += b.charAt(i);}
}
return(o);}
function StrLSet(s, sz, buf)
{ return(StrSet(s, sz, 1, buf));}
function StrRSet(s, sz, buf)
{ return(StrSet(s, sz, 0, buf));}
function StrSet(s, sz, LEFT, buf)
{ var b,i,o; o = ""; if(!buf || buf.length == 0) { b = " ";}
else { b = buf;}
if(s.length < sz/*i*/) { o = s;}
else { o = s.substr(0,sz);}
for(i = s.length;i < sz;i++) { if(LEFT) { o += buf;}
else { o = buf + o;}
}
return(o);}
function FormatFP (n, d)
{ with(Math) { var s = (n < 0) ? "-" : ""; var a = abs(n); var w = floor(a); var f = round((a - w) * pow(10,d)).toString();}
for ( ; f.length < d ; ) f = "0" + f; return s + w + "." + f;}
function Show( nm )
{ if(IsDOM()) { var t = document.getElementById(nm); t.style.visibility = "visible"; return;}
if(IsNS()) { eval("document." + nm + ".visibility = 'show'");}
if(IsIE()) { eval("document.all." + nm + ".style.visibility='visible'");}
}
function Hide( nm )
{ if(IsDOM()) { var t = document.getElementById(nm); t.style.visibility = "hidden";}
else if(IsNS()) { eval("document." + nm + ".visibility = 'hide'");}
else if(IsIE()) { eval("document.all." + nm + ".style.visibility='hidden'");}
}
function FGColor(nm, c)
{ if(IsDOM()) { var t = document.getElementById(nm); t.style.color = c; return;}
if(IsNS()) { with(document[nm])
{ color=c;}
}
if(IsIE()) { eval("document.all." + nm + ".style.color = '" + c + "'");}
}
function ValidEmail(em)
{ iC = " /:,;"; if(em == "") { return(false);}
for(i = 0;i < iC.length;i++) { C = iC.charAt(i); if(em.indexOf(C,0) != -1) { return(false);}
}
A = em.indexOf("@",1); if(A == -1) { return(false);}
if(em.indexOf("@",A + 1) != -1) { return(false);}
P = em.indexOf(".",A); if(P == -1) { return(false);}
if(P+3 > em.length) { return(false);}
return(true);}
function ThrowAwayEmail(em)
{ var AtElements = new Array(); var PostAt; if(!TAEmailsBeenUCased) { ThrowAwayEmails = ThrowAwayEmails.toUpperCase(); TAEmailsBeenUCased = 1;}
if(em == "") { return(false);}
PostAt = ""; AtElements = em.split("@"); if(AtElements.length > 1) { PostAt = AtElements[1];}
else { return(false);}
PostAtUC = PostAt.toUpperCase(); if(ThrowAwayEmails.indexOf(PostAtUC) == -1) { return(false);}
return(true);}

