gain = new Image();
gain.src = "images/gain_r.jpg";

hear = new Image();
hear.src = "images/hear_r.jpg";

why = new Image();
why.src = "images/why_r.jpg";

function MM_findObj(n, d) { //v3.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=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
	obj.visibility=v; }
}

var currLayerId = "main";

function togLayer(id)
{
	if(currLayerId) setDisplay(currLayerId, "none");
	if(id)setDisplay(id, "block");
	currLayerId = id;
	document.getElementById("htextbox").scrollTop=0;
}

var currLayerId2 = "main2";

function togLayer2(id)
{
	if(currLayerId2) setDisplay(currLayerId2, "none");
	if(id)setDisplay(id, "block");
	currLayerId2 = id;
}

var currLayerId3 = "main3";

function togLayer3(id)
{
	if(currLayerId3) setDisplay(currLayerId3, "none");
	if(id)setDisplay(id, "block");
	currLayerId3 = id;
} 

function setDisplay(id,value)
{
	var elm = document.getElementById(id);
	elm.style.display = value;
}

function classChange(id, newClass)
{
	identity=document.getElementById(id);
	identity.className=newClass;
}

function toggle(txt)
{
	MyTxt = document.getElementById(txt);
	MyTxt.style.display = (MyTxt.style.display == 'block') ? 'none' : 'block';
}

function popflash(theURL)
{
 window.open(theURL,"","height=596,width=1018,scrollbars=yes,resizable=yes,screenX=25,left=25,screenY=25,top=25");
}

function pophtml(theURL)
{
 window.open(theURL,"","height=608,width=1014,menubar=yes,toolbar=yes,scrollbars=yes,location=yes,resizable=yes,status=yes,screenX=25,left=25,screenY=25,top=25");
}

function popvideo(theURL)
{
 window.open(theURL,"","height=440,width=520,scrollbars=no,resizable=no,screenX=25,left=25,screenY=25,top=25");
}

window.defaultStatus ="Barton | Cotton";