// ###### GET BRAND NAME ########### 
function GetTemplate() {
  var urlString = location.href.toLowerCase();
  site1 = urlString.lastIndexOf("index");
  site2 = urlString.lastIndexOf("company");
  site3 = urlString.lastIndexOf("clients");
  site4 = urlString.lastIndexOf("services");
  site5 = urlString.lastIndexOf("news");
  site6 = urlString.lastIndexOf("partners");
  site7 = urlString.lastIndexOf("contactus");
  site8 = urlString.lastIndexOf("downloads");
  site9 = urlString.lastIndexOf("disclaimer");
  site10 = urlString.lastIndexOf("privacy");
  
   
  siteName="index";
  maxNum=site1;
  
  if (site2 > maxNum) {siteName="company"; maxNum=site2;}
  if (site3 > maxNum) {siteName="clients"; maxNum=site3;}
  if (site4 > maxNum) {siteName="services"; maxNum=site4;}
  if (site5 > maxNum) {siteName="news"; maxNum=site5;}
  if (site6 > maxNum) {siteName="partners"; maxNum=site6;}
  if (site7 > maxNum) {siteName="contactus"; maxNum=site7;}
  if (site8 > maxNum) {siteName="downloads"; maxNum=site8;}
  if (site9 > maxNum) {siteName="disclaimer"; maxNum=site9;}
  if (site10 > maxNum) {siteName="privacy"; maxNum=site10;}
  
  return siteName;
}

// ###### GET SUB NAME ########### 
function GetSubTemplate() {
var urlString = location.href.toLowerCase();
subsite10 = urlString.lastIndexOf("index");
subsite11 = urlString.lastIndexOf("principals");
subsite12 = urlString.lastIndexOf("corestrenghts");
subsite13 = urlString.lastIndexOf("employment");
subsite14 = urlString.lastIndexOf("businessstrategy");
subsite15 = urlString.lastIndexOf("productdevelopment");
subsite16 = urlString.lastIndexOf("marketimpact");
subsite17 = urlString.lastIndexOf("webimpact");
subsite18 = urlString.lastIndexOf("saleschanneldevelopment");
subsite19 = urlString.lastIndexOf("financefunding");
subsite20 = urlString.lastIndexOf("legalintellectualproperty");
subsite21 = urlString.lastIndexOf("organizationaldevelopment");
subsite22 = urlString.lastIndexOf("projectapproach");
subsite23 = urlString.lastIndexOf("requestaconsultation");
subsite24 = urlString.lastIndexOf("becomeapartner");

subsiteName="";
maxNum=subsite10;
  
  if (subsite11 > maxNum) {subsiteName="principals"; maxNum=subsite11;}
  if (subsite12 > maxNum) {subsiteName="corestrenghts"; maxNum=subsite12;}
  if (subsite13 > maxNum) {subsiteName="employment"; maxNum=subsite13;}
  if (subsite14 > maxNum) {subsiteName="businessstrategy"; maxNum=subsite14;}
  if (subsite15 > maxNum) {subsiteName="productdevelopment"; maxNum=subsite15;}
  if (subsite16 > maxNum) {subsiteName="marketimpact"; maxNum=subsite16;}
  if (subsite17 > maxNum) {subsiteName="webimpact"; maxNum=subsite17;}
  if (subsite18 > maxNum) {subsiteName="saleschanneldevelopment"; maxNum=subsite18;}
  if (subsite19 > maxNum) {subsiteName="financefunding"; maxNum=subsite19;}
  if (subsite20 > maxNum) {subsiteName="legalintellectualproperty"; maxNum=subsite20;}
  if (subsite21 > maxNum) {subsiteName="organizationaldevelopment"; maxNum=subsite21;}
  if (subsite22 > maxNum) {subsiteName="projectapproach"; maxNum=subsite22;}
  if (subsite23 > maxNum) {subsiteName="requestaconsultation"; maxNum=subsite23;}
  if (subsite24 > maxNum) {subsiteName="becomeapartner"; maxNum=subsite24;}
  return subsiteName;
}

// ###### GET CSS LINK ########### 
function GetTemplateCSS() { 
  siteName=GetTemplate();

  COD="_front";

  if (siteName == "company") 	{COD="_sub";}
  if (siteName == "clients") 	{COD="_sub";}
  if (siteName == "services") 	{COD="_sub";}
  if (siteName == "news") 		{COD="_sub";}
  if (siteName == "partners") 	{COD="_sub";}
  if (siteName == "contactus") 	{COD="_sub";}
  if (siteName == "downloads") 	{COD="_sub";}
  if (siteName == "disclaimer") {COD="_sub";}
  if (siteName == "privacy") 	{COD="_sub";}
  
document.write("<link rel='stylesheet' type='text/css' href='/template/css/style"+COD+".css'>");
}

// ###### GET TITLES ########### 
function GetTemplateTITLE() { 
  siteName=GetTemplate();
  subsiteName=GetSubTemplate();


  TTL		=	" - Home";
  SUBTTL	=	"";

  if (siteName == "company") 	{TTL=" - Company";}
  if (siteName == "clients") 	{TTL=" - Our Clients";}
  if (siteName == "services") 	{TTL=" - Services";}
  if (siteName == "news") 		{TTL=" - News";}
  if (siteName == "partners") 	{TTL=" - Our Partners";}
  if (siteName == "contactus") 	{TTL=" - Contact Information";}
  if (siteName == "downloads") 	{TTL=" - Download";}
  if (siteName == "disclaimer") {TTL=" - Disclaimer";}
  if (siteName == "privacy") 	{TTL=" - Privacy Policy";}
  
  if (siteName == "company") 	{
  if (subsiteName == "principals") 				{SUBTTL=" - Principals";}
  if (subsiteName == "corestrenghts") 			{SUBTTL=" - Core Strenghts";}
  if (subsiteName == "employment") 				{SUBTTL=" - Employment Opportunities";}
  }
  if (siteName == "services") 	{
  if (subsiteName == "businessstrategy") 			{SUBTTL=" - Business Strategy";}
  if (subsiteName == "productdevelopment") 			{SUBTTL=" - Product Development";}
  if (subsiteName == "marketimpact") 				{SUBTTL=" - Market Impact";}
  if (subsiteName == "webimpact") 					{SUBTTL=" - Web &amp; Media Impact";}
  if (subsiteName == "saleschanneldevelopment") 	{SUBTTL=" - Sales & Channel Development";}
  if (subsiteName == "financefunding") 				{SUBTTL=" - Finance & Funding";}
  if (subsiteName == "legalintellectualproperty")	{SUBTTL=" - Legal & Intellectual Property";}
  if (subsiteName == "organizationaldevelopment") 	{SUBTTL=" - Organizational Readiness / Development";}
  if (subsiteName == "projectapproach") 			{SUBTTL=" - Project Approach";}
  if (subsiteName == "requestaconsultation") 		{SUBTTL=" - Request a Consultation";}
  }
  if (siteName == "partners") 	{
  if (subsiteName == "becomeapartner") 				{SUBTTL=" - Become our Partner";}
  }
  
document.write("<title>Strategic Directives "+TTL+" "+SUBTTL+"</title>");
}

