<!--
var Pic = new Array()
Pic[0] = "../images/layup/top_navi_about_over.gif";
Pic[1] = "../images/layup/top_navi_news_over.gif";
Pic[2] = "../images/layup/top_navi_work_over.gif";
Pic[3] = "../images/layup/top_navi_horses_over.gif";
Pic[4] = "../images/layup/top_navi_rest_over.gif";
Pic[5] = "../images/layup/top_navi_antiques_over.gif";
Pic[6] = "../images/layup/top_navi_comm_over.gif";
Pic[7] = "../images/layup/top_navi_exhibition_over.gif";
Pic[8] = "../images/layup/top_navi_home_over.gif";
Pic[9] = "../images/layup/top_navi_stock_over.gif";
Pic[10] = "../images/layup/top_navi_contact_over.gif";

var preLoad = new Array()
for (var i = 0; i < Pic.length; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function changeImage(element, over) {
	element.src = element.src.substring(0, element.src.lastIndexOf("_")) + "_" + over + ".gif";
}

function levelColumns() {
	if (document.getElementById('left_middle').offsetHeight < document.getElementById('right_middle').offsetHeight) {
		document.getElementById('left_middle').style.paddingBottom = document.getElementById('right_middle').offsetHeight - (document.getElementById('left_middle').offsetHeight - 10) + 'px';
	} else {
		document.getElementById('right_middle').style.paddingBottom = document.getElementById('left_middle').offsetHeight - (document.getElementById('right_middle').offsetHeight - 10) + 'px';
	}
}

function centre(size,area) {
	return (area/2)-(size/2);
}

function open_window(fileName, windowName, windowWidth, windowHeight, scrollbars, resizable) {
	window.open(fileName, windowName, 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=' + scrollbars + ', resizable=' + resizable + ', left=' + centre(windowWidth, screen.availWidth) + ', top=' + centre(windowHeight, screen.availHeight) + ', width=' + windowWidth + ', height=' + windowHeight);
}

//Set Cookie Function
function setCookie(name, value, expires, path, domain, secure) {
	document.cookie = name + "=" + escape(value) + 
	((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
	((path == null) ? "" : "; path=" + path) +
	((domain == null) ? "" : "; domain=" + domain) +
	((secure == null) ? "" : "; secure");
}
//  End -->
