onload = function() {
	
brush = new Array("http://www.galleryatracine.com/images/aatopBorder1.png",
				  "http://www.galleryatracine.com/images/aatopBorder2.png",
				  "http://www.galleryatracine.com/images/aatopBorder3.png");
rand2 = Math.floor(Math.random()*brush.length);
currentBrush = brush[rand2];

document.getElementById("headerPaintbrush").src = currentBrush;
document.getElementById("headerPaintbrush").style.backgroundImage = "url("+currentBrush+")";
}

function get_randomCssNum()
{
    var ranCssNum= Math.floor(Math.random()*5);
	//var ranCssNum= Math.floor(Math.random()*Number of CSS you Have);
    return ranCssNum;
}
 
function getaCss()
{
   var whichCss=get_randomCssNum();
 
    var cssName=new Array(5)
	
     cssName[0]="<link rel='stylesheet' type='text/css' href='http://www.galleryatracine.com/colorThemes/color1.css'>";
     cssName[1]="<link rel='stylesheet' type='text/css' href='http://www.galleryatracine.com/colorThemes/color2.css'>";
     cssName[2]="<link rel='stylesheet' type='text/css' href='http://www.galleryatracine.com/colorThemes/color3.css'>";   
     cssName[3]="<link rel='stylesheet' type='text/css' href='http://www.galleryatracine.com/colorThemes/color4.css'>";
     cssName[4]="<link rel='stylesheet' type='text/css' href='http://www.galleryatracine.com/colorThemes/color5.css'>";
	 
  	return cssName[whichCss]
  }
  document.write(getaCss());
