function donald() { //v3.0
var d=document; if(d.images){ if(!d.p) d.p=new Array();
var i,j=d.p.length,a=donald.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function curtis() { //v3.0
var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function find(n, d) { //v4.0
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=find(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function chad() { //v3.0
var i,j=0,x,a=chad.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
 if ((x=find(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3 || browserName == "Microsoft Internet Explorer" && browserVer>=4) {
 version = "n3";
}
else {
 version = "x";
}
if (version == "n3") {
aon = new Image(100,33); aon.src = "txtgrf/abouta.gif";
aoff = new Image(100,33); aoff.src = "txtgrf/about.gif";
bon = new Image(100,33); bon.src = "txtgrf/arta.gif";
boff = new Image(100,33); boff.src = "txtgrf/art.gif";
con = new Image(100,33); con.src = "txtgrf/funa.gif";
coff = new Image(100,33); coff.src = "txtgrf/fun.gif";
don = new Image(100,33); don.src = "txtgrf/disa.gif";
doff = new Image(100,33); doff.src = "txtgrf/dis.gif";
eon = new Image(100,33); eon.src = "txtgrf/linksa.gif";
eoff = new Image(100,33); eoff.src = "txtgrf/links.gif";
fon = new Image(100,33); fon.src = "txtgrf/homea.gif";
foff = new Image(100,33); foff.src = "txtgrf/home.gif";



}
function img_act(imgName) {
 if (version == "n3") {
 imgOn = eval(imgName + "on.src");
 document [imgName].src = imgOn;
 }
}
function img_inact(imgName) {
 if (version == "n3") {
 imgOff = eval(imgName + "off.src");
 document [imgName].src = imgOff;
 }
}

var NewWin01=null
function openNewWin01() {
	if(NewWin01 && !NewWin01.closed) NewWin01.close()
	NewWin01=window.open("hlp/sample.htm", "NewWin01", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400,top=0,left=200");
} 
var NewWin02=null
function openNewWin02() {
	if(NewWin02 && !NewWin02.closed) NewWin02.close()
	NewWin02=window.open("hlp/tree.html", "NewWin02", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=200,height=400,top=0,left=200");
} 
var NewWin03=null
function openNewWin03() {
	if(NewWin03 && !NewWin03.closed) NewWin03.close()
	NewWin03=window.open("167.html", "NewWin03", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=625,height=400,top=0,left=100");
}  
var NewWin04=null
function openNewWin04() {
	if(NewWin04 && !NewWin04.closed) NewWin04.close()
	NewWin04=window.open("madura.html", "NewWin04", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=625,height=400,top=0,left=100");
} 
function winClose(){
	if(NewWin01 && !NewWin01.closed) NewWin01.close()
	if(NewWin02 && !NewWin02.closed) NewWin02.close()
	if(NewWin03 && !NewWin03.closed) NewWin03.close()
	if(NewWin04 && !NewWin04.closed) NewWin04.close()
}



function contact() { 
var first = "dirt" 
var second= "curtisawalt.com" 

location.href="mailto:" + first + "@" + second; 

} 
