/* Javascript to be run on the homepage */ matchFeaturedHeights=function(){ /* Foreach row of featured categories, equalize the heights of the spans in them */ var featured_rows=2; for (var i=1;i<=featured_rows;i++) { //alert ('row '+i); var maxheight=0; for (var j=1;j<=3;j++) { var id='r'+i+'c'+j; //alert ('id:'+id); var height=findheight(document.getElementById(id)); if (height>maxheight) maxheight=height; //alert ('id:'+id+'; height:'+height+'; maxheight:'+maxheight); } for (var j=1;j<=3;j++) { var id='r'+i+'c'+j; //alert ('id:'+id); //alert ('setting height of '+id+' to '+maxheight); setheight(document.getElementById(id),maxheight); } } } // match the heights of the left and right divs on the home page addListenerToEvent(window,'onload','matchFeaturedHeights()');