
function email(address) {
	// Replace the text ' at ' (spaces are important)
	// with the '@' symbol
	address = address.split(" at ").join("@");
	// use the href="mailto command to open the email client
	window.location.href="mailto:"+address;
}

// change this to where you store the blank.gif image
var blank = "http://www.marsport.co.uk/blank.gif";

topedge = 125;  // location of news box from top of page
leftedge = 18;  // location of news box from left edge
boxheight = 200;  // height of news box
boxwidth = 210;  // width of news box
scrollheight = 120; // total height of all data to be scrolled

function scrollnews(cliptop) {
// ********************************
// Allow for resize
//=================================
scrWidth = document.body.clientWidth
tblWidth = parseInt(scrWidth) * 0.9
if (tblWidth<700) tblWidth=700
leftBorder = (parseInt(scrWidth) - tblWidth)/2
if (leftBorder<=0) leftBorder = 0;
//********************************
if (document.layers) {
newsDiv = document.news;
newsDiv.clip.top = cliptop;
newsDiv.clip.bottom = cliptop + boxheight;
newsDiv.clip.left = 0;
newsDiv.clip.right = boxwidth + leftedge;
newsDiv.left = leftedge + leftBorder; 
newsDiv.top = topedge - cliptop;
}
else {
newsDiv = news.style;
newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
newsDiv.pixelLeft = leftedge + leftBorder;
newsDiv.pixelTop = topedge - cliptop;
}
cliptop = (cliptop + 1) % (scrollheight + boxheight);
newsDiv.visibility='visible';
setTimeout("scrollnews(" + cliptop + ")", 80);
}
