

//WHAT BROWSER IS THIS 
//var isNav4, isIE4;
//if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
//    isNav4 = (navigator.appName == 'Netscape') ? true : false;
//    isIE4 = (navigator.appName.indexOf('Microsoft') != -1) ? true : false;
//}
//alert("layers = " + document.layers.length);

//WRITE TO JAVA CONSOLE 
//function writeln(msg) {
//	if (isNav4)
//		java.lang.System.out.println(msg);
//	else
//		window.status=msg;
//	return;
//}

//CHECK IF SPIDERED TO SUBFRAME - IF SO REDISPLAY AS FULLPAGE
function checkFullPage(mainpage) {
	if (window.name != "displayMain") {
//	   	if (isIE4) {
//			document.URL = "http://Merlin/" + mainpage + ".htm";
			document.URL = "http://uk-radiators.com/" + mainpage + ".htm";
		return;
//		}
	}
}

//CHANGE TEXT COLOUR
function chngTextColor(controlId, newColor){
//	if (isIE4) {
		document.all[controlId].style.color = newColor;
//	 	focusHolder.focus();
	 	return;
//	}
//	else if (isNav4) {
//		document.layers[controlId].style.color = newColor;
//	 	focusHolder.focus();
//	 	return;
//	}
}

//TOGGLE VISIBILITY 1
function toggleVis1(controlId){
//	if (isIE4) {
		document.all['controlTable3'].style.visibility = 'hidden';
		if (document.all[controlId].style.visibility == 'visible') {
			document.all[controlId].style.visibility = 'hidden';
		 	focusHolder.focus();
			return;
		}
		else {
			document.all[controlId].style.visibility = 'visible';
		 	focusHolder.focus();
			return;
		}
//	}
//	else if (isNav4) {
//		document.layers[controlId].style.color = newColor;
//	 	focusHolder.focus();
//	 	return;
//	}
}
//TOGGLE VISIBILITY 2
function toggleVis2(controlId){
//	if (isIE4) {
		document.all['controlTable2'].style.visibility = 'hidden';
		if (document.all[controlId].style.visibility == 'visible') {
			document.all[controlId].style.visibility = 'hidden';
		 	focusHolder.focus();
			return;
		}
		else {
			document.all[controlId].style.visibility = 'visible';
		 	focusHolder.focus();
			return;
		}
//	}
//	else if (isNav4) {
//		document.layers[controlId].style.color = newColor;
//	 	focusHolder.focus();
//	 	return;
//	}
}

//CHANGE PAGE
function chngPage(oldTopic, newTopic){
//	if (isIE4) {
		var pageTableOld = document.all[oldTopic].style;
	    	pageTableOld.visibility = "hidden";
	    	pageTableOld.zIndex = "50";
		var pageTableNew = document.all[newTopic].style;
	    	pageTableNew.visibility = "visible";
	    	pageTableNew.zIndex = "500";
	 	focusHolder.focus();
	 	return;
//	}
//	else if (isNav4) {
//		document.layers[topicCall].style.color = loctn;
//	 	focusHolder.focus();
//	 	return;
//	}
}

//DISPLAY NEW PAGE IN TARGET
function displayPage(newPage, newTarget){
//	if (isIE4) {
		document.all['controlTable2'].style.visibility = 'hidden';
		document.all['controlTable3'].style.visibility = 'hidden';
		window.top.frames[newTarget].document.URL = newPage;
	 	focusHolder.focus();
	 	return;
//	}
//	else if (isNav4) {
//		document.layers[topicCall].style.color = loctn;
//	 	focusHolder.focus();
//	 	return;
//	}
}

//DISPLAY NEW PAGE IN TARGET WITHOUT WIPING MENU 2
function displayPage2(newPage, newTarget){
//	if (isIE4) {
		window.top.frames[newTarget].document.URL = newPage;
	 	focusHolder.focus();
	 	return;
//	}
//	else if (isNav4) {
//	 	focusHolder.focus();
//	 	return;
//	}
}
//DISPLAY NEW PAGE IN TARGET WITHOUT WIPING MENU 3
function displayPage3(newPage, newTarget){
//	if (isIE4) {
		window.top.frames[newTarget].document.URL = newPage;
	 	focusHolder.focus();
	 	return;
//	}
//	else if (isNav4) {
//	 	focusHolder.focus();
//	 	return;
//	}
}











//CHANGE IMAGE SOURCE
function chngImg(callingObject, newImage){
//	if (isIE4) {
    		if (document.images[callingObject]) {
    			document.images[callingObject].src = newImage;
    			return;
		}
//	}
//	else if (isNav4) {
//		document.layers[topicCall].style.color = loctn;
//	 	focusHolder.focus();
//	 	return;
//	}
}



function go() 
{
window.location=document.getElementById("menu").value
}
