// Java Document
var iOS = false;
var IEBeta = false;
var Mac = false;

if(navigator.platform == "iPad" || navigator.platform == "iPhone" || navigator.platform == "iPod"){
	iOS = true;
}

if (navigator.appName + navigator.appVersion.substring(0,3) == "Microsoft Internet Explorer5.0"){
	IEBeta = true;
	//----can't handle 2 and 3 child sub menus
}

if (navigator.platform == "MacIntel") {
	Mac = true;
}

document.write('<table width="890" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('      <td>');


document.write('<div id="menu"> ');
document.write('              <ul class="menu"> ');

//--------------------------OCS LOGO------------------------


document.write('                <li><a href="index.html" class="parent"><span> <img src="images4/logos/logoWhiteOnBlack.jpg" width="148" height="40" /></span></a> </li> ');
//document.write('                <li><a href="index.html" class="parent"><span> <img src="images4/logos/logo_white2.png" width="182" height="54" border="0"/></span></a> </li> ');


//-------------------------SOLUTIONS-------------------------

if (iOS == true){
	document.write('                <li><a href="#" class="parent"><span>SOLUTIONS</span></a> ');
} else {
	document.write('                <li><a href="solutions/index.html" class="parent"><span>SOLUTIONS</span></a> ');
}

document.write('                  <div> ');
document.write('                    <ul> ');

if (iOS == true){
	document.write('                <li><a href="solutions/index.html"><span>Software Solutions</span></a></li> ');
}

if (IEBeta == true){
	document.write('                      <li><a href="solutions/industries/index.html"><span>Industries</span></a></li> ');
} else {
	if (iOS == true){
		document.write('                      <li><a href="#" class="parent"><span>Industries</span></a> ');
	} else {
		document.write('                      <li><a href="solutions/industries/index.html" class="parent"><span>Industries</span></a> ');
	}

	document.write('                        <div> ');
	document.write('                          <ul> ');
	document.write('                            <li><a href="solutions/industries/gc.html"><span>General Contracting</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/concrete.html"><span>Concrete</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/interior_walls_ceilings.html"><span>Interior Walls &amp; Ceilings</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/flooring.html"><span>Flooring</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/painting.html"><span>Painting</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/roofing.html"><span>Roofing</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/landscaping.html"><span>Landscaping</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/firestopping.html"><span>Fire Stopping</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/electrical.html"><span>Electrical</span></a></li> ');
	document.write('                            <li><a href="solutions/industries/masonry.html"><span>Masonry</span></a></li> ');
	document.write('                          </ul> ');
	document.write('                        </div> ');
	document.write('                      </li> ');
}

if (IEBeta == true){
	document.write('                      <li><a href="solutions/role/index.html"><span>Roles</span></a></li> ');
} else {
	if (iOS == true){
		document.write('                      <li><a href="#" class="parent"><span>Roles</span></a> ');
	} else {
		document.write('                      <li><a href="solutions/role/index.html" class="parent"><span>Roles</span></a> ');
	}

	document.write('                        <div> ');
	document.write('                          <ul> ');
	document.write('                            <li><a href="solutions/role/estimator.html"><span>Estimator</span></a></li> ');
	document.write('                            <li><a href="solutions/role/project_manager.html"><span>Project Manager</span></a></li> ');
	document.write('                          </ul> ');
	document.write('                        </div> ');
	document.write('                      </li> ');
}

document.write('                      <li><a href="solutions/podcast/index.html"><span>Podcast</span></a></li> ');
document.write('                      <li><a href="solutions/roi_calculator/index.html"><span>ROI Calculator</span></a></li> ');
document.write('                    </ul> ');
document.write('                  </div> ');
document.write('                </li> ');

//---------------------PRODUCTS-----------------------------


if (iOS == true){
	document.write('                <li><a href="#" class="parent"><span>PRODUCTS</span></a> ');
} else {
	document.write('                <li><a href="products/index.html" class="parent"><span>PRODUCTS</span></a> ');
}
document.write('                  <div> ');
document.write('                    <ul> ');

if (iOS == true){
	document.write('                <li><a href="products/index.html"><span>All Products</span></a></li> ');
}

if (IEBeta == true){
	document.write('                      <li><a href="products/ost/index.html"><span>On-Screen Takeoff</span></a></li> ');
} else {
	if (iOS == true){
		document.write('                      <li><a href="#" class="parent"><span>On-Screen Takeoff</span></a> ');
	} else {
		document.write('                      <li><a href="products/ost/index.html" class="parent"><span>On-Screen Takeoff</span></a> ');
	}
	document.write('                        <div> ');
	document.write('                          <ul> ');
	document.write('                            <li><a href="products/ost/index.html"><span>Professional</span></a></li> ');
	document.write('                            <li><a href="products/pv/index.html"><span>PlanViewer</span></a></li> ');
	document.write('                         </ul> ');
	document.write('                       </div> ');
	document.write('                      </li> ');
}

document.write('                      <li><a href="products/qb/index.html"><span>Quick Bid</span></a></li> ');
document.write('                      <li><a href="products/dpc/index.html"><span>Digital Prod. Control</span></a></li> ');
document.write('                      <li><a href="products/ost/digital_takeoff_table.html"><span>Digital Takeoff Table</span></a></li> ');
document.write('                      <li><a href="products/iphone/index.html"><span>iPhone Apps</span></a></li> ');

if (IEBeta == true){
	document.write('                     <li><a href="testimonials/index.html"><span>Testimonials</span></a></li> ');
} else {
	if (iOS == true){
		document.write('                     <li><a href="#" class="parent"><span>Testimonials</span></a> ');
	} else {
		document.write('                     <li><a href="testimonials/index.html" class="parent"><span>Testimonials</span></a> ');
	}
	document.write('                        <div> ');
	document.write('                          <ul> ');
	document.write('                            <li><a href="testimonials/case_studies.html"><span>Case Studies</span></a></li> ');
	document.write('                            <li><a href="testimonials/customer_videos.html"><span>Customer Videos</span></a></li> ');
	document.write('                          </ul> ');
	document.write('                        </div> ');
	document.write('                      </li> ');
}

document.write('                      <li><a href="support/FAQ_sysRequirements.html"><span>System Requirements</span></a></li> ');
document.write('                      <li><a href="https://www.websitealive4.com/4098/rRouter.asp?groupid=4098&departmentid=4680&websiteid=0" target="_new"><span>Sales Chat Live</span></a></li> ');
document.write('                      <li><a href="products/product_request.html"><span>Request Information</span></a></li> ');
document.write('                    </ul> ');
document.write('                  </div> ');
document.write('                </li> ');
     
//-----------------------TRAINING---------------------------

if (iOS == true){
	document.write('                <li><a href="#" class="parent"><span>TRAINING</span></a> ');
} else {
	document.write('                <li><a href="training/index.html" class="parent"><span>TRAINING</span></a> ');
}
document.write('                  <div> ');
document.write('                    <ul> ');

if (iOS == true){
	document.write('                <li><a href="training/index.html"><span>Training Department</span></a></li> ');
}

document.write('                      <li><a href="training/training_videos/index.html"><span>Training Videos</span></a></li> ');
document.write('                      <li><a href="training/regional_classes/index.html"><span>Regional Classes</span></a></li> ');
document.write('                      <li><a href="http://www.gotomeeting.com/join" target="_blank"><span>Join a Meeting</span></a></li> ');
document.write('                    </ul> ');
document.write('                  </div> ');
document.write('                </li> ');

//----------------------SUPPORT----------------------------
                
if (iOS == true){
	document.write('                <li><a href="#" class="parent"><span>SUPPORT</span></a> ');
} else {
	document.write('                <li><a href="support/index.html" class="parent"><span>SUPPORT</span></a> ');
}
document.write('                  <div> ');
document.write('                    <ul> ');
document.write('                      <li><a href="support/index.html"><span>Support Central</span></a></li> ');
document.write('                      <li><a href="support/FAQ.html"><span>FAQ\'s</span></a></li> ');
document.write('                      <li><a href="support/FAQ_authorization.html"><span>Authorization Support</span></a></li> ');
document.write('                      <li><a href="support/downloads/index.html"><span>Downloads</span></a></li> ');
document.write('                      <li><a href="https://www.websitealive4.com/4098/rRouter.asp?groupid=4098&departmentid=4698&websiteid=0" target="_new"><span>Support Chat Live</span></a></li> ');
document.write('                      <li><a href="support/help/tech_support_form.html"><span>Request Support</span></a></li> ');
document.write('                      <li><a href="http://www.gotoassist.com/sb/oncenter" target="blank"><span>Remote Assistance</span></a></li> ');
document.write('                    </ul> ');
document.write('                  </div> ');
document.write('                </li> ');

//-------------------COMPANY-------------------------------
                
if (iOS == true){
	document.write('                <li><a href="#" class="parent"><span>COMPANY</span></a> ');
} else {
	document.write('                <li><a href="company/index.html" class="parent"><span>COMPANY</span></a> ');
}
document.write('                  <div> ');
document.write('                    <ul> ');

if (IEBeta == true){
	document.write('                      <li><a href="company/index.html"><span>About Us</span></a></li> ');
} else {
	if (iOS == true){
		document.write('                      <li><a href="#" class="parent"><span>About Us</span></a> ');
	} else {
		document.write('                      <li><a href="company/index.html" class="parent"><span>About Us</span></a> ');
	}
	document.write('                        <div> ');
	document.write('                          <ul> ');
	
	if (iOS == true){
		document.write('                <li><a href="company/index.html"><span>About On Center</span></a></li> ');
	}
	
	document.write('                            <li><a href="company/executives.html"><span>Executive Team</span></a></li> ');
	document.write('                            <li><a href="company/location/index.html"><span>Location</span></a></li> ');
	document.write('                            <li><a href="company/careers/index.html"><span>Careers</span></a></li> ');
	document.write('                          </ul> ');
	document.write('                        </div> ');
	document.write('                      </li> ');
}

if (IEBeta == true){
	document.write('                       <li><a href="company/news/index.html"><span>News</span></a></li> ');
} else {
	if (iOS == true){
		document.write('                       <li><a href="#" class="parent"><span>News</span></a> ');
	} else {
		document.write('                       <li><a href="company/news/index.html" class="parent"><span>News</span></a> ');
	}
	document.write('                        <div> ');
	document.write('                          <ul> ');
	document.write('                            <li><a href="company/archives/index.html"><span>Archives</span></a></li> ');
	document.write('                            <li><a href="company/press/index.html"><span>Press Releases</span></a></li> ');
	document.write('                            <li><a href="company/articles/index.html"><span>Articles</span></a></li> ');
	document.write('                            <li><a href="company/RSS/index.html"><span>RSS Feeds</span></a></li> ');
	document.write('                            <li><a href="company/construction-news/index.html"><span>Construction News</span></a></li> ');
	document.write('                          </ul> ');
	document.write('                        </div> ');
	document.write('                      </li> ');
}

document.write('                      <li><a href="company/tradeshows/index.html"><span>Tradeshows &amp; Events</span></a></li> ');

if (IEBeta == true){
	document.write('                      <li><a href="company/partners/index.html"><span>Partners</span></a></li> ');
} else {
	if (iOS == true){
		document.write('                      <li><a href="#" class="parent"><span>Partners</span></a> ');
	} else {
		document.write('                      <li><a href="company/partners/index.html" class="parent"><span>Partners</span></a> ');
	}
	document.write('                        <div> ');
	document.write('                          <ul> ');
	document.write('                            <li><a href="company/partners/network/index.html"><span>Partner Network</span></a></li> ');
	document.write('                            <li><a href="company/partners/supply_companies/index.html"><span>Supply Companies</span></a></li> ');
	document.write('                            <li><a href="company/partners/databases/index.html"><span>Databases</span></a></li> ');
	document.write('                          </ul> ');
	document.write('                        </div> ');
	document.write('                      </li> ');
}

if (IEBeta == true){
	document.write('                       <li><a href="company/academic/index.html"><span>Academic</span></a></li> ');
} else {
	if (iOS == true){
		document.write('                       <li><a href="#" class="parent"><span>Academic</span></a> ');
	} else {
		document.write('                       <li><a href="company/academic/index.html" class="parent"><span>Academic</span></a> ');
	}
	document.write('                        <div> ');
	document.write('                          <ul> ');
	document.write('                            <li><a href="company/academic/program_news.html"><span>Program News</span></a></li> ');
	document.write('                            <li><a href="company/academic/student_resources.html"><span>Student Resources</span></a></li> ');
	document.write('                            <li><a href="company/academic/professor_resources.html"><span>Professor Resources</span></a></li> ');
	document.write('                           <li><a href="company/academic/purchase_program.html"><span>Purchase Program</span></a></li> ');
	document.write('                            <li><a href="company/academic/estimating_schools.html"><span>Estimating Schools</span></a></li> ');
	document.write('                          </ul> ');
	document.write('                        </div> ');
	document.write('                      </li> ');
}

document.write('                      <li><a href="company/associations/index.html"><span>Associations</span></a></li> ');
document.write('                      <li><a href="company/industry_links/index.html"><span>Industry Links</span></a></li> ');
document.write('                    </ul> ');
document.write('                  </div> ');
document.write('                </li> ');

//---------------------COMMUNITY-----------------------------
                
if (iOS == true){
	document.write('                 <li><a href="#" class="parent"><span>COMMUNITY</span></a> ');
} else {
	document.write('                 <li><a href="community/index.html" class="parent"><span>COMMUNITY</span></a> ');
}
document.write('                  <div> ');
document.write('                    <ul> ');

if (iOS == true){
	document.write('                <li><a href="community/index.html"><span>On Center Community</span></a></li> ');
}

document.write('                      <li><a href="clientreferral/index.html"><span>Client Referral Program</span></a></li> ');
document.write('                      <li><a href="msg/"><span>Forum</a></span></a></li> ');
document.write('                      <li><a href="http://jobs.oncenter.com" target="_blank"><span>Construction Job Board</span></a></li> ');
document.write('                      <li><a href="http://www.linkedin.com/company/on-center-software" target="_blank"><span>Linked In</a></span></a></li> ');
document.write('                      <li><a href="http://www.facebook.com/oncentersoftware" target="_blank"><span>Facebook</span></a></li> ');
document.write('                      <li><a href="http://www.twitter.com/oncenter" target="_blank"><span>Twitter</span></a></li> ');
document.write('                      <li><a href="http://www.youtube.com/user/oncentersoftware" target="_blank"><span>YouTube</span></a></li> ');
document.write('                    </ul> ');
document.write('                  </div> ');
document.write('                </li> ');

//------------------CONTACT--------------------------------

if (iOS == true){                
	document.write('                <li><a href="#" class="parent"><span>CONTACT</span></a> ');
} else {
	document.write('                <li><a href="contact/index.html" class="parent"><span>CONTACT</span></a> ');
}
document.write('                  <div> ');
document.write('                    <ul> ');
document.write('                      <li><a href="contact/index.html"><span>Contact Info</a></span></a></li> ');
document.write('                      <li><a href="products/product_request.html"><span>Request Information</span></a></li> ');
document.write('                      <li><a href="https://www.websitealive4.com/4098/rRouter.asp?groupid=4098&departmentid=4680&websiteid=0" onclick="window.open("https://www.websitealive4.com/4098/rRouter.asp?groupid=4098&departmentid=4680&websiteid=0","popup", "width=500,height=500,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0"); return false"><span>Sales Chat Live</span></a></li> ');
document.write('                      <li><a href="https://www.websitealive4.com/4098/rRouter.asp?groupid=4098&departmentid=4698&websiteid=0" target="_new"><span>Support Chat Live</span></a></li> ');
document.write('                      <li><a href="http://www.gotomeeting.com/join" target="_blank"><span>Join a Meeting</span></a></li> ');
document.write('                      <li><a href="contact/update_form.html"><span>Customer Update Form</span></a></li> ');
document.write('                      <li><a href="contact/feature_request.html"><span>Request a Feature</span></a></li> ');
document.write('                      <li><a href="contact/tell_a_friend.html"><span>Tell a Friend</span></a></li> ');
document.write('                    </ul> ');
document.write('                  </div> ');
document.write('                </li> ');

//--------------------------------------------------
                
document.write('              </ul> ');
document.write('            </div> ');
document.write(' 			<br/>');

document.write('  </td></tr>');
document.write('</table>');

document.write('<table width="890" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td width="148" class="style1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em>The first name in <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;construction software</em></td>');
document.write('    <td width="132" align="right" class="style1"><img src="images4/buttons/flag_USA.jpg" width="28" height="15" alt="U.S.A. - Toll Free Number" /> 800 880 8254 </td>');
document.write('    <td width="132" align="right" class="style1"><img src="images4/buttons/flas_UK.jpg" width="28" height="15" alt="United Kingdom - Toll Free Number" /> 0800 404 7754 </td>');
document.write('    <td width="132" align="right" class="style1"><img src="images4/buttons/flag_AU.jpg" width="28" height="15" alt="Australia - Toll Free Number" /> 1800 837 550 </td>');
document.write('    <td width="131" align="right" class="style1"><img src="images4/buttons/flag_NZ.jpg" width="28" height="15" alt="New Zealand - Toll Free Number" /> 0800 449 991 </td>');   
document.write('    <td width="131" align="right" class="style1"><img src="images4/buttons/flag_SA.jpg" width="28" height="15" alt="South Africa - Toll Free Number" /> 0800 983 777 </td>');   
document.write('  </tr>');
document.write('</table>');
