// JavaScript Document

var dir = '/themes/default/graphics/home/';

if(document.images)
{
    homeassessmentup            =       new Image();
    homeassessmentup.src        =       dir+'assessment_1.jpg';
    homeassessmentdown          =       new Image();
    homeassessmentdown.src      =       dir+'assessment_2.jpg';
    
    homesurveyup                =       new Image();
    homesurveyup.src            =       dir+'survey_1.jpg';
    homesurveydown              =       new Image();
    homesurveydown.src          =       dir+'survey_2.jpg';
    
    homeconsultancyup           =       new Image();
    homeconsultancyup.src       =       dir+'consultancy_1.jpg';
    homeconsultancydown         =       new Image();
    homeconsultancydown.src     =       dir+'consultancy_2.jpg';
    
    homeeventsup                =       new Image();
    homeeventsup.src            =       dir+'events_1.jpg';
    homeeventsdown              =       new Image();
    homeeventsdown.src          =       dir+'events_2.jpg';
    
    homerecognitionup           =       new Image();
    homerecognitionup.src       =       dir+'recognition_1.jpg';
    homerecognitiondown         =       new Image();
    homerecognitiondown.src     =       dir+'recognition_2.jpg';
    
    hometrainingup              =       new Image();
    hometrainingup.src          =       dir+'training_1.jpg';
    hometrainingdown            =       new Image();
    hometrainingdown.src        =       dir+'training_2.jpg';
    
    homecomplaintsup            =       new Image();
    homecomplaintsup.src        =       dir+'complaints_1.jpg';
    homecomplaintsdown          =       new Image();
    homecomplaintsdown.src      =       dir+'complaints_2.jpg';
    
    homebenchmarkingup          =       new Image();
    homebenchmarkingup.src      =       dir+'benchmarking_1.jpg';

	homebenchmarkingdown      	=       new Image();
    homebenchmarkingdown.src  =       dir+'benchmarking_2.jpg';
    
}

function homebuttondown(buttonname)
{
    if(document.images)
    {
        document[buttonname].src    =   eval(buttonname + "down.src");
    }
}

function homebuttonup(buttonname)
{
    if(document.images)
    {
        document[buttonname].src    =   eval(buttonname + "up.src");
    }
}

