function rubber(){
		mms = document.getElementById('mm').getElementsByTagName('LI');
		cw = 0;
		for (i=0;i<mms.length;i++){
			cw = cw + mms[i].firstChild.offsetWidth;		
		}
		diff = parseInt((document.body.offsetWidth - 242 - cw)/mms.length);
		cw = 0;
		for (i=0;i<mms.length;i++){
			mms[i].firstChild.style['width'] = mms[i].firstChild.offsetWidth + diff + 'px';
			cw = cw + mms[i].firstChild.offsetWidth;
			if (i == mms.length-1){
				left = document.body.offsetWidth - 242 - cw;
				mms[i].firstChild.style['width'] = mms[i].firstChild.offsetWidth + left +'px';
			}
		}
		
		brs = document.getElementById('br').getElementsByTagName('LI');
		cw = 0;
		for (i=0;i<brs.length;i++){
			cw = cw + brs[i].firstChild.offsetWidth;		
		}
		diff = parseInt((document.body.offsetWidth - cw)/brs.length);
		cw = 0;
		for (i=0;i<brs.length;i++){
			brs[i].firstChild.style['width'] = brs[i].firstChild.offsetWidth + diff + 'px';
			brs[i].firstChild.onmouseover = function(){
				this.firstChild.style.backgroundPosition = '0px -39px';
			}
			brs[i].firstChild.onmouseout = function(){
				this.firstChild.style.backgroundPosition = '0px 0px';
			}
			cw = cw + brs[i].firstChild.offsetWidth;
			if (i == brs.length-1){
				left = document.body.offsetWidth - cw;
				brs[i].firstChild.style['width'] = brs[i].firstChild.offsetWidth + left +'px';
			}
		}
}

window.onresize = function(){
	rubber();	
}

var ie4 = (document.all && !document.getElementById)? true : false;
var ie5 = (document.all && document.getElementById)? true : false; 

document.onmousemove=function(evt)
{
	mx=(ie4||ie5)?event.clientX:evt.pageX;
	my=(ie4||ie5)?event.clientY:evt.pageY;
}

function ShowHelp(div, desc)
{
	div = document.getElementById(div);
	div.style.display = 'block';
	div.style.width = 'auto';
	div.style.position = 'absolute';
	div.style.zIndex = 250;
	div.style.background = '#ffffff';
	div.style.border = 'solid 1px #0061aa';
	div.style.padding = '4px 8px 4px 8px';
	div.style.font = '10px/14px Arial';
	temp = (ie4||ie5)? document.body.scrollTop + my : my;
	div.style.top = temp+'px';
	temp = (ie4||ie5)? document.body.scrollLeft + mx : mx + 15;
	div.style.left = temp+'px';
	div.innerHTML = desc;
}

function MoveHelp(div)
{
	div = document.getElementById(div);
	temp = (ie4||ie5)? document.body.scrollTop + my : my;
	div.style.top = temp+'px';
	temp = (ie4||ie5)? document.body.scrollLeft + mx : mx + 15;
	div.style.left = temp+15+'px';
}

function HideHelp(div)
{
	div = document.getElementById(div);
	div.style.display = 'none';
} 
