var pageID = "";
var areaID = "";
var boolSideBar = false;

function openPDF(url,name) {
	openWindow(url,name,700,600);
	var str = url;
	var strLen = url.length;
	var strIndexStart =  strLen - 51;
	str = str.substring(strIndexStart);

}

function openWindow(url,name,width,height) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	var windFeatures = "top="+wint+",left="+winl+ ",scrollbars=yes,resizable=yes, status=yes,menubar=no,address=no, width="+width+", height="+height;
	var win = window.open(url,name,windFeatures);
	win.focus();
	return(win);
}

function headerTemplate(aID,pID,title) {
	pageID = pID.toLowerCase();
	areaID = aID.toLowerCase();

document.write('<link rel="stylesheet" type="text/css" href="/common/css/level2.css"/>');
document.write('<script language="Javascript" src="/common/scripts/webtrends.js"></script>');
document.write('<script language="Javascript" src="/common/scripts/sideBar.js"></script>');

switch (areaID) {
  case "thankyou" :
    document.write('<!--BEGIN ROI TRACKING Code-->');
    document.write('<script language="javascript" src="http://track.roiservice.com/track/track.aspx?ROIID=931655107000018"></script>');
    document.write('<script language="javascript">');
    document.write('	if (typeof(ROIID) + \'\' != \'undefined\') {');
    document.write('		TrackEvent(\'RequestMeeting\', 0);');
    document.write('	}');
    document.write('</script>');
    document.write('<!--END ROI TRACKING Code-->');
  break;
	
	default	:
	document.write('<!--BEGIN ROI TRACKING Code-->');
    document.write('<script language="javascript" src="http://track.roiservice.com/track/track.aspx?ROIID=931655107000018"></script>');
    document.write('<script language="javascript">');
    document.write('	if (typeof(ROIID) + \'\' != \'undefined\') {');
    document.write('		TrackEvent(\'LandingPage\', 0);');
    document.write('	}');
    document.write('</script>');
    document.write('<!--END ROI TRACKING Code-->');
}

document.write('<a name="top">');




document.write('<div id="layout">');


document.write('<div id="logo"><a href="/index.htm"><img src="/common/images/Adp_totalsource_logo.gif" border="0" alt="ADP TotalSource: Human Resource Solutions"></a></div>');

document.write('<div id="headerbar">');
document.write('	<table cellspacing="0" cellpadding="0" border="0" style="table-layout: fixed;">');
document.write('		<tr>');
document.write('			<td align="left" valign="top" width="215"><img src="/common/images/Adp_totalsource_tagline.gif" height="22" width="215" alt="ADP TotalSource:Bottom Line. Your team just got better"></td>');
document.write('			<td align="left" valign="top" width="330"><img src="/common/images/topbar_spacer.gif"  height="22" width="330" alt="spacer"></td>');
document.write('			<td align="left" valign="top" width="61" ><a href="http://www.adp.com"><img src="/common/images/topbar_about.gif"   height="22" width="61"  alt="about ADP" border="0"></a></td>');
document.write('			<td align="left" valign="top" width="53" ><a href="http://www.adp.com/corporate/careers/index.html"><img src="/common/images/topbar_careers.gif" height="22" width="53"  alt="careers at ADP" border="0"></a></td>');
document.write('			<td align="left" valign="top" width="48" ><a href="http://www.adp.com/search/index.htm"><img src="/common/images/topbar_search.gif"  height="22" width="48"  alt="search" border="0"></a></td>');
document.write('			<td align="left" valign="top" width="65" ><a href="/company/contactus.html"><img src="/common/images/topbar_contact.gif" height="22" width="65"  alt="contact ADP TotalSource" border="0"></a></td>');
document.write('		</tr>');
document.write('	</table>');
document.write('</div>');


switch (areaID) {
	case "challenges" :document.write('<div id="nav_photo"><img src="/common/images/Human_resources_outsourcing_1.jpg" width="157" height="50" alt=""Human Resources Outsourcing></div>'); 
		 break;		
	case "peo" :document.write('<div id="nav_photo"><img src="/common/images/nav_photo_2.jpg" width="157" height="50"></div>'); 
		 break;	
	case "myts" :document.write('<div id="nav_photo"><img src="/common/images/Hr_process_management_1.jpg" width="157" height="50" ALT="HR Process Management"></div>'); 
		 break;		
	case "how" :document.write('<div id="nav_photo"><img src="/common/images/nav_photo_5.jpg" width="157" height="50"></div>'); 
		 break;			  		 
	case "company" :document.write('<div id="nav_photo"><img src="/common/images/Peo_4.jpg" width="157" height="50" ALT="PEO – Professional Employer Organization"></div>'); 
		 break;	
	case "sitemap" :document.write('<div id="nav_photo"><img src="/common/images/Peo_4.jpg" width="157" height="50" ALT="PEO – Professional Employer Organization"></div>'); 
		 break;	
	case "request" :document.write('<div id="nav_photo"><img src="/common/images/Peo_4.jpg" width="157" height="50" ALT="PEO – Professional Employer Organization"></div>'); 
		 break;			 			 	
 	case "landingpage"	:document.write('<div id="nav_photo"><img src="/common/images/nav_photo_5.jpg" width="157" height="50"></div>'); 
		 break;			 
 	case "alliances"	:document.write('<div id="nav_photo"><img src="/common/images/nav_photo_5.jpg" width="157" height="50"></div>'); 
		 break;			
	default	:document.write('<div id="nav_photo"><img src="/common/images/nav_photo_5.jpg" width="157" height="50"></div>'); 
					 	  	 		 	 	 		 				
}

//Nav - Top section Start
document.write('<div id="nav_column">');
document.write('<div id="nav_content">');
//Nav - Top section End

//Nav - Open/Close navigation sections  

switch (areaID) {

case "challenges" :
		document.write('<div id="navcopy1st"><img src="/common/images/trans.gif" height="1" width="1"></div>');
    document.write('<div id="navSelected"><a href="/human_resources_outsourcing/index.html"><b>Your Challenges</b></a></div><br>');
		document.write('<div id="navcopy">');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/benefits/employee_benefits_management.html">Health & Benefits</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/payroll/automated_payroll_processing.html">Payroll & Tax</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/human_resource_administration/human_resource_administration.html">HR Administration</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/regulatory_compliance/regulatory_compliance.html">Regulatory Compliance</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/risk_safety/risk_safety_management.html">Risk & Safety Management</a><br>');
    document.write('</div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/peo/peo.html">Understanding PEOs & <br>Co-employment</a></div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/hrmanagementtools/human_resource_support.html">Learn more about our<br>Online HR Management Tools</a></div>	');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd">');
    document.write('<a href="/company/human_resource_solutions.html">Our Company</a><br>');
    document.write('</div>');
		document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
 break;	
 
case "peo" :
    document.write('<div id="navcopy1st">');
    document.write('<a href="/human_resources_outsourcing/index.html">Your Challenges</a>');
    document.write('</div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navSelected"><a href="/peo/peo.html"><b>Understanding PEOs & <br>Co-employment</b></a></div><br>');
		document.write('<div id="navcopy">');
		document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/peo/human_resource_outsourcing.html">Why HR Outsourcing?</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/peo/professional_employer_organization.html">What is a PEO?</a><br>');
	    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/peo/co_employment.html">What is Co-Employment?</a><br>');
		    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/peo/human_resource_and_adp_totalsource.html">How does ADP TotalSource fit?</a><br>');
    document.write('</div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/hrmanagementtools/human_resource_support.html">Learn more about our<br>Online HR Management Tools</a></div>	');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd">');
    document.write('<a href="/company/human_resource_solutions.html">Our Company</a>');
    document.write('</div>');
		document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
 break;	 


case "how" :
		document.write('<div id="navcopy1st"><img src="/common/images/trans.gif" height="1" width="1"></div>');
    document.write('<div id="navSelected"><a href="/human_resources_outsourcing/index.html"><b>Your Challenges</b></a></div><br>');
		document.write('<div id="navcopy">');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/benefits/employee_benefits_management.html">Health & Benefits</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/payroll/automated_payroll_processing.html">Payroll & Tax</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/human_resource_administration/human_resource_administration.html">HR Administration</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/regulatory_compliance/regulatory_compliance.html">Regulatory Compliance</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/human_resources_outsourcing/risk_safety/risk_safety_management.html">Risk & Safety Management</a><br>');
    document.write('</div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/peo/peo.html">Understanding PEOs & <br>Co-employment</a></div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/hrmanagementtools/human_resource_support.html">Learn more about our<br>Online HR Management Tools</a></div>	');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd">');
    document.write('<a href="/company/human_resource_solutions.html">Our Company</a><br>');
    document.write('</div>');
		document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
 break;	
 
case "myts" :
    document.write('<div id="navcopy1st">');
    document.write('<a href="/human_resources_outsourcing/index.html">Your Challenges</a>');
    document.write('</div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/peo/peo.html">Understanding PEOs & <br>Co-employment</a></div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navSelected"><a href="/hrmanagementtools/human_resource_support.html"><b>Learn more about our<br>Online HR Management Tools</b></a></div><br>');
    document.write('<div id="navcopy">');
		document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/hrmanagementtools/administrative_management.html">Administrative Access</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/hrmanagementtools/employee_self_service.html">Employee Access</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="javascript:void(openWindow(\'/hrmanagementtools/flash/myts_tour.html\',\'MyTSOnlineTour\',\'750\',\'600\'))">Online Tour</a><br>');
    document.write('</div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd">');
    document.write('<a href="/company/human_resource_solutions.html">Our Company</a>');
    document.write('</div>');
		document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
 break;	

case "company" :
    document.write('<div id="navcopy1st">');
    document.write('<a href="/human_resources_outsourcing/index.html">Your Challenges</a>');
    document.write('</div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/peo/peo.html">Understanding PEOs & <br>Co-employment</a></div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/hrmanagementtools/human_resource_support.html">Learn more about our<br>Online HR Management Tools</a></div>	');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navSelected"><a href="/company/human_resource_solutions.html"><b>Our Company</b></a></div><br>');
		document.write('<div id="navcopy">');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/company/peo_co_employment.html">About Us</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/company/management.html">Management Profiles</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/company/news.html">News & Press Releases</a><br>');
    document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/company/accreditations.html">Accreditations</a><br>');
		document.write('<img src="/common/images/arrow_red_small.gif" alt=""> <a href="/company/contactus.html">Contact Us</a><br>');
    document.write('</div>');
		document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
 break;
 
 default :
		document.write('<div id="navcopy1st">');
    document.write('<a href="/human_resources_outsourcing/index.html">Your Challenges</a>');
    document.write('</div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/peo/peo.html">Understanding PEOs & <br>Co-employment</a></div>');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd"><a href="/hrmanagementtools/human_resource_support.html">Learn more about our<br>Online HR Management Tools</a></div>	');
    document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>');
    document.write('<div id="navcopy2nd">');
    document.write('<a href="/company/human_resource_solutions.html">Our Company</a>');
    document.write('</div>');
		document.write('<div id="nav_separator"><img src="/common/images/nav_dotted.gif"></div>'); 
 }
//}

//Nav - Bottom section Start

document.write('<div id="navcopy2nd">');
document.write('<a href="/company/request.html">Request a Free Consultation</a>');
document.write('<br>');
document.write('</div>');
document.write('<div id="navcopylast">');
document.write('<a href="/index.htm">TotalSource Home</a><br>');
document.write('</div>');
document.write('</div>');
document.write('<div id="trans_stripe"><img src="/common/images/trans.gif" height="1" width="1"></div>');
document.write('<div id="racing_stripe_1"><img src="/common/images/trans.gif" height="1" width="1"></div>');
document.write('<div id="trans_stripe"><img src="/common/images/trans.gif" height="1" width="1"></div>');
document.write('<div id="racing_stripe_2"><img src="/common/images/trans.gif" height="1" width="1"></div>');
document.write('</div>');
//Nav - Bottom section End
	 
document.write('<div id="sectionbar"></div>');

switch (areaID) {
	case "company" :document.write('<div id="sectiongif"><img alt="ADP TotalSource - PEO" src="/common/images/peo_head.gif"></div>'); 
		 break;	
	case "sitemap" :document.write('<div id="sectiongif"><img alt="Site Map" src="/common/images/secthead_sitemap.gif"></div>'); 
		 break;		
	case "request" :document.write('<div id="sectiongif"><img alt="Request a Meeting" src="/common/images/secthead_request.gif"></div>'); 
		 break;			 
	case "challenges" :document.write('<div id="sectiongif"><img alt="Human Resources Outsourcing: Your challenges as a business owner" src="/common/images/Human_resources_outsourcing_head.gif"></div>'); 
		 break;		
	case "peo" :document.write('<div id="sectiongif"><img alt="Understanding PEOs and Co-employment" src="/common/images/secthead_understanding.gif"></div>'); 
		 break;	
	case "how" :document.write('<div id="sectiongif"><img alt="How ADP TotalSource can help you" src="/common/images/secthead_how.gif"></div>'); 
		 break;		
	case "myts" :document.write('<div id="sectiongif"><img alt="Learn More About Our HR Process Management Tools" src="/common/images/Hr_process_management_head.gif"></div>'); 
		 break;		
	case "aboutus" :document.write('<div id="sectiongif"><img alt="About Us" src="/common/images/secthead_about.gif"></div>'); 
		 break;		
	case "accreditations" :document.write('<div id="sectiongif"><img alt="Accreditations" src="/common/images/secthead_accreditations.gif"></div>'); 
		 break;	
	case "news" :document.write('<div id="sectiongif"><img alt="News & Press Releases" src="/common/images/secthead_news.gif"></div>'); 
		 break;		
	case "management" :document.write('<div id="sectiongif"><img alt="ADP TotalSource - PEO" src="/common/images/peo_head.gif"></div>'); 
		 break;		
	case "alliances" :document.write('<div id="sectiongif"><img alt="Alliance" src="/common/images/secthead_alliances.gif"></div>'); 
		 break;		
  case "search" :document.write('<div id="sectiongif"><img alt="Search" src="/common/images/secthead_search.gif"></div>'); 
  		 break;	
  case "thankyou" :document.write('<div id="sectiongif"><img alt="Thank You" src="/common/images/secthead_thankyou.gif"></div>'); 
  		 break;				 	 
  case "404error" :document.write('<div id="sectiongif"><img alt="Page Not Found" src="/common/images/secthead_404.gif"></div>'); 
  		 break;			
  case "500error" :document.write('<div id="sectiongif"><img alt="Server Error" src="/common/images/secthead_500.gif"></div>'); 
  		 break;				 	 	 	 		 	 	 	 	 	 			

}

document.write('<div id="sticky"><a href="/company/request.html"><img alt="Make ADP TotalSource your next new hire" border="0" src="/common/images/level2_sticky.gif"></a></div>');



}




	