
var offsetfromcursorX=12 //Customize x offset of tooltip
var offsetfromcursorY=10 //Customize y offset of tooltip

var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="img/arrow2.gif">') //write out pointer image

var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX>leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
}

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip

/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<a href="select.php?l=Available&steps=1" class="s10"><b>Available</b></a>'
linkset[0]+='<img src="img/divider.gif" class="divider">'
linkset[0]+='<a href="select.php?l=Dropping Today" class="s10">Dropping Today</a>'
linkset[0]+='<a href="select.php?l=Dropping Tomorrow" class="s10">Dropping Tomorrow</a>'
linkset[0]+='<img src="img/divider.gif" class="divider">'
linkset[0]+='<a href="select.php?l=Snapnames Priority Partner&steps=1" class="s10">SnapNames Pre-Release</a>'
linkset[0]+='<a href="select.php?l=NameJet Prerelease&steps=1" class="s10">NameJet Pre-Release</a>'
linkset[0]+='<img src="img/divider.gif" class="divider">'
linkset[0]+='<a href="select.php?l=Snapnames Auctions&steps=1" class="s10">SnapNames Auctions</a>'
linkset[0]+='<a href="select.php?l=GoDaddy Auctions&steps=1" class="s10">GoDaddy Auctions</a>'
linkset[0]+='<a href="select.php?l=Pool Auctions&steps=1" class="s10">Pool Auctions</a>'
linkset[0]+='<a href="list.php?a=show&l=Sedo Auctions&d=All" class="s10">Sedo Auctions</a>'
linkset[0]+='<a href="list.php?a=show&l=eBay Auctions&d=All" class="s10">eBay Auctions</a>'
linkset[0]+='<img src="img/divider.gif" class="divider">'
linkset[0]+='<a href="list.php?a=show&l=Active+Auctions&d=All" class="s10">All Active Auctions</a>'
linkset[0]+='<a href="list.php?a=show&l=Ending+Today+Auctions&d=All" class="s10">All Auctions Ending Today</a>'
linkset[0]+='<img src="img/divider.gif" class="divider">'
linkset[0]+='<a href="select.php?l=PendingDelete&steps=1" class="s10">PendingDelete</a>'
linkset[0]+='<a href="select.php?l=RedemptionPeriod&steps=1" class="s10">RedemptionPeriod</a>'
linkset[0]+='<a href="select.php?l=Registrar-Hold&steps=1" class="s10">Registrar-Hold</a>'
linkset[0]+='<img src="img/divider.gif" class="divider">'
linkset[0]+='<a href="list.php?a=typeins" class="s10">Type-in Domains</a>'
linkset[0]+='<img src="img/divider.gif" class="divider">'
linkset[0]+='<a href="zones.html" class="s10">Zone Files</a>'
linkset[0]+='<img src="img/divider.gif" class="divider">'
linkset[0]+='<a href="terms.html" class="s10">Need help?</a>'

linkset[1]='<a href="user.php?a=home" class="s10">login / register</a>'
linkset[1]+='<img src="img/divider.gif" class="divider">' //Optional Separator
linkset[1]+='<a href="user.php?a=home" class="s10"><b>dashboard / news</b></a>'
linkset[1]+='<img src="img/divider.gif" class="divider">'
linkset[1]+='<a href="user.php?a=profile" class="s10">my account</a>'
linkset[1]+='<img src="img/divider.gif" class="divider">'
linkset[1]+='<a href="filter.php" class="s10">my filters</a>'
linkset[1]+='<a href="keywords.php" class="s10">my keywords</a>'
linkset[1]+='<a href="columns.php" class="s10">my columns</a>'
linkset[1]+='<a href="font.html" class="s10">my fonts</a>'
linkset[1]+='<img src="img/divider.gif" class="divider">'
linkset[1]+='<a href="custom.php" class="s10">my private scans</a>'
linkset[1]+='<img src="img/divider.gif" class="divider">'
linkset[1]+='<a href="watchlist.php" class="s10">my watchlists</a>'
linkset[1]+='<a href="alerts.php" class="s10">my alerts</a>'
linkset[1]+='<a href="notes.php" class="s10">my notes</a>'
linkset[1]+='<img src="img/divider.gif" class="divider">'
linkset[1]+='<a href="monitor.php" class="s10">my domain monitoring</a>'
linkset[1]+='<a href="notifications.php" class="s10">my daily notifications</a>'
linkset[1]+='<img src="img/divider.gif" class="divider">'
linkset[1]+='<a href="affiliate.php" class="s10">my affiliate stats</a>'
linkset[1]+='<img src="img/divider.gif" class="divider">'
linkset[1]+='<a href="api.php" class="s10">my api access</a>'
linkset[1]+='<a href="feeds.php" class="s10">my data feeds</a>'
linkset[1]+='<img src="img/divider.gif" class="divider">'
linkset[1]+='<a href="user.php?a=logout" class="s10">logout</a>'

linkset[2]='<a href="about.html" class="s10">about</a>'
linkset[2]+='<a href="faq.html" class="s10"><b>faq</b></a>'
linkset[2]+='<a href="contact.html" class="s10">contact</a>'
linkset[2]+='<img src="img/divider.gif" class="divider">'
linkset[2]+='<a href="news.html" class="s10">site news</a>'
linkset[2]+='<a href="sitemap.html" class="s10">site map</a>'

linkset[3]='<a href="stats.php?a=registrations" class="s10"><b>registrations</b></a>'
linkset[3]+='<a href="stats.php?a=deletions" class="s10">deletions</a>'
linkset[3]+='<a href="stats.php?a=tasting" class="s10">tasting</a>'

linkset[4]='<a href="typo.php" class="s10"><b>typo generator</b></a>'
linkset[4]+='<img src="img/divider.gif" class="divider">'
linkset[4]+='<a href="clean.php" class="s10">list cleaner</a>'
linkset[4]+='<a href="clean.php" class="s10">duplicate remover</a>'
linkset[4]+='<a href="clean.php?a=extract" class="s10">domain extractor/parser</a>'
linkset[4]+='<img src="img/divider.gif" class="divider">'
linkset[4]+='<a href="typein.php" class="s10"><b>bulk type-in checker</b></a>'
linkset[4]+='<a href="available.php" class="s10">bulk availability checker</a>'
linkset[4]+='<a href="live-typein.php" class="s10">instant popularity checker</a>'
linkset[4]+='<img src="img/divider.gif" class="divider">'
linkset[4]+='<a href="terms.php" class="s10"><b>bulk term extractor</b></a>'
linkset[4]+='<img src="img/divider.gif" class="divider">'
linkset[4]+='<a href="idn.php" class="s10"><b>idn converter</b></a>'
linkset[4]+='<img src="img/divider.gif" class="divider">'
linkset[4]+='<a href="ip.html" class="s10">ip / browser info</a>'

////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth,extra){

if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? extra+"px" : extra+"px"
//same concept with the vertical position
if (bottomedge>menuobj.contentheight)
menuobj.style.top=ie5? 28+"px" : window.pageYOffset+28+"px"
else
menuobj.style.top=ie5? 28+"px" : window.pageYOffset+28+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu