
/* Change font size -- About Us subnav when link is active */
function ChangeAboutUsFontSize(el)
{
    var changeFontArray = new Array ("subnav_ourHistory", "subnav_rnd", "subnav_pk");
    for(i=0; i<changeFontArray.length; i++){ 
      if(changeFontArray[i] == el){ 
          document.getElementById(el).style.fontWeight = "bold";
          document.getElementById(el).style.background = "url(/images/nav/subnav_active.gif) no-repeat right";
      }else{ 
          document.getElementById(changeFontArray[i]).style.fontWeight = "normal";
          document.getElementById(changeFontArray[i]).style.background = "#B2E0F0 url(/images/nav/subnav.gif) no-repeat right";
      } 
    } 
}

/* Switch div -- About Us subnav */
function switchAboutUs(theid){ 
var thearray= new Array("aboutUsDiv","ourHistoryDiv","researchAndDevelopmentDiv"); 
    for(i=0; i<thearray.length; i++){ 
      if(thearray[i] == theid){ 
            document.getElementById(theid).style.display="block"; 
            
      }else{ 
            document.getElementById(thearray[i]).style.display="none"; 
      } 
    } 
}

/* Change font size -- News & Media subnav when link is active */
function ChangeNewsMediaFontSize(el)
{
    var changeFontArray = new Array ("subnav_nmNews", "subnav_nmMedia");
    for(i=0; i<changeFontArray.length; i++){ 
      if(changeFontArray[i] == el){ 
          document.getElementById(el).style.fontWeight = "bold";
          document.getElementById(el).style.background = "url(/images/nav/subnav_active.gif) no-repeat right";
      }else{ 
          document.getElementById(changeFontArray[i]).style.fontWeight = "normal";
          document.getElementById(changeFontArray[i]).style.background = "#B2E0F0 url(/images/nav/subnav.gif) no-repeat right";
      } 
    } 
}


/* Switch div -- News & Media subnav */
function switchNewsMedia(theid){ 
var thearray= new Array("newsDiv","mediaDiv"); 
    for(i=0; i<thearray.length; i++){ 
      if(thearray[i] == theid){ 
            document.getElementById(theid).style.display="block"; 
            
      }else{ 
            document.getElementById(thearray[i]).style.display="none"; 
      } 
    } 
}


/* Change font size -- Products subnav when link is active */
function ChangeProductFontSize(el)
{
    var changeFontArray = new Array("subnav_cetaphil","subnav_capex","subnav_clindagel","subnav_clobex","subnav_differin", "subnav_epiduo", "subnav_metrogel", "subnav_rosanil", "subnav_triluma", "subnav_desowen","subnav_benzac", "subnav_oracea", "subnav_vectical"); 
    for(i=0; i<changeFontArray.length; i++){ 
      if(changeFontArray[i] == el){ 
          document.getElementById(el).style.fontWeight = "bold";
          document.getElementById(el).style.background = "url(/images/nav/subnav_active.gif) no-repeat right";
      }else{ 
          document.getElementById(changeFontArray[i]).style.fontWeight = "normal";
          document.getElementById(changeFontArray[i]).style.background = "#B2E0F0 url(/images/nav/subnav.gif) no-repeat right";
      } 
    } 
}


/* Switch div -- Products subnav  */
function switchproducts(theid){ 
var thearray= new Array("products_mainDiv","cetaphilDiv","capexDiv","clindagelDiv","clobexDiv","differinDiv", "epiduoDiv","metrogelDiv", "rosanilDiv", "trilumaDiv", "desowenDiv","benzacDiv","oraceaDiv","vecticalDiv"); 
    for(i=0; i<thearray.length; i++){ 
      if(thearray[i] == theid){ 
            document.getElementById(theid).style.display="block"; 
      }else{ 
            document.getElementById(thearray[i]).style.display="none"; 
      } 
    } 
}

/* Switch div -- Skin Conditions subnav  */
function switchSkinConditions(theid){ 
var thearray= new Array("skinMainDiv","acneDiv","dermatitisDiv","melasmaDiv","psoriasisDiv","rosaceaDiv"); 
    for(i=0; i<thearray.length; i++){ 
      if(thearray[i] == theid){ 
            document.getElementById(theid).style.display="block"; 
            
      }else{ 
            document.getElementById(thearray[i]).style.display="none"; 
      } 
    } 
}

/* Change font size -- Skin Condition subnav when link is active */
function ChangeSkinFontSize(el)
{
    var changeFontArray = new Array("subnav_acne","subnav_dermatitis","subnav_melasma","subnav_psoriasis","subnav_rosacea"); 
    for(i=0; i<changeFontArray.length; i++){ 
      if(changeFontArray[i] == el){ 
          document.getElementById(el).style.fontWeight = "bold";
          document.getElementById(el).style.background = "url(/images/nav/subnav_active.gif) no-repeat right";
      }else{ 
          document.getElementById(changeFontArray[i]).style.fontWeight = "normal";
          document.getElementById(changeFontArray[i]).style.background = "#B2E0F0 url(/images/nav/subnav.gif) no-repeat right";
      } 
    } 
}

/* Switch div -- Our Emplyee Commitment */
function compensationPackage(theid){ 
var thearray= new Array("baseSalaryDiv","incentiveCompensationDiv","benefitsDiv"); 
    for(i=0; i<thearray.length; i++){ 
      if(thearray[i] == theid){ 
            document.getElementById(theid).style.display="block";    
            
      }else{ 
            document.getElementById(thearray[i]).style.display="none"; 
      } 
    } 
}

/*Change the tab menu on Competitive Compensation Package */
function changeCompensationPackageTab(theid)
    {   
            document.getElementById(theid).style.color = "#094EA3";
            document.getElementById(theid).style.background = "none";
    }

/* Switch div -- Recruiting Process */
function switchPreparationAdvice(theid){ 
var thearray= new Array("yourResumeDiv","homeworkDiv", "theInterviewDiv", "theBasicsDiv"); 
    for(i=0; i<thearray.length; i++){ 
      if(thearray[i] == theid){ 
            document.getElementById(theid).style.display="block";    
      }else{ 
            document.getElementById(thearray[i]).style.display="none"; 
      } 
    } 
}

function changePreparationAdviceMenu(theid)
    {   
            document.getElementById(theid).style.color = "#A43C5F";
            document.getElementById(theid).style.background = "#FFF";
    } 
    
/* Change font size -- Careers subnav when link is active */
function ChangeCareerFontSize(el)
{
    var changeFontArray = new Array ("subnav_jobListing","subnav_forSalesProfessionals");
    for(i=0; i<changeFontArray.length; i++){ 
      if(changeFontArray[i] == el){ 
          document.getElementById(el).style.fontWeight = "bold";
          document.getElementById(el).style.background = "url(/images/nav/subnav_active.gif) no-repeat right";
      }else{ 
          document.getElementById(changeFontArray[i]).style.fontWeight = "normal";
          document.getElementById(changeFontArray[i]).style.background = "#B2E0F0 url(/images/nav/subnav.gif) no-repeat right";
      } 
    } 
}

/* Switch div -- Skin Conditions subnav  */
function switchCareer(theid){ 
var thearray= new Array("careersDiv","jobListingsDiv"); 
    for(i=0; i<thearray.length; i++){ 
      if(thearray[i] == theid){ 
            document.getElementById(theid).style.display="block"; 
            
      }else{ 
            document.getElementById(thearray[i]).style.display="none"; 
      } 
    } 
}
      