/*
 * default theme
 * Copyright(c) 2008, BET.
 * 
 * This code is licensed under BSD license. Use it as you wish, 
 * but keep this copyright intact.
 */


function ceilingDivision(total,divisor)
{if(total%divisor==0)
{return total/divisor;}
else
{return(total+(divisor-total%divisor))/divisor;}}
function applyHeight(heightVal,table,row,perRow)
{var i=0;while(i<perRow)
{table.eq(row*perRow+i).height(heightVal);i++;}}
jQuery(document).ready(function(){jQuery('#primaryNavigation .navMenu li:nth-child(2)').addClass('selected');PC.makeBlockAnchors('dl.barkerList dl.barker','mouseover','overlay');var table=jQuery('dl.medium4PR_text3PR.barkerList .Group2 dl.barker');var num_of_rows=ceilingDivision(table.length,3);var row_height=0;var tableIndex=0;var rowIndex=0;while(tableIndex<table.length)
{if(table.eq(tableIndex).height()>row_height)
{row_height=table.eq(tableIndex).height();}
if(rowIndex+1==num_of_rows)
{table.eq(tableIndex).css('border-bottom','none');}
if(tableIndex+1==table.length||tableIndex%3==2)
{applyHeight(row_height,table,rowIndex,3);rowIndex++;row_height=0;}
tableIndex++;}});
