function divHover() {
/*this code to make it work in most browsers makes a list of every div tag in the page*/
 if (document.getElementById) {
  var x = document.getElementsByTagName('div');
 } else if (document.all) {
  var x = document.all.tags('div');
 } else {
  return;
 }

// this code to make the rollover

/*it will take any div whose class is 'inactive' and replace it to 'active' when moving your mouse over it the 
inverse effect will occur when moving your mouse outside*/

 for (var i=0;i<x.length;i++) {
  x[i].onmouseover = function () { if (this.className == 'inactive')
this.className = 'active'; }
  x[i].onmouseout = function () { if (this.className == 'active')
this.className = 'inactive'; }
 }
}

/*Call at the bottom of page:
<script type="text/javascript">
	divHover();
</script>
*/
