// JavaScript Document
function show(src)
{
MainFrame.document.location.replace(src);
return false;
}
var brandTop= 0;
var interval;
var curdir;
function BScroll(el,direction)
{
	if( direction != 0 ) {
		curdir= direction;
		interval= setInterval("BrandUp()",10);
		el.style.top=-20;
		}
	else {
		clearInterval(interval);
		el.style.top=0;
		}
	return true;
}
function BrandUp()
{
	var e= document.getElementById("idBrandlist");
	brandTop= e.scrollTop;
	var height= e.offsetHeight;		// height available
	var listHeight= e.scrollHeight;	// actual height of list
	brandTop += curdir;		// add the current direction offset
	if( brandTop < 0 ) 
		brandTop= 0;
	else if( (brandTop + height) > listHeight )
		brandTop= (listHeight - height);
	e.scrollTop= brandTop;
}

