//<script>

function openWin(url, n, w, h)
	{
		if (url.indexOf('?') == -1)
			{url=url+'?$sid='+sid}
		else
			{url=url+'&$sid='+sid}
		window.open(url, n, 'width='+w+',height='+h+',resizable=yes,scrollbars=yes')
	}

var tip1;
var tM = "<div style='width:100%;text-align:right;padding:0px' class='headcell'><a href='javascript:hideTip();'><span style='color:white;font-family:verdana,arial;size:6pt'>X</span></a></div>";

var timerID = null;var timerRunning = false;
function stop()
{
if(timerRunning)
clearInterval(timerID)   
timerRunning = false		
}

function cms(c)
{
c.className = 'altmcell';
}
function cms2(c)
{
c.className = 'mcell';
}
function sTime(t)
{
stop();
timerID = setInterval("hideTip()",t);
timerRunning = true;
}

if (!document.getElementById && !document.all && !document.layers)
	event = "";

function hideTip() {} 
var tooltip;

function doTooltip(evt,txt,it,id) {
txt = gTxt(txt,it,id);
//if (!tooltip) return;
var cntnt = wrapTip(txt);
goTooltip(evt,cntnt);
sTime(9000);
}

function wrapTip(txt) {
var cntnt = "";
if (document.layers) {
cntnt = '<table class=tback width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td><div style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + tipFontColor + ';">' + txt  + '</div></td></tr></table></td></tr></table>';
} else cntnt = txt;
return cntnt;
}

function gTxt(txt,it,id)
{
if (it == 'main')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/CatAdd.asp', 'ca', 350,320)\">Add New Category</a></div><div class=mcell  onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/CatReOrder.asp', 'ca', 400,400)\">Change Order</a></div>"
//alert(txt);
}
if (it == 'cat')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/CatEdit.asp?id="+id+"', 'ec332', 350,300)\">Edit Category</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/CatDelete.asp?id="+id+"', 'ec', 300,200)\">Delete Category</a></div>";
txt = txt + "<div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/ForumAdd.asp?sub=0&id="+id+"', '22', 400,550)\">Add New Forum</a></div>";
txt = txt + "<div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/LinkAdd.asp?id="+id+"', '1111', 400,400)\">Add New Link</a></div>";
txt = txt + "<div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/ForumOrder.asp?id="+id+"', 'for', 400,400)\">ReOrder Forums</a></div>";
}
if (it == 'forum')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ForumLock.asp?id="+id+"', 'gk', 300,130)\">Lock/unlock Forum</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ForumEdit.asp?sub=0&id="+id+"', 'ec', 400,550)\">Edit Forum</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ForumAdd.asp?sub=1&id="+id+"', 'ec', 400,550)\">Add SubForum</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/ForumDelete.asp?id="+id+"', 'ec', 300,130)\">Delete Forum</a></div>";
}
if (it == 'subforum')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ForumLock.asp?id="+id+"', 'gk', 300,130)\">Lock/unlock Forum</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ForumEdit.asp?sub=1&id="+id+"', 'ec', 400,550)\">Edit SubForum</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ForumAdd.asp?sub=1&id="+id+"', 'ec', 400,550)\">Add SubForum</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/ForumDelete.asp?id="+id+"', 'ec', 300,130)\">Delete Forum</a></div>";
}

if (it == 'lnk')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/LinkEdit.asp?id="+id+"', 'le', 400,300)\">Edit Link</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/forumDelete.asp?id="+id+"', 'ec', 300,130)\">Delete Link</a></div>";
}
if (it=='logon')
{
txt = "<table width=220 cellspacing=0 cellpadding=2><form action='login.asp' method='post' name='frmLog'><input type=hidden  name=page value='"+document.location.href+"'><tr><td colspan=2 class=headcell style=text-align:right>Login</td></tr><tr class=mcell><td>&nbsp;User Name</td><td><input onfocus='sTime(11000)' type=text name=un style=width:120px></td></tr><tr class=mcell><td>&nbsp;Password</td><td><input onfocus='sTime(11000)' type=password name=pas style=width:120px></td></tr><tr class=mcell><td class=caption nowrap><label for=al>Auto Logon?</label><input type=checkbox name=al id=al value=true></td><td align=right><input type=submit value='Login'></td></tr></table>"
}

