/* Last published: 10 Feb 2012 12:31 */


document.write('<style media="screen" type="text/css">.extraInfo {visibility:hidden;position:absolute }</style>') ;
var hoverTogable;
function hideareas() {
        hoverTogable= new togObj('hovertogvis'); 
        
        var extraInfoHovers = getElements("extraInfoHover");
        for(iLoopy=0; iLoopy<extraInfoHovers.length; iLoopy++) {
    
            
            var thisExtraInfoHover = extraInfoHovers[iLoopy];
            
            var extraInfo_Id = "";   
            var hoverFocusArray = getElements("hoverFocus", "", thisExtraInfoHover);
            
            if(hoverFocusArray.length==1) {
                var theHoverFocus = hoverFocusArray[0];
                
                extraInfo_Id = "extraInfo_" + theHoverFocus.id;
                
                theHoverFocus.onfocus=new Function("show('"+ extraInfo_Id +"')");
                theHoverFocus.onblur=new Function("hide('"+ extraInfo_Id +"')");
            }
            
            
            var extraInfoArray = getElements("extraInfo", "div", thisExtraInfoHover);
            
            if(extraInfoArray.length==1) {
                var theExtraInfo = extraInfoArray[0];
                
                theExtraInfo.setAttribute('id', extraInfo_Id);
                // theExtraInfo.className="hiddenarea";
                addClass(theExtraInfo, "hiddenarea");
                theExtraInfo.style.visibility = 'hidden';
                theExtraInfo.showHidden = false;
            }
            
            thisExtraInfoHover.onmouseover=new Function("show('"+ extraInfo_Id +"')");
            thisExtraInfoHover.onmouseout=new Function("hide('"+ extraInfo_Id +"')");
        }
    }

function show(ElemId)
    {
    var element;
    if(typeof ElemId == "string") {
        element = document.getElementById(ElemId);  // element id
    }
    if (element){  
        
        var extraInfoArray = getElements("extraInfo", "div", "");
        for(extraInfoCount=0; extraInfoCount<extraInfoArray.length; extraInfoCount++) {
            var thisExtraInfo = extraInfoArray[extraInfoCount];
            thisExtraInfo.style.visibility = 'hidden';
            
            thisExtraInfo.showHidden = false;
        }
        
        var theElement = document.getElementById(ElemId);
        theElement.showHidden = true;
        var timerId;
        var timerId = setTimeout(function() 
            {
            
            if(theElement.showHidden==true) {
                theElement.style.visibility = 'visible';
                hoverTogable.hideIE(); 
            }
        } ,500);    
    }
}

function hide(ElemId)
    {
    var element;
    if(typeof ElemId == "string") {
        element = document.getElementById(ElemId);  // element id
    }
    if (element){  
        element.style.visibility = 'hidden';
        element.showHidden=false;
        hoverTogable.showIE();
    }
    }
        
addLoadEvent(hideareas);
