function highlight_image(a)
{
    highlight_li(a);
    highlight_link_from_image(a);
    var name = "register_" + a;
    id = document.getElementById(name);
    
    id.style["border"] = "solid 3px #ff9900";
    
    var str = eval("id.style.top"); 
    if((str != "") && (str != null)) 
        str = str.replace(/px/,"");
    else
        str = "0";            
    a = parseInt(str); 
    id.style["top"] = a - 3 + "px";  
    
    var str = eval("id.style.left"); 
    if((str != "") && (str != null)) 
        str = str.replace(/px/,"");
    else
        str = "0";            
    a = parseInt(str);   
    id.style["left"] = a - 3 + "px";  

    id.style["marginBottom"] = "-6px";
    id.style["marginRight"] = "-6px";

}


function lowlight_image(a)
{
    lowlight_li(a);
    lowlight_link_from_image(a);
    var name = "register_" + a;
    id = document.getElementById(name);

    id.style["border"] = "none";
    
    var str = eval("id.style.top"); 
    if((str != "") && (str != null)) 
        str = str.replace(/px/,"");
    else
        str = "0";            
    a = parseInt(str); 
    id.style["top"] = a + 3 + "px";  
    
    var str = eval("id.style.left"); 
    if((str != "") && (str != null)) 
        str = str.replace(/px/,"");
    else
        str = "0";            
    a = parseInt(str);   
    id.style["left"] = a + 3 + "px";  

    id.style["marginBottom"] = "0";
    id.style["marginRight"] = "0";
}


function highlight_link(id)
{
    
    highlight_image(id);
    highlight_li(id);
}

function lowlight_link(id)
{
    
    lowlight_image(id);
    lowlight_li(id);
}

function click_link(href)
{
    window.location= href;
}

function highlight_li(id)
{
    var name = "li_" + id;
    id = document.getElementById(name);
    id.style["listStyleImage"] = "url(/images/directory_images/register_pointer.gif)"; 
    id.style["borderColor"] = "#ff9900"; 
    id.style["cursor"] = "pointer";
    //id.style["backgroundColor"] = "#ccffff"; 
}

function lowlight_li(id)
{
    var lame = "li_" + id;
    id = document.getElementById(lame);
    id.style["listStyleImage"] = "url(/images/directory_images/register_pointer_off.gif)"; 
    id.style["borderColor"] = "#999"; 
    //id.style["backgroundColor"] = "white"; 
}

function highlight_link_from_image(id)
{
    var name = "link_" + id;
    id = document.getElementById(name);
    id.style["color"] = "#ff9900"; 
    
}

function lowlight_link_from_image(id)
{
    var name = "link_" + id;
    id = document.getElementById(name);
    id.style["color"] = "blue"; 
}


