﻿
var headerArray = new Array('handcuffs', 'fingerprints', 'body');

function getHeader(el)
{
	index = Math.floor(Math.random() * headerArray.length);
	var hurl = "http://www.sccja.org/images/headerbgs/" + headerArray[index] + ".png";
	if(navigator.userAgent.toLowerCase().indexOf("firefox") != -1)
		el.style.background = "url('" + hurl + "')";
	else{
	el.style.background = "none";
	el.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ hurl + "', sizingMethod='crop');";
	}
}
