// JavaScript Document if(document.images) { homeoff = new Image(); homeoff.src = "images/button.home.gif"; homeover = new Image(); homeover.src = "images/button.home-over.gif"; homeon = new Image(); homeon.src = "images/button.home-down.gif"; contactoff = new Image(); contactoff.src = "images/button.contact.gif"; contactover = new Image(); contactover.src = "images/button.contact-over.gif"; contacton = new Image(); contacton.src = "images/button.contact-down.gif"; memberoff = new Image(); memberoff.src = "images/button.member.gif"; memberover = new Image(); memberover.src = "images/button.member-over.gif"; memberon = new Image(); memberon.src = "images/button.member-down.gif"; aboutoff = new Image(); aboutoff.src = "images/button.about.gif"; aboutover = new Image(); aboutover.src = "images/button.about-over.gif"; abouton = new Image(); abouton.src = "images/button.about-down.gif"; helpoff = new Image(); helpoff.src = "images/button.help.gif"; helpover = new Image(); helpover.src = "images/button.help-over.gif"; helpon = new Image(); helpon.src = "images/button.help-down.gif"; resourcesoff = new Image(); resourcesoff.src = "images/button.resources.gif"; resourcesover = new Image(); resourcesover.src = "images/button.resources-over.gif"; resourceson = new Image(); resourceson.src = "images/button.resources-down.gif"; eventsoff = new Image(); eventsoff.src = "images/button.events.gif"; eventsover = new Image(); eventsover.src = "images/button.events-over.gif"; eventson = new Image(); eventson.src = "images/button.events-down.gif"; } function setOn(buttonname) { top.window.menu = buttonname ; if (document.images) { changeImages("home","homeoff") ; changeImages("contact","contactoff") ; changeImages("member","memberoff") ; changeImages("about","aboutoff") ; changeImages("help","helpoff") ; changeImages("resources","resourcesoff") ; changeImages("events","eventsoff") ; if (buttonname=="home") { top.window.menu="home" ; changeImages("home","homeon") ; } if (buttonname=="contact") { top.window.menu="contact" ; changeImages("contact","contacton") ; } if (buttonname=="member") { top.window.menu="member" ; changeImages("member","memberon") ; } if (buttonname=="about") { top.window.menu="about" ; changeImages("about","abouton") ; } if (buttonname=="help") { top.window.menu="help" ; changeImages("help","helpon") ; } if (buttonname=="resources") { top.window.menu="resources" ; changeImages("resources","resourceson") ; } if (buttonname=="events") { top.window.menu="events" ; changeImages("events","eventson") ; } } } function outCheck(bname) { if (document.images) { if (bname=="home") { if (top.window.menu=="home") changeImages("home","homeon") ; else changeImages("home","homeoff") ; } if (bname=="contact") { if (top.window.menu=="contact") changeImages("contact","contacton") ; else changeImages("contact","contactoff") ; } if (bname=="member") { if (top.window.menu=="member") changeImages("member","memberon") ; else changeImages("member","memberoff") ; } if (bname=="about") { if (top.window.menu=="about") changeImages("about","abouton") ; else changeImages("about","aboutoff") ; } if (bname=="help") { if (top.window.menu=="help") changeImages("help","helpon") ; else changeImages("help","helpoff") ; } if (bname=="resources") { if (top.window.menu=="resources") changeImages("resources","resourceson") ; else changeImages("resources","resourcesoff") ; } if (bname=="events") { if (top.window.menu=="events") changeImages("events","eventson") ; else changeImages("events","eventsoff") ; } } } function overCheck(bname) { if (document.images) { if (bname=="home") { if (top.window.menu=="home") changeImages("home","homeon") ; else changeImages("home","homeover"); } if (bname=="contact") { if (top.window.menu=="contact") changeImages("contact","contacton") ; else changeImages("contact","contactover"); } if (bname=="member") { if (top.window.menu=="member") changeImages("member","memberon") ; else changeImages("member","memberover"); } if (bname=="about") { if (top.window.menu=="about") changeImages("about","abouton") ; else changeImages("about","aboutover"); } if (bname=="help") { if (top.window.menu=="help") changeImages("help","helpon") ; else changeImages("help","helpover"); } if (bname=="resources") { if (top.window.menu=="resources") changeImages("resources","resourceson") ; else changeImages("resources","resourcesover"); } if (bname=="events") { if (top.window.menu=="events") changeImages("events","eventson") ; else changeImages("events","eventsover"); } } } if(document.images) { aboutintrooff = new Image(); aboutintrooff.src = "images/button.aboutintro.gif"; aboutintroover = new Image(); aboutintroover.src = "images/button.aboutintro-over.gif"; aboutintroon = new Image(); aboutintroon.src = "images/button.aboutintro-down.gif"; aboutpartnersoff = new Image(); aboutpartnersoff.src = "images/button.aboutpartners.gif"; aboutpartnersover = new Image(); aboutpartnersover.src = "images/button.aboutpartners-over.gif"; aboutpartnerson = new Image(); aboutpartnerson.src = "images/button.aboutpartners-down.gif"; aboutstaffoff = new Image(); aboutstaffoff.src = "images/button.aboutstaff.gif"; aboutstaffover = new Image(); aboutstaffover.src = "images/button.aboutstaff-over.gif"; aboutstaffon = new Image(); aboutstaffon.src = "images/button.aboutstaff-down.gif"; aboutneedsoff = new Image(); aboutneedsoff.src = "images/button.aboutneeds.gif"; aboutneedsover = new Image(); aboutneedsover.src = "images/button.aboutneeds-over.gif"; aboutneedson = new Image(); aboutneedson.src = "images/button.aboutneeds-down.gif"; aboutpressoff = new Image(); aboutpressoff.src = "images/button.aboutpress.gif"; aboutpressover = new Image(); aboutpressover.src = "images/button.aboutpress-over.gif"; aboutpresson = new Image(); aboutpresson.src = "images/button.aboutpress-down.gif"; aboutcontactoff = new Image(); aboutcontactoff.src = "images/button.aboutcontact.gif"; aboutcontactover = new Image(); aboutcontactover.src = "images/button.aboutcontact-over.gif"; aboutcontacton = new Image(); aboutcontacton.src = "images/button.aboutcontact-down.gif"; initiativesintroductionoff = new Image(); initiativesintroductionoff.src = "images/button.initiativesintroduction.gif"; initiativesintroductionover = new Image(); initiativesintroductionover.src = "images/button.initiativesintroduction-over.gif"; initiativesintroductionon = new Image(); initiativesintroductionon.src = "images/button.initiativesintroduction-down.gif"; initiativesbullyingoff = new Image(); initiativesbullyingoff.src = "images/button.initiativesbullying.gif"; initiativesbullyingover = new Image(); initiativesbullyingover.src = "images/button.initiativesbullying-over.gif"; initiativesbullyingon = new Image(); initiativesbullyingon.src = "images/button.initiativesbullying-down.gif"; initiativesstressoff = new Image(); initiativesstressoff.src = "images/button.initiativesstress.gif"; initiativesstressover = new Image(); initiativesstressover.src = "images/button.initiativesstress-over.gif"; initiativesstresson = new Image(); initiativesstresson.src = "images/button.initiativesstress-down.gif"; initiativesdepressionoff = new Image(); initiativesdepressionoff.src = "images/button.initiativesdepression.gif"; initiativesdepressionover = new Image(); initiativesdepressionover.src = "images/button.initiativesdepression-over.gif"; initiativesdepressionon = new Image(); initiativesdepressionon.src = "images/button.initiativesdepression-down.gif"; initiativesangeroff = new Image(); initiativesangeroff.src = "images/button.initiativesanger.gif"; initiativesangerover = new Image(); initiativesangerover.src = "images/button.initiativesanger-over.gif"; initiativesangeron = new Image(); initiativesangeron.src = "images/button.initiativesanger-down.gif"; } function setOnSub(buttonname) { if (document.images) { changeImages("aboutintro","aboutintrooff") ; changeImages("aboutpartners","aboutpartnersoff") ; changeImages("aboutstaff","aboutstaffoff") ; changeImages("aboutneeds","aboutneedsoff") ; changeImages("aboutpress","aboutpressoff") ; changeImages("aboutcontact","aboutcontactoff") ; changeImages("initiativesintroduction","initiativesintroductionoff") ; changeImages("initiativesbullying","initiativesbullyingoff") ; changeImages("initiativesstress","initiativesstressoff") ; changeImages("initiativesdepression","initiativesdepressionoff") ; changeImages("initiativesanger","initiativesangeroff") ; if (buttonname=="aboutintro") { top.window.submenu="aboutintro" ; changeImages("aboutintro","aboutintroon") ; } if (buttonname=="aboutpartners") { top.window.submenu="aboutpartners" ; changeImages("aboutpartners","aboutpartnerson") ; } if (buttonname=="aboutstaff") { top.window.submenu="aboutstaff" ; changeImages("aboutstaff","aboutstaffon") ; } if (buttonname=="aboutneeds") { top.window.submenu="aboutneeds" ; changeImages("aboutneeds","aboutneedson") ; } if (buttonname=="aboutpress") { top.window.submenu="aboutpress" ; changeImages("aboutpress","aboutpresson") ; } if (buttonname=="aboutcontact") { top.window.submenu="aboutcontact" ; changeImages("aboutcontact","aboutcontacton") ; } if (buttonname=="initiativesintroduction") { top.window.submenu="initiativesintroduction" ; changeImages("initiativesintroduction","initiativesintroductionon") ; } if (buttonname=="initiativesbullying") { top.window.submenu="initiativesbullying" ; changeImages("initiativesbullying","initiativesbullyingon") ; } if (buttonname=="initiativesstress") { top.window.submenu="initiativesstress" ; changeImages("initiativesstress","initiativesstresson") ; } if (buttonname=="initiativesdepression") { top.window.submenu="initiativesdepression" ; changeImages("initiativesdepression","initiativesdepressionon") ; } if (buttonname=="initiativesanger") { top.window.submenu="initiativesanger" ; changeImages("initiativesanger","initiativesangeron") ; } } } function outCheckSub(bname) { if (document.images) { if (bname=="aboutintro") { if (top.window.submenu=="aboutintro") changeImages("aboutintro","aboutintroon") ; else changeImages("aboutintro","aboutintrooff") ; } if (bname=="aboutpartners") { if (top.window.submenu=="aboutpartners") changeImages("aboutpartners","aboutpartnerson") ; else changeImages("aboutpartners","aboutpartnersoff") ; } if (bname=="aboutstaff") { if (top.window.submenu=="aboutstaff") changeImages("aboutstaff","aboutstaffon") ; else changeImages("aboutstaff","aboutstaffoff") ; } if (bname=="aboutneeds") { if (top.window.submenu=="aboutneeds") changeImages("aboutneeds","aboutneedson") ; else changeImages("aboutneeds","aboutneedsoff") ; } if (bname=="aboutpress") { if (top.window.submenu=="aboutpress") changeImages("aboutpress","aboutpresson") ; else changeImages("aboutpress","aboutpressoff") ; } if (bname=="aboutcontact") { if (top.window.submenu=="aboutcontact") changeImages("aboutcontact","aboutcontacton") ; else changeImages("aboutcontact","aboutcontactoff") ; } if (bname=="initiativesintroduction") { if (top.window.submenu=="initiativesintroduction") changeImages("initiativesintroduction","initiativesintroductionon") ; else changeImages("initiativesintroduction","initiativesintroductionoff") ; } if (bname=="initiativesbullying") { if (top.window.submenu=="initiativesbullying") changeImages("initiativesbullying","initiativesbullyingon") ; else changeImages("initiativesbullying","initiativesbullyingoff") ; } if (bname=="initiativesstress") { if (top.window.submenu=="initiativesstress") changeImages("initiativesstress","initiativesstresson") ; else changeImages("initiativesstress","initiativesstressoff") ; } if (bname=="initiativesdepression") { if (top.window.submenu=="initiativesdepression") changeImages("initiativesdepression","initiativesdepressionon") ; else changeImages("initiativesdepression","initiativesdepressionoff") ; } if (bname=="initiativesanger") { if (top.window.submenu=="initiativesanger") changeImages("initiativesanger","initiativesangeron") ; else changeImages("initiativesanger","initiativesangeroff") ; } } } function overCheckSub(bname) { if (document.images) { if (bname=="aboutintro") { if (top.window.submenu=="aboutintro") changeImages("aboutintro","aboutintroon") ; else changeImages("aboutintro","aboutintroover") ; } if (bname=="aboutpartners") { if (top.window.submenu=="aboutpartners") changeImages("aboutpartners","aboutpartnerson") ; else changeImages("aboutpartners","aboutpartnersover") ; } if (bname=="aboutstaff") { if (top.window.submenu=="aboutstaff") changeImages("aboutstaff","aboutstaffon") ; else changeImages("aboutstaff","aboutstaffover") ; } if (bname=="aboutneeds") { if (top.window.submenu=="aboutneeds") changeImages("aboutneeds","aboutneedson") ; else changeImages("aboutneeds","aboutneedsover") ; } if (bname=="aboutpress") { if (top.window.submenu=="aboutpress") changeImages("aboutpress","aboutpresson") ; else changeImages("aboutpress","aboutpressover") ; } if (bname=="aboutcontact") { if (top.window.submenu=="aboutcontact") changeImages("aboutcontact","aboutcontacton") ; else changeImages("aboutcontact","aboutcontactover") ; } if (bname=="initiativesintroduction") { if (top.window.submenu=="initiativesintroduction") changeImages("initiativesintroduction","initiativesintroductionon") ; else changeImages("initiativesintroduction","initiativesintroductionover") ; } if (bname=="initiativesbullying") { if (top.window.submenu=="initiativesbullying") changeImages("initiativesbullying","initiativesbullyingon") ; else changeImages("initiativesbullying","initiativesbullyingover") ; } if (bname=="initiativesstress") { if (top.window.submenu=="initiativesstress") changeImages("initiativesstress","initiativesstresson") ; else changeImages("initiativesstress","initiativesstressover") ; } if (bname=="initiativesdepression") { if (top.window.submenu=="initiativesdepression") changeImages("initiativesdepression","initiativesdepressionon") ; else changeImages("initiativesdepression","initiativesdepressionover") ; } if (bname=="initiativesanger") { if (top.window.submenu=="initiativesanger") changeImages("initiativesanger","initiativesangeron") ; else changeImages("initiativesanger","initiativesangerover") ; } } } function changeImages() { if (document.images) { for (var i=0; i"; } // popup windows function popup() { var newwin = window.open("","popUpWin","width=400,height=450,resizable=yes,scrollbars=yes"); } function popupsize(w,h) { var newwin = window.open("","popUpWin","width=" + w + ",height=" + h + ",resizable=yes,scrollbars=yes"); }