<!-- hide me
//--- Browser check ----------------------------------

function lib_bwcheck() {
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck()

//--- Mouseovers ----------------------------------

browserName=navigator.appName; 
browserVer=parseInt(navigator.appVersion);

if ((browserName=="Netscape" && browserVer >= 3) || (browserName=="Microsoft Internet Explorer" && browserVer >= 4))
 version="able";
//unable
else version="able";

if (version=="able") {
// Active images
var p0on = new Image();
p0on.src = "images/homeon.gif";
var p1on = new Image();
p1on.src = "images/abouton.gif";
var p2on = new Image();
p2on.src = "images/serviceson.gif";
var p3on = new Image();
p3on.src = "images/new_machineon.gif";
var p4on = new Image();
p4on.src = "images/old_machineon.gif";
var p5on = new Image();
p5on.src = "images/modernizationon.gif";
var p6on = new Image();
p6on.src = "images/accessorieson.gif";
var p7on = new Image();
p7on.src = "images/contactson.gif";

// Inactive images
var p0off = new Image();
p0off.src = "images/homeoff.gif";
var p1off = new Image();
p1off.src = "images/aboutoff.gif";
var p2off = new Image();
p2off.src = "images/servicesoff.gif";
var p3off = new Image();
p3off.src = "images/new_machineoff.gif";
var p4off = new Image();
p4off.src = "images/old_machineoff.gif";
var p5off = new Image();
p5off.src = "images/modernisationoff.gif";
var p6off = new Image();
p6off.src = "images/accessoriesoff.gif";
var p7off = new Image();
p7off.src = "images/contactsoff.gif";

}

function Swap(name,state) {
    document.images[name].src = eval(name + state + '.src');
}

function Swap2(name2,state2) {
    document.images[name2].src = eval(name2 + state2 + '.src');
}

//--- Get x,y co-ordinates of an image -----------------------------

function yPosFunc(id) {
	var bw=new lib_bwcheck();
	if(bw.ie)
		return getRealTop(container);
	else if(bw.ns4)
		return eval('document.'+id+'.y');
	else if(bw.ns6)
		return getRealTop(document.getElementById(id));
}
	
function xPosFunc(id) {
	var bw=new lib_bwcheck();
	if(bw.ie)
		return getRealLeft(container);
	else if(bw.ns4)
		return eval('document.'+id+'.x');
	else if(bw.ns6)
		return getRealLeft(document.getElementById(id));
}

function getRealLeft(el) {
    if (arguments.length==0) el = this;
    xPos = el.offsetLeft;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        xPos += tempEl.offsetLeft;
        tempEl = tempEl.offsetParent;
    }
    return xPos;
}

function getRealTop(el) {
    if (arguments.length==0) el = this;
    yPos = el.offsetTop;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        yPos += tempEl.offsetTop;
        tempEl = tempEl.offsetParent;
    }
    return yPos;
}
// 1) Clear Initial Form value on Focus

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 