/* Copyright 2008 KPMC - Author: Jonathan Stephan*/

/* Navigation Menu */

function MouseOver(obj, img)
{
    obj.src = 'http://www.kpmc.co.za/Images/Link' + img + 'Hover.jpg';
    obj.style.cursor = 'pointer';
}
function MouseOut(obj, img)
{
    obj.src = 'http://www.kpmc.co.za/Images/Link' + img + '.jpg';
}
function PreviewImage(path, resize)
{
    var strPage = '';
    var strWin = 'resizable=no';

    if (resize == 'no') 
    {
        strPage = '&resize=no';
        strWin = 'resizable=yes';
    }
    window.open('http://www.kpmc.co.za/preview.aspx?image=Images/' + path + strPage, '', 'scrollbars=no,' + strWin);
}
function ShowOrganogram(path, img, lbl) 
{
    document.getElementById('imgLoad').style.display = 'block';
    document.getElementById('imgOrganogram').style.display = 'none';
    
    var imageObj = new Image();
    imageObj.onload = function() 
    {
        document.getElementById('lblOrganogram').innerHTML = lbl;
        
        document.getElementById('imgLoad').style.display = 'none';
        document.getElementById('imgOrganogram').style.display = 'block';

        document.getElementById('light').style.height = imageObj.height + 70 + 'px';

        return false;
    }
    imageObj.src = 'Images/' + path + img;

    document.getElementById('imgOrganogram').src = 'Images/' + path + img;
    document.getElementById('fade').style.height = screen.height * 3 + 'px';
    document.getElementById('light').style.display = 'block';
    document.getElementById('fade').style.display = 'block';
}
