var menuTimerID = 0;
function ShowSub(s){
clearTimeout(menuTimerID);
var d=document.getElementById(s);
for (var i = 1; i<=10; i++) {
if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
}   
if (d) {d.style.display='block';
menuTimerID = setTimeout('HideThisMenu("' + d.id + '")',1400)    
} 
}
function HideThisMenu(s)
{
var d=document.getElementById(s);
d.style.display='none';
}
function menuGoLink(v){
var golink="";
switch(v){
case "advancedsearch":
golink="/scadv.aspx?Sender=TopMenu";
break;
case "newlistings":
golink="/newlistings.aspx?Sender=TopMenu";
break;
case "pricechanges":
golink="/pricechanged.aspx?Sender=TopMenu";
break;
case "atoz":
golink="/atoz.aspx?Sender=TopMenu";
break;
case "openhouses":
golink="/openhouses.aspx?Sender=TopMenu";
break;
case "builders":
golink="/builders?Sender=TopMenu"
break;
case "collection":
golink="/TheCollectionEntrance.asp?Sender=TopMenu"
break;
case "nationalsearch":
golink="/reloredirect.asp?Sender=TopMenu";
break;
case "openhouses":      
golink="/openhouses.aspx?Sender=TopMenu";
break;
case "findagent":
golink="/agentsearch.asp?Sender=TopMenu";
break;
case "offices":
golink="/office.asp?Sender=TopMenu";
break;
case "topclub":
golink="/topclub.aspx?Sender=TopMenu";
break;
case "mortgage":
golink="http://www.sibcyclinemortgageservices.com/?Sender=TopMenu";
break;
case "insurance":
golink="/services/insurance/insurance.asp?Sender=TopMenu";
break;
case "title":
golink="/services/title/title.asp?Sender=TopMenu";
break;
case "relocation":
golink="/communityguide/section.aspx?s=8&Sender=TopMenu";
break;
case "homeservices":
golink="/services/homeservices/homeservices_nf.asp?Sender=TopMenu";
break;
case "homewarranty":
golink="/services/homewarranty/homewarranty.aspx?Sender=TopMenu";
break;
case "schools":
golink="/schoollinks.asp?Sender=TopMenu";
break;
case "OHReportCards":
golink="http://ilrc.ode.state.oh.us/";
break;
case "KYReportCards":
golink="http://applications.education.ky.gov/schoolReportCardArchive/";
break;
case "INReportCards":
golink="http://www.doe.in.gov/htmls/performance.html";
break;
case "AreaConnect":
golink="http://www.areaconnect.com/";
break;
case "communityguide":
golink="/communityguide/communities.aspx?Sender=TopMenu";
break;
case "realestatecareers":
golink="http://www.joinsibcycline.com/welcome.aspx?Sender=TopMenu";
break;
case "staffpositions":
golink="http://www.joinsibcycline.com/jobpostings.aspx?Sender=TopMenu";
break;
case "aboutus":
golink="/aboutus.asp?Sender=TopMenu";
break;
case "services":
golink="/onestopservice.asp?Sender=Topmenu";
break;
}
window.location=golink;
}
