function highlight(domElem, domElemId) 
{
    var curSrc = domElem.src;

    //get the location path -> 
    //if the dom element id responds to it 
    //then return   
  
    if(window.location.pathname.indexOf('/MyKitchen/') >= 0)
    {
        if (domElem.id == 'imgMyKitchen')
        return;
    }    
    else if(window.location.pathname.indexOf('/Recipes/') >= 0)
    {
        if (domElem.id == 'imgRecipes')
        return;
    }
    else if(window.location.pathname.indexOf('/People/') >= 0)
    {
        if (domElem.id == 'imgPeople')
        return;
    }
    else if(window.location.pathname.indexOf('/Forum/') >= 0)
    {
        if (domElem.id == 'imgForum')
        return;    
    }
    else if(window.location.pathname.indexOf('/Blog/') >= 0)
    {
        if (domElem.id == 'imgBlog')
        return;     
    }
    else
    {
        if (domElem.id == 'imgHome')
        return; 
    }
    
    if (curSrc.match('Green')) 
    {
        domElem.src = curSrc.replace(/Green/, 'Orange');
    } 
    else 
    { 
        domElem.src = curSrc.replace(/Orange/, 'Green');
    }
}
function highlight11(domElem, domElemId) 
{
    var curSrc = domElem.src;

    //get the location path -> 
    //if the dom element id responds to it 
    //then return   
  
    if(window.location.pathname.indexOf('/MyKitchen/') >= 0)
    {
        if (domElem.id == 'imgMyKitchen')
        return;
    }    
    else if(window.location.pathname.indexOf('/Recipes/') >= 0)
    {
        if (domElem.id == 'imgRecipes')
        return;
    }
    else if(window.location.pathname.indexOf('/People/') >= 0)
    {
        if (domElem.id == 'imgPeople')
        return;
    }
    else if(window.location.pathname.indexOf('/Forum/') >= 0)
    {
        if (domElem.id == 'imgForum')
        return;    
    }
    else if(window.location.pathname.indexOf('/Blog/') >= 0)
    {
        if (domElem.id == 'imgBlog')
        return;     
    }
    else if(window.location.pathname.indexOf('/Webari/') >= 0)
    {
        if (domElem.id == 'imgWebari')
        return;     
    }
    else if(window.location.pathname.indexOf('/astore.amazon.co.uk/') >= 0)
    {
        if (domElem.id == 'imgBookshop')
        return;     
    }
    else
    {
        if (domElem.id == 'imgHome')
        return; 
    }
    
    if (curSrc.match('_1')) 
    {
        domElem.src = curSrc.replace(/_1/, '_0');
    } 
    else if(curSrc.match('_0')) 
    { 
        domElem.src = curSrc.replace(/_0/, '_1');
    }
}

function setForusToLogin (controlId) 
{
    var bIsReady = true;
     
    while(bIsReady == true)
    {
        try
        {
            document.getElementById(controlId).focus();
            bIsReady = false;
        }
        catch(err)
        {
            bIsReady = true;
        }
    }
}