// functions for address pop up begin
function showaddress() {
	MM_showHideLayers('address','','show');
}

function hideaddress() {
	MM_showHideLayers('address','','hide');
}
// functions for address pop up end

// functions for horizontal scrolling begin
//specify speed of scroll (greater = faster)
var speed = 50;

var movedownTimer, moveupTimer;

function movedown() {
	MM_showHideLayers('more','','hide','back','','show'); 

	var content = MM_findObj('content');

	var contentWidth;
	if (is.opera)
		contentWidth = 1140; // hard code, since don't know how to get the width in Opera
	else if (is.nav4)
		contentWidth = content.clip.width;
	else
		contentWidth = content.offsetWidth;

	var leftLimit = 540 - contentWidth;
	var contentLeft = (is.nav4) ? content.left : content.style.left;
	contentLeft = parseInt(contentLeft);

	if (moveupTimer)
		clearTimeout(moveupTimer);

	if (contentLeft >= leftLimit + speed) {
		if (is.nav4)
			content.left = contentLeft - speed;
		else
			content.style.left = contentLeft - speed;

		movedownTimer=setTimeout("movedown()",100);
	} else {
		if (is.nav4)
			content.left = leftLimit;
		else
			content.style.left = leftLimit;
	}
}

function moveup() {
	MM_showHideLayers('more','','show','back','','hide'); 

	var content = MM_findObj('content');

	var contentWidth;
	if (is.opera)
		contentWidth = 1140; // hard code, since don't know how to get the width in Opera
	else if (is.nav4)
		contentWidth = content.clip.width;
	else
		contentWidth = content.offsetWidth;

	var leftLimit = 0;
	var contentLeft = is.nav4 ? content.left : content.style.left;
	contentLeft = parseInt(contentLeft);

	if (movedownTimer)
		clearTimeout(movedownTimer);

	if (contentLeft <= leftLimit - speed) {
		if (is.nav4)
			content.left = contentLeft + speed;
		else
			content.style.left = contentLeft + speed;

		moveupTimer=setTimeout("moveup()",100);
	} else {
		if (is.nav4)
			content.left = leftLimit;
		else
			content.style.left = leftLimit;
	}
}
// functions for horizontal scrolling end
