Put < div align="center"> your ad code after this <?php include_once( TEMPLATEPATH . '/includes/theme-searchbar.php' ); ?> in the header.php
Put < div align="center"> your ad code after this <?php include_once( TEMPLATEPATH . '/includes/theme-searchbar.php' ); ?> in the header.php
Try the code below;
$cats = get_terms('ad_cat', 'hide_empty=0&hierarchical=0&pad_counts=1&exclude=57,197&show_cou nt='.$cp_cat_parent_count.'&orderby='.$cp_cat_orde rby.'&order=ASC');