// JavaScript Document
function pixTimeChange() {
  var d = new Date();
  var t = d.getTime();
  var days = Math.floor(t/ (86400000));
  var el=document.getElementById('myimage');
  var courts = [];
courts[0]='/Courthouses/images/67/crawford.gif';
courts[1]='/Courthouses/images/67/geauga.gif';
courts[2]='/Courthouses/images/67/jackson.gif';
courts[3]='/Courthouses/images/67/mahoning.gif';
courts[4]='/Courthouses/images/67/perry.gif';
courts[5]='/Courthouses/images/67/trumbull.gif';
courts[6]='/Courthouses/images/67/belmont.gif';
courts[7]='/Courthouses/images/67/darke.gif';
courts[8]='/Courthouses/images/67/guernsey.gif';
courts[9]='/Courthouses/images/67/knox.gif';
courts[10]='/Courthouses/images/67/mercer.gif';
courts[11]='/Courthouses/images/67/portage.gif';
courts[12]='/Courthouses/images/67/union.gif';
courts[13]='/Courthouses/images/67/butler.gif';
courts[14]='/Courthouses/images/67/erie.gif';
courts[15]='/Courthouses/images/67/hardin.gif';
courts[16]='/Courthouses/images/67/lawrence.gif';
courts[17]='/Courthouses/images/67/monroe.gif';
courts[18]='/Courthouses/images/67/putnam.gif';
courts[19]='/Courthouses/images/67/vinton.gif';
courts[20]='/Courthouses/images/67/champaign.gif';
courts[21]='/Courthouses/images/67/fayette.gif';
courts[22]='/Courthouses/images/67/henry.gif';
courts[23]='/Courthouses/images/67/logan.gif';
courts[24]='/Courthouses/images/67/morgan.gif';
courts[25]='/Courthouses/images/67/sandusky.gif';
courts[26]='/Courthouses/images/67/williams.gif';
courts[27]='/Courthouses/images/67/clinton.gif';
courts[28]='/Courthouses/images/67/fulton.gif';
courts[29]='/Courthouses/images/67/hocking.gif';
courts[30]='/Courthouses/images/67/lucas.gif';
courts[31]='/Courthouses/images/67/noble.gif';
courts[32]='/Courthouses/images/67/shelby.gif';
courts[33]='/Courthouses/images/67/wyandot.gif';
courts[34]='/Courthouses/images/67/summit.gif';
courts[35]='/Courthouses/images/67/paulding.gif';
courts[36]='/Courthouses/images/67/madison.gif';
courts[37]='/Courthouses/images/67/holmes.gif';
courts[38]='/Courthouses/images/67/gallia.gif';
courts[39]='/Courthouses/images/67/coshocton.gif';
courts[40]='/Courthouses/images/67/wood.gif';
courts[41]='/Courthouses/images/67/seneca.gif';
courts[42]='/Courthouses/images/67/morrow.gif';
courts[43]='/Courthouses/images/67/lorain.gif';
courts[44]='/Courthouses/images/67/highland.gif';
courts[45]='/Courthouses/images/67/franklin.gif';
courts[46]='/Courthouses/images/67/clermont.gif';
courts[47]='/Courthouses/images/67/warren.gif';
courts[48]='/Courthouses/images/67/ross.gif';
courts[49]='/Courthouses/images/67/montgomery.gif';
courts[50]='/Courthouses/images/67/licking.gif';
courts[51]='/Courthouses/images/67/harrison.gif';
courts[52]='/Courthouses/images/67/fairfield.gif';
courts[53]='/Courthouses/images/67/carroll.gif';
courts[54]='/Courthouses/images/67/vanwert.gif';
courts[55]='/Courthouses/images/67/preble.gif';
courts[56]='/Courthouses/images/67/miami.gif';
courts[57]='/Courthouses/images/67/lake.gif';
courts[58]='/Courthouses/images/67/hancock.gif';
courts[59]='/Courthouses/images/67/defiance.gif';
courts[60]='/Courthouses/images/67/brown.gif';
courts[61]='/Courthouses/images/67/tuscarawas.gif';
courts[62]='/Courthouses/images/67/pickaway.gif';
courts[63]='/Courthouses/images/67/medina.gif';
courts[64]='/Courthouses/images/67/jefferson.gif';
courts[65]='/Courthouses/images/67/greene.gif';
courts[66]='/Courthouses/images/67/cuyahoga.gif';
courts[67]='/Courthouses/images/67/ashtabula.gif';
courts[68]='/Courthouses/images/67/scioto.gif';
courts[69]='/Courthouses/images/67/adams.gif';
courts[70]='/Courthouses/images/67/meigs.gif';
courts[71]='/Courthouses/images/67/allen.gif';
courts[72]='/Courthouses/images/67/hamilton.gif';
courts[73]='/Courthouses/images/67/ashland.gif';
courts[74]='/Courthouses/images/67/delaware.gif';

var text = [];
text[0]='Crawford County Courthouse';
text[1]='Geauga County Courthouse';
text[2]='Jackson County Courthouse';
text[3]='Mahoning County Courthouse';
text[4]='Perry County Courthouse';
text[5]='Trumbull County Courthouse';
text[6]='Belmont County Courthouse';
text[7]='Darke County Courthouse';
text[8]='Guernsey County Courthouse';
text[9]='Knox County Courthouse';
text[10]='Mercer County Courthouse';
text[11]='Portage County Courthouse';
text[12]='Union County Courthouse';
text[13]='Butler County Courthouse';
text[14]='Erie County Courthouse';
text[15]='Hardin County Courthouse';
text[16]='Lawrence County Courthouse';
text[17]='Monroe County Courthouse';
text[18]='Putnam County Courthouse';
text[19]='Vinton County Courthouse';
text[20]='Champaign County Courthouse';
text[21]='Fayette County Courthouse';
text[22]='Henry County Courthouse';
text[23]='Logan County Courthouse';
text[24]='Morgan County Courthouse';
text[25]='Sandusky County Courthouse';
text[26]='Williams County Courthouse';
text[27]='Clinton County Courthouse';
text[28]='Fulton County Courthouse';
text[29]='Hocking County Courthouse';
text[30]='Lucas County Courthouse';
text[31]='Noble County Courthouse';
text[32]='Shelby County Courthouse';
text[33]='Wyandot County Courthouse';
text[34]='Summit County Courthouse';
text[35]='Paulding County Courthouse';
text[36]='Madison County Courthouse';
text[37]='Holmes County Courthouse';
text[38]='Gallia County Courthouse';
text[39]='Coshocton County Courthouse';
text[40]='Wood County Courthouse';
text[41]='Seneca County Courthouse';
text[42]='Morrow County Courthouse';
text[43]='Lorain County Courthouse';
text[44]='Highland County Courthouse';
text[45]='Franklin County Courthouse';
text[46]='Clermont County Courthouse';
text[47]='Warren County Courthouse';
text[48]='Ross County Courthouse';
text[49]='Montgomery County Courthouse';
text[50]='Licking County Courthouse';
text[51]='Harrison County Courthouse';
text[52]='Fairfield County Courthouse';
text[53]='Carroll County Courthouse';
text[54]='Van Wert County Courthouse';
text[55]='Preble County Courthouse';
text[56]='Miami County Courthouse';
text[57]='Lake County Courthouse';
text[58]='Hancock County Courthouse';
text[59]='Defiance County Courthouse';
text[60]='Brown County Courthouse';
text[61]='Tuscarawas County Courthouse';
text[62]='Pickaway County Courthouse';
text[63]='Medina County Courthouse';
text[64]='Jefferson County Courthouse';
text[65]='Greene County Courthouse';
text[66]='Cuyahoga County Courthouse';
text[67]='Ashtabula County Courthouse';
text[68]='Scioto County Courthouse';
text[69]='Adams County Courthouse';
text[70]='Meigs County Courthouse';
text[71]='Allen County Courthouse';
text[72]='Hamilton County Courthouse';
text[73]='Ashland County Courthouse';
text[74]='Delaware County Courthouse';

var destination = [];
destination[0]='/Courthouses/crawford.asp';
destination[1]='/Courthouses/geauga.asp';
destination[2]='/Courthouses/jackson.asp';
destination[3]='/Courthouses/mahoning.asp';
destination[4]='/Courthouses/perry.asp';
destination[5]='/Courthouses/trumbull.asp';
destination[6]='/Courthouses/belmont.asp';
destination[7]='/Courthouses/darke.asp';
destination[8]='/Courthouses/guernsey.asp';
destination[9]='/Courthouses/knox.asp';
destination[10]='/Courthouses/mercer.asp';
destination[11]='/Courthouses/portage.asp';
destination[12]='/Courthouses/union.asp';
destination[13]='/Courthouses/butler.asp';
destination[14]='/Courthouses/erie.asp';
destination[15]='/Courthouses/hardin.asp';
destination[16]='/Courthouses/lawrence.asp';
destination[17]='/Courthouses/monroe.asp';
destination[18]='/Courthouses/putnam.asp';
destination[19]='/Courthouses/vinton.asp';
destination[20]='/Courthouses/champaign.asp';
destination[21]='/Courthouses/fayette.asp';
destination[22]='/Courthouses/henry.asp';
destination[23]='/Courthouses/logan.asp';
destination[24]='/Courthouses/morgan.asp';
destination[25]='/Courthouses/sandusky.asp';
destination[26]='/Courthouses/williams.asp';
destination[27]='/Courthouses/clinton.asp';
destination[28]='/Courthouses/fulton.asp';
destination[29]='/Courthouses/hocking.asp';
destination[30]='/Courthouses/lucas.asp';
destination[31]='/Courthouses/noble.asp';
destination[32]='/Courthouses/shelby.asp';
destination[33]='/Courthouses/wyandot.asp';
destination[34]='/Courthouses/summit.asp';
destination[35]='/Courthouses/paulding.asp';
destination[36]='/Courthouses/madison.asp';
destination[37]='/Courthouses/holmes.asp';
destination[38]='/Courthouses/gallia.asp';
destination[39]='/Courthouses/coshocton.asp';
destination[40]='/Courthouses/wood.asp';
destination[41]='/Courthouses/seneca.asp';
destination[42]='/Courthouses/morrow.asp';
destination[43]='/Courthouses/lorain.asp';
destination[44]='/Courthouses/highland.asp';
destination[45]='/Courthouses/franklin.asp';
destination[46]='/Courthouses/clermont.asp';
destination[47]='/Courthouses/warren.asp';
destination[48]='/Courthouses/ross.asp';
destination[49]='/Courthouses/montgomery.asp';
destination[50]='/Courthouses/licking.asp';
destination[51]='/Courthouses/harrison.asp';
destination[52]='/Courthouses/fairfield.asp';
destination[53]='/Courthouses/carroll.asp';
destination[54]='/Courthouses/vanwert.asp';
destination[55]='/Courthouses/preble.asp';
destination[56]='/Courthouses/miami.asp';
destination[57]='/Courthouses/lake.asp';
destination[58]='/Courthouses/hancock.asp';
destination[59]='/Courthouses/defiance.asp';
destination[60]='/Courthouses/brown.asp';
destination[61]='/Courthouses/tuscarawas.asp';
destination[62]='/Courthouses/pickaway.asp';
destination[63]='/Courthouses/medina.asp';
destination[64]='/Courthouses/jefferson.asp';
destination[65]='/Courthouses/greene.asp';
destination[66]='/Courthouses/cuyahoga.asp';
destination[67]='/Courthouses/ashtabula.asp';
destination[68]='/Courthouses/scioto.asp';
destination[69]='/Courthouses/adams.asp';
destination[70]='/Courthouses/meigs.asp';
destination[71]='/Courthouses/allen.asp';
destination[72]='/Courthouses/hamilton.asp';
destination[73]='/Courthouses/ashland.asp';
destination[74]='/Courthouses/delaware.asp';

var i = days % courts.length;
el.src = courts[i];
el.setAttribute('alt', text[i]);
el.setAttribute('title', text[i]);
document.getElementById('mylink').setAttribute('href', destination[i]);
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  pixTimeChange();
  start();
});

 