// JavaScript Document
function popitup(url)
{
	var newwindow = window.open(url,'name','height=500,width=500');
	if (window.focus) {
		newwindow.focus();
	}
	return false;
}


function myHigh(rowid, theClass)
{
	$(rowid).className = theClass;
	return false;
}

var selected = "tab_find";
function Tabber(li)
{
	$(selected).className = "tab";
	if ($('tc-'+selected)) $('tc-'+selected).style.display = "none";
	$(li.id).className = "tabon";
	if ($('tc-'+li.id))
	{
		if (li.id != 'tab_browse')
		{
			$("header2").className = "header2";
			$("tc-"+li.id).style.display = "inline";
			if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) $('tabcon').style.top = "-48px"; // i fuckin hate internet explorer.
		}
		else
		{
			$("header2").className = "header2-mid";
			$("tc-"+li.id).style.display = "inline";
			if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) $('tabcon').style.top = "-28px";
		}
	}
	else
	{
		$("header2").className = "header2-min";
	}
	selected = li.id;
}

function drop_handle(handle)
{
	var obj = $(handle);
	var but = $(handle+'but');
	if (obj.style.display == "" || obj.style.display == "none")
	{
		obj.style.display = "block";
		but.className = "box-up";
	}
	else
	{ 
		obj.style.display = "none";
		but.className = "box-down";
	}
	return false;
}


window.onload = function()
{
	var _dfre = document.createElement("iframe");
	_dfre.id = "_dfre";
	_dfre.name = "_dfre";
	_dfre.style.width="1px";
	_dfre.style.height="1px";
	_dfre.style.border = "0px";
	_dfre.src = "about:blank";
	document.getElementsByTagName("body")[0].appendChild(_dfre);
}