echo '<h2>Special Offer</h2>';
    echo '<p>', $a['offe'], '</p>';
    echo '</div>';
}
//if ($_SERVER['REMOTE_ADDR'] == '76.17.3.14' || $_SERVER['REMOTE_ADDR'] == '74.232.88.164') { // Heather: 74.232.88.164
echo '<div id="special_offer">';
echo '<h2>Customer Reviews</h2>';
$comments = new Pod('comments');
$comments->findRecords('id', -1, "t.vendor = '{$a['id']}'");
$total_comments = $comments->getTotalRows();
if ($total_comments > 0) {
    while ($comments->fetchRecord()) {
        $comment = $comments->get_field('comment');
        $name = $comments->get_field('name');
        $rating = $comments->get_field('rating');
        $rating_box = get_ratingbox($rating);
        echo "{$rating_box}<div class=\"pro_review\"><p>Review by: <b>{$name}</b></p>";
        echo "<p>{$comment}</p></div>";
    }
}
$rand1 = rand(1, 9);
$rand2 = rand(1, 9);
$rand3 = $rand1 * 2;
$rand4 = $rand2 * 2;
$spam_html = recaptcha_get_html($publickey, null, true);
$review_form = <<<HEREDOC
\t<p>Please fill out ALL the fields below. Your email is required for verification purposes only and will not be published. All fields are REQUIRED.</p>
\t<form action="/profile/{$slug}" method="post">
\t\t<div class="pro_reviewrow">
\t\t\t<div class="pro_reviewlabel"><label for="txt_name">Name:</label></div>
\t\t\t<div class="pro_reviewtxt"><input name="txt_name" type="text" size="50" id="txt_name" value="{$txt_name}" /></div>
        $avp[$vp->get_field('id')] = get_vendorfields($vp);
        //pod_query("UPDATE wp_pod_tbl_vendor_profiles SET list_views = list_views + 1 WHERE id = " . $vp->get_field('id'));
    }
}
//if (in_array($cur_cat, array('venues','dining', 'search')) ) {
//	show_googlemap($avp);
//}
shuffle($avp);
foreach ($avp as $vid => $fields) {
    // format our address, if at all
    $addr = '';
    if ($fields["is_venue"]) {
        $addr = "{$fields['mapaddr']}{$fields['city']}, {$fields['stat']} {$fields['zipc']}";
    }
    // create our rating box
    $rating_data = get_ratingbox($fields['rati']);
    echo <<<HEREDOC
\t\t\t\t\t\t\t<div class="guidelist_wrap">
\t\t\t\t\t\t\t\t<div class="guidelist_image"><a href="/profile/{$fields["slug"]}"><img src="{$fields["imag"]}" title="{$fields["summ"]}" alt="{$fields["summ"]}"/></a></div>
\t\t\t\t\t\t\t\t<div class="guidelist_content">
\t\t\t\t\t\t\t\t\t{$rating_data}<h2 class="guidelist_name"><a href="/profile/{$fields["slug"]}">{$fields["name"]}</a></h2>
\t\t\t\t\t\t\t\t\t<p>{$addr}</p>
\t\t\t\t\t\t\t\t\t<p class="guidelist_desc">{$fields["summ"]}</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
HEREDOC;
}
?>

	<div class="clear">&nbsp;</div>
	<div class="ruled left"><span class="head2 ruled-text-left">Blog Search Results</span></div>
$vp = new Pod('vendor_profiles');
$vp->findRecords('', 0, '', 'SELECT * FROM wp_pod_tbl_vendor_profiles WHERE profile_type = \'platinum\' AND rating > 4 ORDER BY NAME');
$total_vps = $vp->getTotalRows();
$avp = array();
if ($total_vps > 0) {
    while ($vp->fetchRecord()) {
        // get our fields from the POD
        $avp[$vp->get_field('id')] = get_vendorfields($vp);
    }
}
// shuffle our vendors and then only take the first two
shuffle($avp);
$avp = array_slice($avp, 0, 3, true);
foreach ($avp as $vid => $fields) {
    // create our rating box
    $rating_data = get_ratingbox($fields["rati"]);
    echo <<<HEREDOC
\t\t<div class="menu-featured-vendor" onclick="window.location.href='/profile/{$fields["slug"]}'">
\t\t\t<a href="/profile/{$fields["slug"]}"><img src="{$fields["imag"]}" title="{$fields["summ"]}" /></a>
\t\t\t<a href="/profile/{$fields["slug"]}">{$fields["name"]}</a>
\t\t\t<!-- <h2 class="guidelist_name"><a href="/profile/{$fields["slug"]}">{$fields["name"]}</a></h2> -->
\t\t\t{$rating_data}
\t\t</div>
\t\t
HEREDOC;
}
?>
	</div>
	<div id="menu-content-guidelist">
<?php 
$categories = new Pod('categories');
    $s2 .= '<img src="/media/images/logo-paypal.jpg" /> ';
}
if ($s2 != '') {
    $s .= "<p>We Accept... <br />{$s2}</p>";
}
$s .= '</div> <!-- class="post" -->';
ao_set_sidebar_content($s, "prewidget");
?>


<div class="post">

<?php 
$xml_url = urlencode(get_bloginfo('url') . "/profile/{$slug}/xml");
echo '<div class="pro_backlink"><p><a href="javascript:history.back();">&lt; Back to Search Results</a></div>';
$rating_data = get_ratingbox($a);
echo $rating_data, '<h2>', $a['name'], '</h2>';
echo '<small>', $a['tagl'], '</small>';
echo '<div class="entry">';
$have_video = false;
if ($a['video_first'] == '1') {
    if ($a['video_url'] != '' && substr($a['video_url'], 0, 4) == 'http') {
        echo '<div class="pro_video"><a href="', $a['video_url'], '" class="oembed">video</a></div>';
        echo '<p>&nbsp;</p>';
        $have_video = true;
    }
}
if ($a['image_count'] > 0) {
    echo <<<HEREDOC
\t\t\t\t\t\t<div class="monoslideshow"> 
\t\t\t\t\t\t\t<div class="swfobject" id="mo1_1" style="width:600px; height:470px;">