<!--

function initBrowser()
{
	dom = (document.getElementById)? true:false;
	ie4 = (document.all && !dom)? true:false;
	ie5 = (dom && (navigator.appVersion.indexOf("MSIE 5")>-1 || navigator.appVersion.indexOf("MSIE 6")>-1))? true:false;
	ns4 = (document.layers)? true:false;
	ns6 = (document.createRange)? true:false;
	opera = (navigator.userAgent.indexOf("Opera")>-1)? true:false;
}

initBrowser();

// Style sheets
if ((navigator.appVersion.indexOf("Mac") != -1) || (ns4)) {
	document.write("<LINK rel='StyleSheet' HREF='styles/sturdy_mac.css' TYPE='text/css'>");
}else{
    document.write("<LINK rel='StyleSheet' HREF='./styles/sturdy_pc.css' TYPE='text/css'>");
}

// swap the main image and text with clicked on chairs on the chair description page
function swapImage(imageName,imageNumber){
	document.images['largeImg'].src=imageName;

	var targetId = "td_to_change"
	//var TD=document.getElementById("td_to_change");
  	//TD.innerHTML="Model "+imageNumber;
	//alert(TD.style.display);
	if (document.getElementById) { // NS6+, IE5.5+
		//alert("NS6+, IE5.5+");
		document.getElementById(targetId).innerHTML = "Model "+imageNumber;
		document.getElementById(targetId).style.fontWeight = "bold";
	} else if (document.all) { // IE4+
		//alert("IE4+");
		document.all[targetId].innerHTML = theText;
		document.all[targetId].style.fontWeight = "bold";
	} else if (document.layers) { // NS4 ONLY!
		// need to work on the Netscape side
		//alert("NS4 ONLY!");
		//theElement = document.layers[targetId];
		//alert(theElement);
		//theElement.write("Model "+imageNumber); // write to document
	}
}

//Disable right mouse click Script
var message="Function Disabled!";
function clickIE4(){
	if (event.button==2){
		alert(message);
		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){
		alert(message);
		return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

//document.oncontextmenu=new Function("alert(message);return false")
document.oncontextmenu=new Function("return false")

//-->
