

var b_ads   = new Array()
var b_rand  = new Array( 0, 1, 2, 3 );
var b_total = 4;

var b_ad = new Array()
var b_adtext = new Array()
var b_adurl = new Array()

b_ad[0]     = 'Fort Hill Bed &amp; Breakfast';
b_adtext[0] = 'Overlooking the Atlantic Ocean 75 Fort Hill Rd, Eastham, <nobr>508-240-2870</nobr>.  "Best location of any B+B on Cape Cod". Historic inn w/luxury suites + private cottage in National Seashore/Ocean views/nature trails/gourmet brkfst. Fodor&#39;s + Frommer&#39;s Choice.';
b_adurl[0]  = 'www.forthillbedandbreakfast.com';

b_ad[1]     = 'Nauset House Guesthouse';
b_adtext[1] = '1815 Nauset Rd, North Eastham 02651, <nobr>508-255-2327</nobr>. Pleasant location: Easy walk to Nauset Light Beach and CC Institute classes. Superlative ratings: "The GUESTHOUSE" - owned/operated by The Delfino Family. Wireless Internet. delfinol@comcast.net';
b_adurl[1]  = 'home.comcast.net/~delfinol';

b_ad[2]     = 'Morgan&#39;s Way Bed &amp; Breakfast';
b_adtext[2] = '9 Morgan&#39;s Way, Orleans, MA  02653, <nobr>508.255.0831</nobr>. 5 Acre Estate. Two B&amp;B rooms, prvt baths, AC, WIFI, gourmet bkfst, pool; gardens. Two wkly rentals include charming 1 BR cottage for 2 or 3 and 3 BR new custom home with all amenities; sleeps 8.';
b_adurl[2]  = 'www.morganswaybandb.com';

b_ad[3]     = 'Night Heron Cottage B&amp;B.';
b_adtext[3] = 'Cheery, restful setting in traditional Cape Cod home: 3 rms with pvt. baths, Q or K beds, WIFI, AC, TV/DVD, screened porch, continental breakfast served. "Come Rest in our Nest". <nobr>508.255.7063</nobr> or <nobr>845.797.1737</nobr>';
b_adurl[3]  = 'www.nightheroncottage.com'; 



shuffle = function(v){
    for(var j, x, i = v.length; i; j = parseInt(Math.random() * i), x = v[--i], v[i] = v[j], v[j] = x);
    return v;
};

shuffle(b_rand);

for ( cnt = 0; cnt < b_total; cnt++ )
  b_ads[cnt] = "<a href=\"http://" + b_adurl[b_rand[cnt]] + "\" class=\"adsurl\" target=\"_blank\"><span class=\"adstitle\">" + b_ad[b_rand[cnt]] + "</span><br><span class=\"textad\">" + b_adtext[b_rand[cnt]] + "</span><br><span class=\"adurl\">" + b_adurl[b_rand[cnt]] + "</span></a>";

function print_bigads()
{
document.write(
'   <div class="lthinblueblue">'  + b_ads[0] + '</div>\n' +
'   <div class="lthinubluepink">' + b_ads[1] + '</div>\n' +
'  </td>' +
'  <td class="tdbigads">&nbsp;<br>\n' +
'   <div class="lthinbluepink">' + b_ads[2] + '</div>\n' +
'   <div class="lthinublueblue">' + b_ads[3] + '</div>\n' );
  return true;
}  



