// OBCP 2007
// obcp.js
// revised 2009-5-13 changed link from Available properties to point to CoStar page

// ------------------------------------------------------------------------------
// http://www336.pair.com/ocpinc/search/search4.php
// search/recent_transactions.php
function writeMainMenu(path){
	if (path == "search"){
	document.write("<ul id=\"navlist\">")		  
	document.write("<li><a href=\"../index.shtml\" id=\"menu0\" onmouseover=\"showMenu(event, 0)\" onmouseout=\"hideMenu(event, 0)\">Home</a></li>")
	document.write("<li><a href=\"http://www.costar.com/costarconnect/MasterPage/Main.aspx?SiteId=23800&CheckSum=858314707&ForSale=y\" id=\"menu1\" onmouseover=\"showMenu(event, 1)\" onmouseout=\"hideMenu(event, 1)\">Properties for Sale</a></li> ")
	document.write("<li><a href=\"http://www.costar.com/costarconnect/MasterPage/Main.aspx?SiteId=23800&CheckSum=858314707\" id=\"menu6\" onmouseover=\"showMenu(event, 6)\" onmouseout=\"hideMenu(event, 6)\">Properties for Lease</a></li> ")

	document.write("<li><a href=\"recent_transactions.php\" id=\"menu2\" onmouseover=\"showMenu(event, 2)\" onmouseout=\"hideMenu(event, 2)\">Press/Recent Transactions</a></li>")
	document.write("<li><a href=\"#\" id=\"menu3\" onmouseover=\"showMenu(event, 3)\" onmouseout=\"hideMenu(event, 3)\">Market News &amp; Info&nbsp;&nbsp;</a></li>")
	document.write("<li><a href=\"#\" id=\"menu4\" onmouseover=\"showMenu(event, 4)\" onmouseout=\"hideMenu(event, 4)\">About Us&nbsp;&nbsp;</a></li>")
	document.write("<li><a href=\"../contactus.shtml\" id=\"menu5\" onmouseover=\"showMenu(event, 5)\" onmouseout=\"hideMenu(event, 5)\">Contact Us</a></li>")
	document.write("</ul>")
	} else {
	document.write("<ul id=\"navlist\">")		  
	document.write("<li><a href=\"index.shtml\" id=\"menu0\" onmouseover=\"showMenu(event, 0)\" onmouseout=\"hideMenu(event, 0)\">Home</a></li>")
	document.write("<li><a href=\"http://www.costar.com/costarconnect/MasterPage/Main.aspx?SiteId=23800&CheckSum=858314707&ForSale=y\" id=\"menu1\" onmouseover=\"showMenu(event, 1)\" onmouseout=\"hideMenu(event, 1)\">Properties for Sale</a></li> ")
	document.write("<li><a href=\"http://www.costar.com/costarconnect/MasterPage/Main.aspx?SiteId=23800&CheckSum=858314707\" id=\"menu6\" onmouseover=\"showMenu(event, 6)\" onmouseout=\"hideMenu(event, 6)\">Properties for Lease</a></li> ")

	document.write("<li><a href=\"search/recent_transactions.php\" id=\"menu2\" onmouseover=\"showMenu(event, 2)\" onmouseout=\"hideMenu(event, 2)\">Press/Recent Transactions</a></li>")
	document.write("<li><a href=\"#\" id=\"menu3\" onmouseover=\"showMenu(event, 3)\" onmouseout=\"hideMenu(event, 3)\">Market News &amp; Info&nbsp;&nbsp;</a></li>")
	document.write("<li><a href=\"#\" id=\"menu4\" onmouseover=\"showMenu(event, 4)\" onmouseout=\"hideMenu(event, 4)\">About Us&nbsp;&nbsp;</a></li>")
	document.write("<li><a href=\"contactus.shtml\" id=\"menu5\" onmouseover=\"showMenu(event, 5)\" onmouseout=\"hideMenu(event, 5)\">Contact Us</a></li>")
	document.write("</ul>")
	}
}
function writeFooter(path){
	if (path == "search"){
	  document.write("<a href=\"../index.shtml\">Home</a> | ")
	  document.write("<a href=\"http://www.costar.com/costarconnect/MasterPage/Main.aspx?SiteId=23800&CheckSum=858314707\" id=\"menu1\" onmouseover=\"showMenu(event, 1)\" onmouseout=\"hideMenu(event, 1)\">Available Properties</a> | ")
	  document.write("<a href=\"recent_transactions.php\">Recent Transactions</a> | ")
	  document.write("<a href=\"../press.html\">Press</a> | ")
	  document.write("<a href=\"../newsletter.html\">Newsletter</a> |  ")
	  document.write("<a href=\"../othernews.html\">Other News</a>  |")
	  document.write("<a href=\"../FAQ.html\">FAQ</a> <br>")
	  document.write("<a href=\"../company.shtml\">Company</a> |  ")
	  document.write("<a href=\"../brokerage.shtml\">Brokerage Team</a> |  ")
	  document.write("<a href=\"../management.shtml\">Management Team</a> |  ")
	  document.write("<a href=\"../founders.shtml\">Founders</a> |  ")
	  document.write("<a href=\"../contactus.shtml\">Contact Us</a> |  ")
	  document.write("<a href=\"../disclaimer.html\">Disclaimer</a> ")
	} else {
	  document.write("<a href=\"index.shtml\">Home</a> | ")
	  document.write("<a href=\"http://www.costar.com/costarconnect/MasterPage/Main.aspx?SiteId=23800&CheckSum=858314707\" id=\"menu1\" onmouseover=\"showMenu(event, 1)\" onmouseout=\"hideMenu(event, 1)\">Available Properties</a> | ")
	  document.write("<a href=\"search/recent_transactions.php\">Recent Transactions</a> | ")
	  document.write("<a href=\"press.html\">Press</a> | ")
	  document.write("<a href=\"newsletter.html\">Newsletter</a> |  ")
	  document.write("<a href=\"othernews.html\">Other News</a> | ")
	  document.write("<a href=\"FAQ.html\">FAQ</a>  <br>")
	  document.write("<a href=\"company.shtml\">Company</a> |  ")
	  document.write("<a href=\"brokerage.shtml\">Brokerage Team</a> |  ")
	  document.write("<a href=\"management.shtml\">Management Team</a> |  ")
	  document.write("<a href=\"founders.shtml\">Founders</a> |  ")
	  document.write("<a href=\"contactus.shtml\">Contact Us</a> |  ")
	  document.write("<a href=\"disclaimer.html\">Disclaimer</a> ")
	}
	document.write("<br><br>Copyright &copy; 2007 O'Brien Commercial Properties, Inc.")
}
// open email client 
//function noSpam(user,domain) {
//	locationstring = "mailto:" + user + "@" + domain;
//	window.location = locationstring;
//}

