function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

function FP_swapImgRestore() {//v1.0
 var doc=document,i; if(doc.$imgSwaps) { for(i=0;i<doc.$imgSwaps.length;i++) {
  var elm=doc.$imgSwaps[i]; if(elm) { elm.src=elm.$src; elm.$src=null; } } 
  doc.$imgSwaps=null; }
}

function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
 var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
  windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,'; 
 else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
 else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
 else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
 else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
 else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
 if(h!="") windowProperties+='height='+h; if(windowProperties!="") { 
  if( windowProperties.charAt(windowProperties.length-1)==',') 
   windowProperties=windowProperties.substring(0,windowProperties.length-1); } 
 window.open(url,name,windowProperties);
}

function popupwindow(url,popupname,parameters)
{
	window.open(url,popupname,parameters);
}


function generate_address( username, hostname, subject ) {
        var domain = ".com";
        var atsign = "&#64;";
        var addr = username + atsign + hostname + domain;
        document.write( 
          "<" + "a" + " " + "href=" + "mail" + "to:" + addr + "?subject=" + subject + ">" +
          addr +
          "<\/a>");
      }
      

var today_date= new Date()
var month=today_date.getMonth()
var today=today_date.getDate()
var year=today_date.getFullYear()

var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");


function bkgrnd() {} ; 

bg = new bkgrnd () ; 

n = 0 

bg[n++] = "http://www.burnettco.com/images/header1.gif" 


rnd = Math.floor(Math.random() * n) ; 

imageRandom = bg[rnd];


sidetext = new bkgrnd () ; 

m = 0 

sidetext[m++] = "http://www.burnettco.com/images/lefttext1.gif" 

sidetext[m++] = "http://www.burnettco.com/images/lefttext2.gif" 

sidetext[m++] = "http://www.burnettco.com/images/lefttext3.gif" 

sidetext[m++] = "http://www.burnettco.com/images/lefttext4.gif" 

sidetext[m++] = "http://www.burnettco.com/images/lefttext5.gif"

sidetext[m++] = "http://www.burnettco.com/images/lefttext6.gif"

sidetext[m++] = "http://www.burnettco.com/images/lefttext7.gif"

sidetext[m++] = "http://www.burnettco.com/images/lefttext8.gif"

sidetext[m++] = "http://www.burnettco.com/images/lefttext9.gif"

rnd2 = Math.floor(Math.random() * m) ; 

textRandom = sidetext[rnd2];


righttext = new bkgrnd () ; 

x = 0 

righttext[x++] = "http://www.burnettco.com/images/righttext1.gif" 

righttext[x++] = "http://www.burnettco.com/images/righttext2.gif" 

righttext[x++] = "http://www.burnettco.com/images/righttext3.gif" 

righttext[x++] = "http://www.burnettco.com/images/righttext4.gif" 

righttext[x++] = "http://www.burnettco.com/images/righttext5.gif"

righttext[x++] = "http://www.burnettco.com/images/righttext6.gif"

righttext[x++] = "http://www.burnettco.com/images/righttext7.gif"

righttext[x++] = "http://www.burnettco.com/images/righttext8.gif"

righttext[x++] = "http://www.burnettco.com/images/righttext9.gif"

rnd5 = Math.floor(Math.random() * x) ; 

RighttextRandom = righttext[rnd5];


dtext = new bkgrnd () ; 

l = 0 


rnd3 = Math.floor(Math.random() * l) ; 



function FP_changeProp() {//v1.0
 var args=arguments,d=document,i,j,id=args[0],o=FP_getObjectByID(id),s,ao,v,x;
 d.$cpe=new Array(); if(o) for(i=2; i<args.length; i+=2) { v=args[i+1]; s="o"; 
 ao=args[i].split("."); for(j=0; j<ao.length; j++) { s+="."+ao[j]; if(null==eval(s)) { 
  s=null; break; } } x=new Object; x.o=o; x.n=new Array(); x.v=new Array();
 x.n[x.n.length]=s; eval("x.v[x.v.length]="+s); d.$cpe[d.$cpe.length]=x;
 if(s) eval(s+"=v"); }
}

function FP_changePropRestore() {//v1.0
 var d=document,x; if(d.$cpe) { for(i=0; i<d.$cpe.length; i++) { x=d.$cpe[i];
 if(x.v=="") x.v=""; eval("x."+x.n+"=x.v"); } d.$cpe=null; }
}

