var url = document.location.toString(); 
var strippedUrl = url.toString().split('#');
var strippedFullUrl = url.toString().split('/');
url = url.replace(strippedFullUrl[strippedFullUrl.length-1],"");

if(strippedUrl.length > 1) 
{     
    document.location.href = url + strippedUrl[1] + '.aspx';
}

/*function setAnchor(productNumber)
{
    location.href= '#' + productNumber;    
} */


function setAnchor(anchorText, contentName)
{
    title = document.title;
    
    title = title.substring(0,title.indexOf("-", 0)) + " - " + contentName;
    location.href = '#' + anchorText;
    
    if(navigator.userAgent.indexOf('MSIE') > -1)
    {
        setTimeout('resetTitle()',100);
        setTimeout('resetTitle()',500);
    }
}

var title;
var stop=0;        

function resetTitle()
{
    if(document.title != title)
    {
        document.title = title
        stop=0;
    }
    else if (stop < 3000)
    {
        stop++;
        setTimeout('resetTitle()',10);
    }
}

