﻿// Move an element directly on top of another element (and optionally
// make it the same size)
function Cover(bottom, top, ignoreSize) {
    var location = Sys.UI.DomElement.getLocation(bottom);
    top.style.position = 'absolute';
    top.style.top = location.y + 'px';
    top.style.left = location.x + 'px';
    if (!ignoreSize) {
        top.style.height = bottom.offsetHeight + 'px';
        top.style.width = bottom.offsetWidth + 'px';
    }
}

function ServicesButton_SetPopout() {
    document.getElementById('ctl00_ContentPlaceHolder1_btnInfo').src = './Resources/Images/services_button_gray.png';
    document.getElementById('ctl00_ContentPlaceHolder1_ibtnPopoutImage').src = './Resources/Images/ourservices.gif';
}

function TechnologyButton_SetPopout() {
    document.getElementById('ctl00_ContentPlaceHolder1_ibtnTechnology').src = './Resources/Images/technology_button_gray.png';        
    document.getElementById('ctl00_ContentPlaceHolder1_ibtnPopoutImage').src = './Resources/Images/ourtechnology.gif';
}

function ExpertiseButton_SetPopout() {
    document.getElementById('ctl00_ContentPlaceHolder1_ibtnExpertise').src = './Resources/Images/expertise_button_gray.png';
    document.getElementById('ctl00_ContentPlaceHolder1_ibtnPopoutImage').src = './Resources/Images/ourexpertise.gif';
}
