/*
Image Preloading ------------------------|
Author: 2Dmedia Ltd
Notes: Build up img_src Array with the list of images you want to preload (usually hovers). Last element mustn't have a comma to close.
*/
img_src = Array(
"/images/go_button_hover.jpg",
"/images/submit_enquiry_hover.jpg"
);
 
img_array = new Array();
 
for (counter in img_src) {
img_array[counter] = new Image();
img_array[counter].src = img_src[counter];
}


function show_nav(ele, class, tag){
	for(var x=0; x< ele.childNodes.length; x++){
		ele.className = class;
		if (ele.childNodes[x].nodeName == tag){
			ele.childNodes[x].style.display = 'block';
		}
	}
}

function hide_nav(ele, class, tag){
	for(var x=0; x< ele.childNodes.length; x++){
		ele.className = class;
		if (ele.childNodes[x].nodeName == tag){
			ele.childNodes[x].style.display = 'none';
		}
	}
}