if (it == 'topic')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/TopicLock.asp?id="+id+"', 'ut', 300,130)\">Lock/unlock Topic</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/TopicMove.asp?id="+id+"', 'ut', 550,450)\">Move Topic</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/TopicEdit.asp?id="+id+"', 'ec', 550,450)\">Edit Topic</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/TopicDelete.asp?id="+id+"', 'td', 300,130)\">Delete Topic</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/TopicPin.asp?id="+id+"', 'essc', 300,140)\">Pin/Unpin Topic</a></div>";
}

if (it == 'forumad')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/TopicLock.asp?id="+id+"', 'ut', 300,300)\">Lock/unlock Topic</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/TopicMove.asp?id="+id+"', 'ut', 400,400)\">Move Topic</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/TopicEdit.asp?id="+id+"', 'ec', 550,450)\">Edit Topic</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/TopicDelete.asp?id="+id+"', 'td', 300,130)\">Delete Topic</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/TopicPin.asp?id="+id+"', 'essc', 300,140)\">Pin/Unpin Topic</a></div>";
}
if (it == 'forummod')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/TopicLock.asp?id="+id+"', 'ut', 300,300)\">Lock/unlock Topic</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/TopicEdit.asp?id="+id+"', 'ec', 300,300)\">Edit Topic</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/TopicDelete.asp?id="+id+"', 'td', 300,130)\">Delete Topic</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/TopicPin.asp?id="+id+"', 'essc', 300,140)\">Pin/Unpin Topic</a></div>";
}
if (it == 'replymod')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ReplyEdit.asp?id="+id+"', 'ut', 550,450)\">Edit Post</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ReplyDelete.asp?id="+id+"', 'ec', 300,130)\">Delete Post</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/ReplyIP.asp?id="+id+"', 'td', 300,200)\">View IP Address</a></div>";
}
if (it == 'replyad')
{
txt = tM + "<div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ReplyEdit.asp?id="+id+"', 'ut', 550,450)\">Edit Post</a></div><div class=mcell onmouseover='cms(this);' onmouseout='cms2(this)'><a href=\"javascript:openWin('admin/ReplyDelete.asp?id="+id+"', 'ec', 300,130)\">Delete Post</a></div><div class=mcell onmouseout='cms2(this)' onmouseover='cms(this);'><a href=\"javascript:openWin('admin/ReplyIP.asp?id="+id+"', 'td', 300,200)\">View IP Address</a></div>";
}

return txt;
}


// Do you want tooltip to move when mouse moves over link?
var tipFollowMouse = false;	
// be sure to set tooltip width wide enough for widest image!
// take into account border and padding
var tipWidth = 130;	// width of tooltip in pixels

// how far from mouse to show tooltip
var tipOffX	= -1;	// horizontal offset
var tipOffY	= -1; // vertical offset

var tipFontFamily = "Verdana, arial, helvetica, sans-serif";
var tipFontSize	= "11px";	// string with pixels or points (px or pt)
// tooltip content line-height
var tipLineHeight	= 1.2;	// number	(recommend 1 to 1.3)
var tipFontColor = "#000000";
var tipBgColor = "#d6e4fc";	// tooltip background color
// background image for tooltip (leave empty string if no bg image)
var tipBgImg = "";	
// "breathing room" around tooltip content
var tipPadding = 0;	// integer (pixel value)

// leave a color in here even if you don't want a border
var tipBorderColor = "#000099"; 

// if you don't want a border, set tipBorderWidth to 0
var tipBorderWidth = 1; // integer (pixel value)

// if you don't want a border, set tipBorderStyle to "none"
// options for border style: "none", "solid", "ridge", "outset",
// "inset", "groove", "double", "dashed"
// (they won't look the same in all browsers though!)
var tipBorderStyle = "groove"; 

// NOTES: 
// Adding a large amount of padding and thick borders will
// result in a noticeable difference in the tooltip width
// between browsers that are standards-compliant and those
// that are not. For best results, keep these values small.
// Background image, line-height and border style settings 
// for the tooltip are not supported for ns4.


// preload images to be placed in tooltip
// place your images in this array
var imgAr = new Array(
	"images/sm-duck.gif"
);

if (document.images) {
	var imgs = new Array();
	for (var i=0; i<imgAr.length; i++) {
  	imgs[i] = new Image(); 
		imgs[i].src = imgAr[i];
  }
}

//</script>
