// Scroller Stuff
function initScrolls() {
	if (document.getElementById("contentText")) {
		setScroller('content','contentText',0,0);
	}
	if (document.getElementById("newsScroll")) {
		setScroller('newsScroll','newsText',0,94);
		runScroller('newsScroll','Down','Slow',2,4500,95,0);
	}
}

function stopNews() {
	runScroller('newsScroll','Stop','Slow',1,0,0,0);
	}

function startNews() {
	runScroller('newsScroll','Resume','Slow',1,0,0,0);
	}


// Pre-define current page variable

// Preload Menu Images
function preLoad() {
	if (BrowserOK){
	ButA = new Image();
	ButA.src = "/images/supplyBut_on.gif";

	ButB = new Image();
	ButB.src = "/images/nearBut_on.gif";

	ButC = new Image();
	ButC.src = "/images/logisticsBut_on.gif";

	ButD = new Image();
	ButD.src = "/images/resourcesBut_on.gif";

	ButE = new Image();
	ButE.src = "/images/customersBut_on.gif";

	ButF = new Image();
	ButF.src = "/images/caseStudyBut_on.gif";

	ButG = new Image();
	ButG.src = "/images/newsBut_on.gif";

	ButH = new Image();
	ButH.src = "/images/contactBut_on.gif";

	ButI = new Image();
	ButI.src = "/images/loginBut_on.gif";

	ButJ = new Image();
	ButJ.src = "/images/homeBut_on.gif";

	LnkA = new Image();
	LnkA.src = "/images/supplyLnk_on.gif"

	LnkB = new Image();
	LnkB.src = "/images/nearLnk_on.gif"

	LnkC = new Image();
	LnkC.src = "/images/logisticsLnk_on.gif"

	LnkD = new Image();
	LnkD.src = "/images/resourcesLnk_on.gif"

	LnkE = new Image();
	LnkE.src = "/images/customersLnk_on.gif"

	LnkF = new Image();
	LnkF.src = "/images/caseStudyLnk_on.gif"

	LnkG = new Image();
	LnkG.src = "/images/newsLnk_on.gif"

	LnkH = new Image();
	LnkH.src = "/images/contactLnk_on.gif"
	}

}


// Standard Generic Mouseovers (images in relative directory ./images)
function over(target) {
	if (BrowserOK){
		var btnId = 'document.getElementById(\"' + target + 'But\")';

		if (eval(btnId) == null ){
			return;
		}

		var img = "/images/" + target + "But_on.gif";;
		eval(btnId + ".src = '" + img +"'");

		var linkId = 'document.getElementById(\"' + target + 'Lnk\")';
		if (eval(linkId) != null ){
			var linkImg = '/images/' + target + 'Lnk_on.gif';
			eval(linkId + '.src = \"' + linkImg +'\";');
		}
	}
}

function out(target) {
	if (BrowserOK){
		var btnId = 'document.getElementById(\"' + target + 'But\")';

		if (eval(btnId) == null ){
			return;
		}

		var img = "/images/" + target + "But_off.gif";
		eval(btnId + ".src = '" + img +"'");

		var linkId = 'document.getElementById(\"' + target + 'Lnk\")';
		if (eval(linkId) != null ){
			var linkImg = '/images/' + target + 'Lnk_off.gif';
			eval(linkId + '.src = \"' + linkImg +'\";');
		}
	}
}

function jumpItem(no) {
	eval("thisOffset = document.getElementById('item" + no + "').offsetTop");
	eval("jumpScroller('contentText',0,-" + thisOffset + ")");
}

function jumpTop() {
	jumpScroller('contentText',0,0);
}