function showImage(pageCode){

    //alert(pageCode);
    
    // rotate Images on refresh
    var theImages = new Array()
    
    switch (pageCode) {
        case 'project_services': 
            theImages[0] = '../App_Themes/Marketing/images/project_services1.jpg'
            theImages[1] = '../App_Themes/Marketing/images/project_services2.jpg'
            theImages[2] = '../App_Themes/Marketing/images/project_services3.jpg'
            theImages[3] = '../App_Themes/Marketing/images/project_services4.jpg'
            break;
        case 'tug_fleet': 
            theImages[0] = '../App_Themes/Marketing/images/sms_1.jpg'           
            theImages[1] = '../App_Themes/Marketing/images/sms_3.jpg'
            break;            
       case 'sms_safety_information': 
            theImages[0] = '../App_Themes/Marketing/images/sms_1.jpg'
            theImages[1] = '../App_Themes/Marketing/images/sms_3.jpg'
            break;  
        case 'contact_sms': 
            theImages[0] = '../App_Themes/Marketing/images/sms_1.jpg'
            theImages[1] = '../App_Themes/Marketing/images/sms_3.jpg'
            break;    
        case 'cash_construction':                             
            theImages[0] = '../App_Themes/Marketing/images/const_header_img01.png'
            theImages[1] = '../App_Themes/Marketing/images/const_header_img02.png'
            theImages[2] = '../App_Themes/Marketing/images/const_header_img03.png'
            theImages[3] = '../App_Themes/Marketing/images/const_header_img04.png'
            theImages[4] = '../App_Themes/Marketing/images/const_header_img05.png'
            theImages[5] = '../App_Themes/Marketing/images/const_header_img06.png'
            theImages[6] = '../App_Themes/Marketing/images/const_header_img07.png'
            theImages[7] = '../App_Themes/Marketing/images/const_header_img08.png'
            theImages[8] = '../App_Themes/Marketing/images/const_header_img09.png'
            theImages[9] = '../App_Themes/Marketing/images/const_header_img10.png'
            theImages[10] = '../App_Themes/Marketing/images/const_header_img11.png'
            theImages[11] = '../App_Themes/Marketing/images/const_header_img13.png'
            theImages[12] = '../App_Themes/Marketing/images/const_header_img14.png'            
            break;
        default: 
            theImages[0] = '../App_Themes/Marketing/images/header_img01.gif'
            theImages[1] = '../App_Themes/Marketing/images/header_img02.gif'
            theImages[2] = '../App_Themes/Marketing/images/header_img04.gif'
            theImages[3] = '../App_Themes/Marketing/images/header_img07.jpg';
        }
    
    var j = 0
    var p = theImages.length;
    var preBuffer = new Array()
    for (i = 0; i < p; i++){
        preBuffer[i] = new Image()
        preBuffer[i].src = theImages[i]
    }

    var whichImage = Math.round(Math.random()*(p-1));
    
    document.write('<img src="'+theImages[whichImage]+'" width="661" height="177" title="Cashman Equipment">');
}






