function mouseover_nav()
{
    if(this.src.match(/(a|b)(\.((gif)|(jpg)|(jpeg)))\s*$/) != null)
        this.src = this.src.replace(/(a|b)(\.((gif)|(jpg)|(jpeg)))\s*$/, "b$2");
    else
        this.src = this.src.replace(/(\.((gif)|(jpg)|(jpeg)))\s*$/, "_m$1");
}
function mouseoff_nav()
{
    if(this.src.match(/(a|b)(\.((gif)|(jpg)|(jpeg)))\s*$/) != null)
        this.src = this.src.replace(/(a|b)(\.((gif)|(jpg)|(jpeg)))\s*$/, "a$2");
    else
        this.src = this.src.replace(/\_m(\.((gif)|(jpg)|(jpeg)))\s*$/, "$1");
}

function init_nav_ro(divToInit)
{
    var imageArray = document.getElementById(divToInit).getElementsByTagName("img");
    
    for(var i=0; i < imageArray.length; i++)
    {
        var tempImage = new Image();
        
        if(imageArray[i].src.match(/(a|b)(\.((gif)|(jpg)|(jpeg)))\s*$/) != null)
            tempImage.src = imageArray[i].src.replace(/(a|b)(\.((gif)|(jpg)|(jpeg)))\s*$/, "b$2");
        
        imageArray[i].onmouseover = mouseover_nav;
        imageArray[i].onmouseout = mouseoff_nav;
    }
}
