function Browser() {
	var b=navigator.appName;
	if (b.indexOf('Netscape')!=-1) this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	if (!b) alert('Unidentified browser.\nThis browser is not supported,');
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.ie6=(this.version.indexOf('MSIE 6.0')>0);
	this.opera=(this.b=="opera");
	this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
	this.def=(this.ie||this.dom); // most used browsers, for faster if loops
	var ua=navigator.userAgent.toLowerCase();
	if (ua.indexOf("win")>-1) this.platform="win32";
	else if (ua.indexOf("mac")>-1) this.platform="mac";
	else this.platform="other";
}
is=new Browser();
trees = new  Image;
trees.src = "images/trees_off.jpg"
treeson = new Image;
treeson.src = "images/trees_on.jpg";

oil = new  Image;
oil.src = "images/oil_off.jpg"
oilon = new Image;
oilon.src = "images/oil_on.jpg";

about = new  Image;
about.src = "images/about_off.jpg"
abouton = new Image;
abouton.src = "images/about_on.jpg";

landscapes = new  Image;
landscapes.src = "images/landscape_off.jpg"
landscapeson = new Image;
landscapeson.src = "images/landscape_on.jpg";

contact = new  Image;
contact.src = "images/contact_off.jpg"
contacton = new Image;
contacton.src = "images/contact_on.jpg";

other = new  Image;
other.src = "images/other_off.jpg"
otheron = new Image;
otheron.src = "images/other_on.jpg";

enter = new  Image;
enter.src = "images/enter_off.jpg"
enteron = new Image;
enteron.src = "images/enter_on.jpg";

otc = new  Image;
otc.src = "images/otc_off.jpg"
otcon = new Image;
otcon.src = "images/otc_on.jpg";

links = new  Image;
links.src = "images/links_off.jpg"
linkson = new Image;
linkson.src = "images/links_on.jpg";

function on(name)   {
        document[name].src = eval(name + "on.src");
}
function off(name)  {
        document[name].src = eval(name + ".src");
}

function footOn(name, img)   {
        document[name].src = eval(name + img + ".src");
}
function footOff(name)  {
        document[name].src = blank.src;
}

howWide = screen.availWidth
howDeep = screen.availHeight

var poplg = null
function popbig(page,wd,ht){

var w = (howWide/2)-320
var h = (howDeep/2)-240
if (is.ns){
	x = "screenX=" + w + ","
	y = "screenY=" + h + ","
} else{
	x = "left=" + w + ","
	y = "top=" + h + ","
}
props = "status=1,width=" + wd + ",height=" + ht + ",scrollbars=0,resizable=1,status=0\")"
props = x+y+props

poplg = window.open(page, "", props)
}

function launch(page,wd,ht){
	if (poplg == null || poplg.closed){
	popbig(page,wd,ht)
	}
	else{
	poplg.close()
	popbig(page,wd,ht)
	}
}



