document.write("<script language=\"Javascript\">\nvar kAds = new Array();\nkAds[0] = \'<a href=\"javascript:void(0)\" onClick=\"openTopad_2348(1294179);\">MUST SELL    Price Reduced to  $73,900 or Best Offer 1524 Prospect St. Sand</a>...<br /><br />\';\nkAds[1] = \'<a href=\"javascript:void(0)\" onClick=\"openTopad_2348(1333400);\">520 Taylor Rd. Perkins  ForSaleByOwner.com #21803707 $218,000.  419-357-537</a>...<br /><br />\';\n\n\nTopAds_Show(0, 3, \'\', \'<a href=\"/admarket/real_estate/for_sale/\">More Homes</a>\');\n\n//Writes out the full module display content by showing the header, random ads, and the footer\nfunction TopAds_Show(bHorizontal, nAdsToShow, sHeader, sFooter)\n{\n  var nRand;\n\n  //Check to see if the number of ads to show is set higher than the number of ads\n  //This would cause an infinite loop if we did not do this check\n  if (kAds.length < nAdsToShow)\n  {\n    nAdsToShow = kAds.length;\n  }\n\n  document.write(sHeader);\n\n  // If we are generating a horizontal module, we place the\n  // whole element in a table\n  if (bHorizontal)\n  {\n    document.write(\"<table border=\\\"0\\\">\");\n    document.write(\"<tr>\");\n  }\n\n  while((nAdsToShow > 0) && kAds.length)\n  {\n    nRand = Math.floor(Math.random() * kAds.length);\n\n    if (bHorizontal)\n    {\n      document.write(\"<td>\" + kAds[nRand] + \"</td>\");\n    }\n    else\n    {\n      document.write(kAds[nRand]);\n    }\n\n    // We use a \"cheap\" method for reducing the array because\n    // of cross browser issues with pop() and splice()\n    if (nRand != kAds.length)\n    {\n      kAds[nRand] = kAds[kAds.length-1];\n    }\n    kAds.length--;\n    nAdsToShow--;\n  }\n\n  // If we are generating a horizontal module, end the table\n  if (bHorizontal)\n  {\n    document.write(\"</tr>\");\n    document.write(\"</table>\");\n  }\n\n  document.write(sFooter);\n}\n\n//Opens the topads window to the correct location for the passed ad identification number\nfunction openTopad_2348(nAdID)\n{\n  sURL = \'http://www.sanduskyregister.com/shared-content/topads/show.php?adid=\' + nAdID;\n  sName = \'win\' + nAdID;\n  newwindow = window.open(sURL,sName,\'scrollbars=1,width=,height=,resizable=1,status=0,location=0,menubar=0,toolbar=0\');\n}\n</script>");
