var siteUrl = "http://www.longridge.net/";
var imageUrl = siteUrl+"images/";

function getObject(obj) {
	var theObj
	if (document.layers) {if (typeof obj == "string") {return document.layers[obj]} else {return obj}}
	if (document.all) {if (typeof obj == "string") {return document.all(obj).style} else {return obj.style}}
	if (document.getElementById) {if (typeof obj == "string") {return document.getElementById(obj).style} else {return obj.style}}
	return null
}
function getElObject(obj){
    var theObj
	if (document.layers) {if (typeof obj == "string") {return document.obj} else {return obj}}
	if (document.all) {if (typeof obj == "string") {return document.all(obj)} else {return obj}}
	if (document.getElementById) {if (typeof obj == "string") {return document.getElementById(obj)} else {return obj}}
	return null
}

function turn_off(ImageName) {
	if (document.images != null) {
		   getElObject(ImageName).src = eval(ImageName + ".src");
	}
}

function turn_over(ImageName) {
	if (document.images != null) {
		  getElObject(ImageName).src = eval(ImageName + "_on.src");
	}
}

function turn_on(ImageName) {

	if (document.images != null) {
		   getElObject(ImageName).src = eval(ImageName + "_down.src");		
	}
}