﻿function setActive(obj, variable) 
{
    if (document.getElementById(obj))
    {
      document.getElementById(obj).className=variable ;
    }
 
}

function menuDefault() 
{
    setActive("HIV", 'selected');
}

 function menuSTDTesting() {
 setActive("STD", 'selected');
}


function menuSTDVaccine() {
  setActive("Vaccine", 'selected');
 }

 function menuFAQ() {
 if (lihover4.selected == true) {
     "document.getElementById('hovers').style.background='url(../images/menubar_hovers_4.png)';"
 }
 else
 { "document.getElementById('hovers').style.background='none';" }
}

function menuMobile() {
 if (lihover5.selected == true) {
     "document.getElementById('hovers').style.background='url(../images/menubar_hovers_5.png)';"
 }
 else
 { "document.getElementById('hovers').style.background='none';" }
}

function random_text() {
    var fact = new Array();
    fact[1] = "All sexually active females under age 26 should be tested for chlamydia every year.";
    fact[2] = "CDC has estimated that approximately 55,000 &ndash; 58,500 persons become infected with HIV each year.";
    fact[3] = "Almost half of all new cases of STDs occur in 15-24 year olds.";
    fact[4] = "At the end of 2003, approximately 252,000-320,000 persons were unaware of their HIV infection.";
    fact[5] = "Having syphilis increases your risk of giving or getting HIV.";
    fact[6] = "If you are HIV+, early medical treatment and a healthy lifestyle can help you stay well. The sooner you know you are infected with HIV, the sooner you can get help.";
    fact[7] = "Most people with STDs have no signs or symptoms.";
    fact[8] = "If you don't know your HIV status, you are not able to protect your sex or drug-use partners from becoming infected.";
    fact[9] = "Chlamydia can damage a girl's or woman's reproductive organs, making it impossible for her to ever have children.";
    fact[10] = "It is possible to have an STD without knowing it.";
    fact[11] = "Anyone who is sexually active can get chlamydia, gonorrhea, syphilis or other STDs.";
    fact[12] = "At least 50% of sexually active people will have genital HPV at some time in their lives.";
    fact[13] = "Every woman who is pregnant should be checked for STDs during her first prenatal visit.";
    fact[14] = "Most doctors do not automatically test for chlamydia or other STDs during a yearly check-up, or when doing a routine pelvic exam or Pap test.";
    var ry = Math.floor(Math.random() * fact.length);
    if (ry == 0) {
        ry = 1;
    }
    document.write('' + fact[ry] + '');
}


function random_sp_text() {
    var fact = new Array();
    fact[1] = "Todas las mujeres sexualmente activas menores de 26 a&ntilde;os de edad deber&iacute;an hacerse la prueba de la clamidia una vez al a&ntilde;o.";
    fact[2] = "Los CDC han calculado que aproximadamente 55,000 &ndash; 58,500 personas contraen el VIH cada a&ntilde;o. ";
    fact[3] = "A finales del 2003, aproximadamente 252,000-320,000 personas desconoc&iacute;an su infecci&oacute;n por el VIH.";
    fact[4] = "Si usted es VIH+, el tratamiento m&eacute;dico temprano y una forma de vida sana pueden ayudarle a permanecer bien. Cuanto m&aacute;s pronto usted sepa que esta infectado con el VIH, m&aacute;s pronto puede conseguir ayuda.";
    fact[5] = "Casi la mitad de todos los casos nuevos de las ETS ocurren en personas de 15 a 24 a&ntilde;os de edad.";
    fact[6] = "Tener la s&iacute;filis aumenta su riesgo de dar o contraer el VIH.";
    fact[7] = "La mayor&iacute;a de las personas con ETS no tienen ning&uacute;n signo o s&iacute;ntoma.";
    fact[8] = "Si usted no sabe su estado del VIH, usted no puede proteger de la infecci&oacute;n a su pareja o a la persona con la que comparte drogas.";
    fact[9] = "La clamidia puede da&ntilde;ar los &oacute;rganos reproductivos de una ni&ntilde;a o una mujer, haci&eacute;ndolo imposible que ella alguna vez tenga hijos.";
    fact[10] = "Es posible tener una ETS sin saberlo.";
    fact[11] = "Toda persona sexualmente activa puede contraer la clamidia, gonorrea, s&iacute;filis u otras ETS.";
    fact[12] = "Al menos el 50% de personas sexualmente activas contraer&aacute;n la infecci&oacute;n genital del VPH en alg&uacute;n momento de sus vidas.";
    fact[13] = "Cada mujer que est&aacute; embarazada debe hacerse la  prueba de las ETS durante su primera visita prenatal.";
    fact[14] = "La mayor&iacute;a de los doctores no hacen la prueba autom&aacute;ticamente de la clamidia u otras ETS durante un chequeo anual, o al hacer un examen p&eacute;lvico rutinario o la prueba de papanicolaou.";

    var ry = Math.floor(Math.random() * fact.length);
    if (ry == 0) {
        ry = 1;
    }
    document.write('' + fact[ry] + '');
}
