			var scrolling = 0;	
			var yPos = 0;	
function start(direction) {scrolling = 1; scroll(direction);}

function scroll(direction) {
			if (scrolling == 1) {
				if(direction == 1) {					
                                        yPos = yPos + 2;
                                        document.getElementById('news').scrollTop = yPos;
                                        if(document.getElementById('news').scrollTop < yPos) {scrolling =0;}
				}
				else {
				        yPos = yPos - 2;
                                        document.getElementById('news').scrollTop = yPos; 
                                        if(document.getElementById('news').scrollTop > yPos) {scrolling = 0;}						
				}
				setTimeout('scroll('+ direction + ')',0);
			}
			return false;
			}

function stop() {
scrolling = 0; 
return false;
}

	function runTransform(loc){
	var prevent_cache=Math.floor(Math.random()*1000001);
	
		if(document.implementation && document.implementation.createDocument){
		// Mozilla
		var xsltProcessor = new XSLTProcessor();
		// load the xslt file
		var myXMLHTTPRequest = new XMLHttpRequest();
		myXMLHTTPRequest.open("GET", "stylesheets/" + loc + ".xsl", false);
		myXMLHTTPRequest.send(null);
			
		// get the XML document
		xslStylesheet = myXMLHTTPRequest.responseXML;
		xsltProcessor.importStylesheet(xslStylesheet);

		// load the xml file
		myXMLHTTPRequest = new XMLHttpRequest();
		myXMLHTTPRequest.open("GET", "datasheets/" + loc + ".xml?"+prevent_cache, false);
		myXMLHTTPRequest.send(null);				

		var xmlSource = myXMLHTTPRequest.responseXML;
				
		//transform
		 var resultDocument = xsltProcessor.transformToFragment(xmlSource, document);
		document.getElementById(loc).appendChild(resultDocument);

		}else if(window.ActiveXObject){
		// IE
		
		// Load XML
		xml = new ActiveXObject("MSXML2.DOMDocument");
		xml.async = false
		xml.load("datasheets/" + loc + ".xml?"+prevent_cache)
			
		// Load XSL
		xsl = new ActiveXObject("MSXML2.DOMDocument");
		xsl.async = false
		xsl.load("stylesheets/" + loc + ".xsl")

		// Transform
		document.getElementById(loc).innerHTML=xml.transformNode(xsl);
		}else{
		// Browser unknown
		//alert("Browser unknown");

		document.getElementById(loc).innerHTML="<span class='text'><b>Sorry.</b> <br /><br />Your browser cannot display this information. Please use the <a href='contact.htm'>contact</a> page to let us know what browser your using.</span>"
		}	
	}

