<!-- Begin
// external JavaScript file

/**
 * Coded by Tami Oliphant
 * Created in August 2006
 * Last revised in April 2007
 */

// variable to contain the message
var message = "Welcome to the CAM in UME\n"
        + "Project Web site!";

// variable to contain the copyright statement
var now = new Date();
var year = now.getYear();
if (year < 2000) {
    year = year + 1900;
}
var copyright = "Copyright &copy; " + year + "<br />\n"
        + "CAM in UME Project";

/* image variable definitions to preload images */

// code to preload home page rollover images
if (document.images) {
    var about2 = new Image();
    about2.src = "about2-green.jpg";
    var people2 = new Image();
    people2.src = "people2-green.jpg";
    var whatsnew2 = new Image();
    whatsnew2.src = "whatsnew2-green.jpg";
    var digital2 = new Image();
    digital2.src = "digital2-green.jpg";
    var documents2 = new Image();
    documents2.src = "documents2-green.jpg";
    var links2 = new Image();
    links2.src = "links2-green.jpg";
    var site2 = new Image();
    site2.src = "site2-green.jpg";
}

// code to preload subsidiary page rollover images 
if (document.images) {
    var home = new Image();
    home.src = "home-black.jpg";
    var doctorpatient = new Image();
    doctorpatient.src = "doctorpatient-g.jpg"; 
    var stones = new Image();
    stones.src = "stones-g.jpg";
    var about = new Image();
    about.src = "about-black.jpg";
    var classroom = new Image();
    classroom.src = "classroom-g.jpg";
    var people = new Image();
    people.src = "people-black.jpg";
    var handspublic = new Image();
    handspublic.src = "handspublic-g.jpg";
    var whatsnew = new Image();
    whatsnew.src = "whatsnew-black.jpg";
    var bamboo = new Image();
    bamboo.src = "bamboo-g.jpg";
    var digital = new Image();
    digital.src = "digital-black.jpg";
    var needle = new Image();
    needle.src = "needle-g.jpg";
    var documents = new Image();
    documents.src = "documents-black.jpg";
    var handsteam = new Image();
    handsteam.src = "handsteam-g.jpg";
    var links = new Image();
    links.src = "links-black.jpg";
    var acupuncture = new Image();
    acupuncture.src = "acupuncture-g.jpg";
    var site = new Image();
    site.src = "site-black.jpg";
}

/* functions for image rollovers */

// function for onmouseover event with 1 image replacement on home page
function on(img_name, img_src)
{
    if (document.images) {
        document[img_name].src = img_src;
    }
}

// function for onmouseout event with 1 image replacement on home page
function off(img_name, img_src)
{
    if (document.images) {
        document[img_name].src = img_src;
    }
}

// function for onmouseover event with 2 image replacements on subsidiary pages
function move_in(img_name, img_src, img2_name, img2_src)
{
    if (document.images) {
        document[img_name].src = img_src;
    }
    if (document.images) {
        document[img2_name].src = img2_src;
    }
}

// function for onmouseout event with 2 image replacements on subsidiary pages
function move_out(img_name, img_src, img2_name, img2_src)
{
    if (document.images) {
        document[img_name].src = img_src;
    }
    if (document.images) {
        document[img2_name].src = img2_src;
    }
}

// End -->