// ###### GET NAV LINK ########### 
function GetTemplateNAV() { 
  siteName=GetTemplate();
  subsiteName=GetSubTemplate();

  COD1="off";
  COD2="off";
  COD3="off";
  COD4="off";
  COD5="off";
  COD6="off";
  COD7="off";
  COD8="off";
  
  SUB1="";
  SUB2="";
  SUB3="";
  SUB4="";
  SUB5="";
  SUB6="";
  SUB7="";
  SUB8="";
  
  CLS11="";
  CLS12="";
  CLS13="";
  CLS14="";
  CLS15="";
  CLS16="";
  CLS17="";
  CLS18="";
  CLS19="";
  CLS20="";
  CLS21="";
  CLS22="";
  CLS23="";
  CLS24="";
  
if (siteName == "index") 		{COD1="on";SUB1="";}
 
if (siteName == "company") 	{
if (subsiteName == "principals") 				{CLS11="class='menuover'";}
if (subsiteName == "corestrenghts") 			{CLS12="class='menuover'";}
if (subsiteName == "employment") 				{CLS13="class='menuover'";}

COD2="on";
}
if (siteName == "company") 	{
SUB2="<div id='submenu'><a href='/template/company/principals.shtml'  "+CLS11+" >Principals</a><br> <a href='/template/company/corestrenghts.shtml' "+CLS12+">Core Strengths</a><br> <a href='/template/company/employment.shtml' "+CLS13+">Careers</a><br> <a href='/template/contactus/'>Contact Us</a></div>";
}

if (siteName == "clients") 	{
SUB3="";
COD3="on";
}
  
if (siteName == "services") 	{
if (subsiteName == "businessstrategy") 			{CLS14="class='menuover'";}
if (subsiteName == "productdevelopment") 		{CLS15="class='menuover'";}
if (subsiteName == "marketimpact") 				{CLS16="class='menuover'";}
if (subsiteName == "webimpact") 				{CLS17="class='menuover'";}
if (subsiteName == "saleschanneldevelopment") 	{CLS18="class='menuover'";}
if (subsiteName == "financefunding") 			{CLS19="class='menuover'";}
if (subsiteName == "legalintellectualproperty") {CLS20="class='menuover'";}
if (subsiteName == "organizationaldevelopment") {CLS21="class='menuover'";}
if (subsiteName == "projectapproach") 			{CLS22="class='menuover'";}
if (subsiteName == "requestaconsultation") 		{CLS23="class='menuover'";}

COD4="on";
SUB4="<div id='submenu'><a href='/template/services/businessstrategy.shtml' "+CLS14+">Business Strategy</a><br> <a href='/template/services/productdevelopment.shtml' "+CLS15+">Product Development</a><br> <a href='/template/services/marketimpact.shtml' "+CLS16+">Market Impact</a><br> <a href='/template/services/webimpact.shtml' "+CLS17+">Web &amp; Media Impact</a><br><div class='twoline'><a href='/template/services/saleschanneldevelopment.shtml' "+CLS18+">Sales &amp; Channel Development</a></div> <a href='/template/services/financefunding.shtml' "+CLS19+">Finance &amp; Funding</a><br><div class='twoline'><a href='/template/services/legalintellectualproperty.shtml' "+CLS20+"  >Legal &amp;  Intellectual Property</a></div> <div class='twoline'><a href='/template/services/organizationaldevelopment.shtml' "+CLS21+"  >Organizational Development</a></div><a href='/template/services/projectapproach.shtml' "+CLS22+">Project Approach</a><br><div class='diffbackground'><a href='/template/services/requestaconsultation.shtml' "+CLS23+" >Request a Consultation</a></div></div>";

}
  
if (siteName == "news") 		{
COD5="on";
SUB5="";
}

if (siteName == "partners") 	{
if (subsiteName == "becomeapartner") 			{CLS24="class='menuover'";}
COD6="on";
SUB6="<div id='submenu'><a href='/template/partners/becomeapartner.shtml' "+CLS24+">Become a partner</a></div>";
}

if (siteName == "contactus") 	{
COD7="on";
SUB7="";
}

if (siteName == "downloads") 	{
SUB8="";
COD8="on";
}

   
document.write('<a href="/template/" target="_top" onclick="MM_nbGroup(\'down\',\'group1\',\'navhomeoff\',\'\',1)" onmouseover="MM_nbGroup(\'over\',\'navhomeoff\',\'/template/images/nav_home_on.gif\',\'\',1)" onmouseout="MM_nbGroup(\'out\')"><img src="/template/images/nav_home_'+COD1+'.gif" alt="home" name="navhomeoff" width="145" height="20" border="0" id="navhomeoff" ></a><br>');
document.write('<a href="/template/company/" target="_top" onClick="MM_nbGroup(\'down\',\'group1\',\'navcompanyoff\',\'\',1)" onMouseOver="MM_nbGroup(\'over\',\'navcompanyoff\',\'/template/images/nav_company_on.gif\',\'\',1)" onMouseOut="MM_nbGroup(\'out\')"><img name="navcompanyoff" src="/template/images/nav_company_'+COD2+'.gif" border="0" alt="about us" ></a><br>');
document.write(''+SUB2+'');
document.write('<a href="/template/services/" target="_top" onClick="MM_nbGroup(\'down\',\'group1\',\'navservicesoff\',\'\',1)" onMouseOver="MM_nbGroup(\'over\',\'navservicesoff\',\'/template/images/nav_services_on.gif\',\'\',1)" onMouseOut="MM_nbGroup(\'out\')"><img name="navservicesoff" src="/template/images/nav_services_'+COD4+'.gif" border="0" alt="services" ></a><br>');
document.write(''+SUB4+'');
document.write('<a href="/template/clients/" target="_top" onClick="MM_nbGroup(\'down\',\'group1\',\'navclientsoff\',\'\',1)" onMouseOver="MM_nbGroup(\'over\',\'navclientsoff\',\'/template/images/nav_clients_on.gif\',\'\',1)" onMouseOut="MM_nbGroup(\'out\')"><img name="navclientsoff" src="/template/images/nav_clients_'+COD3+'.gif" border="0" alt="clients" ></a><br>');
document.write('<a href="/template/partners/" target="_top" onClick="MM_nbGroup(\'down\',\'group1\',\'navpartnersoff\',\'\',1)" onMouseOver="MM_nbGroup(\'over\',\'navpartnersoff\',\'/template/images/nav_partners_on.gif\',\'\',1)" onMouseOut="MM_nbGroup(\'out\')"><img name="navpartnersoff" src="/template/images/nav_partners_'+COD6+'.gif" border="0" alt="partners" ></a><br>');
document.write(''+SUB6+'');
document.write('<a href="/template/news/" target="_top" onClick="MM_nbGroup(\'down\',\'group1\',\'navneweventsoff\',\'\',1)" onMouseOver="MM_nbGroup(\'over\',\'navneweventsoff\',\'/template/images/nav_news_on.gif\',\'\',1)" onMouseOut="MM_nbGroup(\'out\')"><img name="navneweventsoff" src="/template/images/nav_news_'+COD5+'.gif" border="0" alt="news" ></a><br>');
//document.write('<a href="/template/downloads/" target="_top" onClick="MM_nbGroup(\'down\',\'group1\',\'navdownoff\',\'\',1)" onMouseOver="MM_nbGroup(\'over\',\'navdownoff\',\'/template/images/nav_downloads_on.gif\',\'\',1)" onMouseOut="MM_nbGroup(\'out\')"><img name="navdownoff" src="/template/images/nav_downloads_'+COD8+'.gif" border="0" alt="downloads"></a><br>');
document.write('<a href="/template/contactus/" target="_top" onClick="MM_nbGroup(\'down\',\'group1\',\'navcontactoff\',\'\',1)" onMouseOver="MM_nbGroup(\'over\',\'navcontactoff\',\'/template/images/nav_contact_on.gif\',\'\',1)" onMouseOut="MM_nbGroup(\'out\')"><img name="navcontactoff" src="/template/images/nav_contact_'+COD7+'.gif" border="0" alt="contact us" style="border-bottom:1px solid #a0aaae;"></a>');

}

