<!--
function getElement(id){
    if(document.getElementById){    // test the most common method first.  Most browsers won't get past this test
        return document.getElementById(id);
    }else if(document.all){         // test older versions of IE
        return document.all[id];
    }else if(document.layers){      // test older versions of Netscape
        return document.layers[id];
    }else{                          // not sure what to do...return null
        return null;
    }
}

function showSearch(cat) {
		var cat = getElement(cat);
		cat.style.visibility='visible';
}

function hideSearch(cat) {
		var cat = getElement(cat);
		cat.style.visibility='hidden';
}

function gotoUrl(url){
window.location = url;
}
moveDirection = 0;
function leftbarMore(){
	moveDirection = 1;
	var morebtn = getElement("morebtn");
	morebtn.style.visibility='hidden';
	morebtn.style.height='0px';
	var topbtn = getElement("topbtn");
	topbtn.style.visibility='visible';
	topbtn.style.height='20px';
	
	leftbarMoveDown();
}
function leftbarTop(){
	moveDirection = 0;
	var morebtn = getElement("morebtn");
	morebtn.style.visibility='visible';
	morebtn.style.height='20px';
	var topbtn = getElement("topbtn");
	topbtn.style.visibility='hidden';
	topbtn.style.height='0px';
	leftbarMoveUp();
}

function leftbarMoveDown()
{
	if(moveDirection == 1)
	{
		var morepadCont = getElement("morepadCont");
		var morepad = getElement("morepad");
		//morepad.style.position = "relative";
		var targetHeight = (getheight(morepadCont)-getheight(morepad));
		var currentLocation = parseInt(morepad.style.top) || 0;
		var gotoLoc = (targetHeight -currentLocation)/4;
		if(gotoLoc>-5) gotoLoc=-5;
		//alert(gotoLoc);
		currentLocation += gotoLoc;
		if(currentLocation < targetHeight) currentLocation = targetHeight;
		morepad.style.top=currentLocation+'px';
		if(currentLocation != targetHeight)
		setTimeout("leftbarMoveDown()",50);
	}
}
function leftbarMoveUp()
{
	if(moveDirection ==0)
	{
		var morepad = getElement("morepad");
		var currentLocation = parseInt(morepad.style.top) || 0;
		var targetHeight = 0;
		currentLocation = parseInt(morepad.style.top) || 0;
		var gotoLoc = (targetHeight-currentLocation)/4;
		if(gotoLoc<5) gotoLoc=5;
		currentLocation +=gotoLoc;
		if(currentLocation > targetHeight) currentLocation = targetHeight;
		morepad.style.top=currentLocation +'px';
		if(currentLocation != targetHeight)
		setTimeout("leftbarMoveUp()",50);
	}
}

function getheight(divObj){
  var contentheight=parseInt(divObj.style.height) || divObj.offsetHeight;
	return contentheight;
}
-->
