/**
 * Author: Ondrej Slamecka, www.slamecka.cz
 */ 

/**
 * Returns styleProp of given element
 */
function getStyle(el, styleProp)
{
    if (el.currentStyle) 
        return el.currentStyle[styleProp];
    else if (window.getComputedStyle)
        return document.defaultView.getComputedStyle(el,null).getPropertyValue(styleProp);
}

/* MAIN */
window.onload = function()
{             
    var control = document.getElementById('control_businessdata');        	          
    var body = document.getElementsByTagName('body')[0];
    var businessdata = document.getElementById('businessdata');	  
    businessdata.style.display = 'none';
                                          
    control.addEventListener(
        'click', 
        function()
        {                 
            businessdata.style.display = ''; // show
            control.style.textDecoration = 'none'; control.style.color = getStyle(body, 'color'); control.style.cursor = 'auto';
            return false;
        },
        false);
}
