var cLeft = 0var cRight = 670var cWidth = 1880var cHeight = 199var newsLeft = 0var dx = 2;auto = nullnewsdiv = null

function showPrint()
{
	var tb = document.getElementById("topbar")
	if(tb) tb.style.visibility = "hidden"
	var nv = document.getElementById("nav")
	if(nv) nv.style.visibility = "hidden"
	var bn = document.getElementById("banner")
	if(bn) bn.style.display = "none"
	
	var bk = document.getElementById("normal_view")
	if(bk) bk.style.display = "block"
}

function closePrint()
{
	var tb = document.getElementById("topbar")
	if(tb) tb.style.visibility = "visible"
	var nv = document.getElementById("nav")
	if(nv) nv.style.visibility = "visible"
	var bn = document.getElementById("banner")
	if(bn) bn.style.display = "block"
	
	var bk = document.getElementById("normal_view")
	if(bk) bk.style.display = "none"
}

function img_act(imgName){
return
   var imgName;
   if (document.images){
   imgName=document.images(imgName);
   imgOn = imgName + "on.src";
   }
}

function img_inact(imgName){
   var imgName;
   if (document.images){
   imgName=document.images(imgName);
   imgOff = imgName + "off.src";
   }
}

function doButtons(picimage){
    eval("document['picture'].src = " + picimage + ".src");
}

function formCheck(form) {
	str = "";

	// contact name, phone number and e-mail are required
	if (!form.name.value) {
		str = "Contact Name";
	}
	if (!form.phone.value) {
		if (str)
			str += ", ";
		str += "Phone Number";
	}
	if (!form.email.value) {
		if (str)
			str += ", ";
		str += "E-mail address";
	}

	if (str) {
		alert("Please fill in required fields\n" + str + ".");
		return false;
	} else
	
	return true;
	
}

function init(){	newsdiv = document.getElementById("newsscroller")	if(newsdiv) 	{		newsLeft = getX(newsdiv)		autoScroll()	}}function scrollBy(amount){	if(!newsdiv) return	divWidth = newsdiv.offsetWidth	// Are we scrolling out of range? If so, return to top/bottom.	if ((cRight + amount) > divWidth) amount = divWidth - cRight;	if ((cLeft + amount) < 0) amount = 0 - cLeft;	// Adjust clipping values & move div up/down... 'scrolling' div.	cLeft += amount;	cRight += amount;	//newsdiv.style.clip = 'rect(' + cLeft + 'px ' + cWidth + 'px ' + cRight + 'px ' + 0 + 'px)';	var clip = 'rect(0px ' + cLeft + 'px ' + cHeight + 'px ' + cRight + 'px)'	//alert(clip)	//newsdiv.style.clip = clip;	newsdiv.style.left = - cLeft + 'px'			}function autoScroll(){	scrollBy(dx)	auto = setTimeout('autoScroll()', 50);}function autoStop(){	if(auto != null) clearTimeout(auto)}



// Calculates the absolute page x coordinate of any element 
function getX(element) { 

	var x = 0; 

	do { 

		if (element.style.position == 'absolute') { 

			return x + element.offsetLeft; 

		} 

		else { 

			x += element.offsetLeft; 

			if (element.offsetParent) 

				if (element.offsetParent.tagName == 'TABLE') 

					if (parseInt(element.offsetParent.border) > 0) { 

						x += 1; 

					} 
		} 

	} while ((element = element.offsetParent)); 

	return x; 

} 

// Calculates the absolute page y coordinate of any element 
function getY(element) { 

	var y = 0; 

	do { 

		if (element.style.position == 'absolute') { 

			return y + element.offsetTop; 

		} 

		else { 

			y += element.offsetTop; 

			if (element.offsetParent) 

				if (element.offsetParent.tagName == 'TABLE') 

					if (parseInt(element.offsetParent.border) > 0) { 

						y += 1; 

					} 

		} 

	} while ((element = element.offsetParent)); 

	return y; 

} 
