// ###### GET HEADERS ########### 
function GetTemplateHeaders() { 
  siteName=GetTemplate();

  COD="";
  
 // if (siteName == "company") 	{COD="<div id='subhdr'><img src='/template/images/panels/company.jpg' border='0'></div>";}
 // if (siteName == "clients") 	{COD="<div id='subhdr'><img src='/template/images/panels/clients.jpg' border='0'></div>";}
 // if (siteName == "services") 	{COD="<div id='subhdr'><img src='/template/images/panels/services.jpg' border='0'></div>";}
 // if (siteName == "news") 		{COD="<div id='subhdr'><img src='/template/images/panels/news.jpg' border='0'></div>";}
 // if (siteName == "partners") 	{COD="<div id='subhdr'><img src='/template/images/panels/partners.jpg' border='0'></div>";}
 // if (siteName == "contactus") 	{COD="<div id='subhdr'><img src='/template/images/panels/contactus.jpg' border='0'></div>";}
//  if (siteName == "downloads") 	{COD="<div id='subhdr'><img src='/template/images/panels/downloads.jpg' border='0'></div>";}
  
  if (siteName == "company") 	{COD="<div id='subhdr'><img src='/template/images/bk_generic.jpg' border='0' width=611 height=72></div>";}
  if (siteName == "clients") 	{COD="<div id='subhdr'><img src='/template/images/bk_generic.jpg' border='0' width=611 height=72></div>";}
  if (siteName == "services") 	{COD="<div id='subhdr'><img src='/template/images/bk_generic.jpg' border='0' width=611 height=72></div>";}
  if (siteName == "news") 		{COD="<div id='subhdr'><img src='/template/images/bk_generic.jpg' border='0' width=611 height=72></div>";}
  if (siteName == "partners") 	{COD="<div id='subhdr'><img src='/template/images/bk_generic.jpg' border='0' width=611 height=72></div>";}
  if (siteName == "contactus") 	{COD="<div id='subhdr'><img src='/template/images/bk_generic.jpg' border='0' width=611 height=72></div>";}
  if (siteName == "downloads") 	{COD="<div id='subhdr'><img src='/template/images/bk_generic.jpg' border='0' width=611 height=72></div>";}

  
document.write(''+COD+'');
}