function writeSignUp(){
	document.write("<!-- BEGIN: Constant Contact Basic Opt-in Email List Form -->")
	document.write("<div align=\"center\">")
	document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" bgcolor=\"#ffffff\" style=\"border:2px solid #BFBFBF;\">")
	document.write("<tr>")
	document.write("<td align=\"center\" style=\"font-weight: bold; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:12px; color:#003366;\">Receive Our Quarterly Newsletter</td>")
	document.write("</tr><tr>")
	document.write("<td align=\"center\" style=\"border-top:2px solid #BFBFBF\">")
	document.write("<form name=\"ccoptin\" action=\"http://ui.constantcontact.com/d.jsp\" target=\"_blank\" method=\"post\" style=\"margin-bottom:2;\">")
	document.write("<input type=\"hidden\" name=\"m\" value=\"1101553964155\">")
	document.write("<input type=\"hidden\" name=\"p\" value=\"oi\">")
	document.write("<font style=\"font-weight: normal; font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:12px; color:#333333;\">Email:</font> <input type=\"text\" name=\"ea\" size=\"12\" value=\"\" style=\"font-size:10pt; border:1px solid #999999;\">")
	document.write("&nbsp;<input type=\"submit\" name=\"go\" value=\"Go\" class=\"submit\" style=\"font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:10pt;\">")
	document.write("</form>")
	document.write("</td></tr>")
	document.write("</table></div>")
	document.write("<!-- END: Constant Contact Basic Opt-in Email List Form -->")
	document.write("<!-- BEGIN: SafeSubscribe -->")
	document.write("<div align=\"center\">")
	document.write("<a href=\"http://www.constantcontact.com/safesubscribe.jsp\" target=\"_blank\"><img src=\"http://img.constantcontact.com/ui/images1/safe_subscribe_logo.gif\" border=\"0\" width=\"168\" height=\"14\" alt=\"\" vspace=\"5\"/></a>")
	document.write("</div>")
	document.write("<!-- END: SafeSubscribe -->")
}

function getAdobeReader(page){
	switch (page){
	case 'details':
	document.write("<br><br>")	
	document.write("<a href=\"http://www.adobe.com/products/acrobat/readstep2.html\" target=\"_blank\"><img src=\"../images/get_adobe_reader.gif\" width=\"112\" height=\"33\" border=\"0\"></a>")
	break;
	
	case 'press':
	document.write("<br><br>")	
	document.write("<a href=\"http://www.adobe.com/products/acrobat/readstep2.html\" target=\"_blank\"><img src=\"images/get_adobe_reader.gif\" width=\"112\" height=\"33\" border=\"0\"></a>")
	break;
	
	case 'news':
	document.write("<br><br>")	
	document.write("<a href=\"http://www.adobe.com/products/acrobat/readstep2.html\" target=\"_blank\"><img src=\"images/get_adobe_reader.gif\" width=\"112\" height=\"33\" border=\"0\"></a>")
	break;
	}
}
