var CurrentDivID = 1;
var MaxDivID = 1;

function ShowNavDivID(DivID) {
    CurrentDivID = DivID;
    ShowNavDivIDLayers();
    return false;
}

function ShowNavDivIDPrev() {
    CurrentDivID--;
    ShowNavDivIDLayers();
    return false;
}

function ShowNavDivIDNext() {
    CurrentDivID++;
    ShowNavDivIDLayers();
    return false;
}

function ShowNavDivIDLayers() {
    for (i = 1; i <= MaxDivID; i++) {
        var elemDiv = document.getElementById('div3rdLevelNav' + i);
        if (i == CurrentDivID) {
            elemDiv.style.display = 'block';
        } else {
            elemDiv.style.display = 'none';
        }
    }
}
function opencart(h) {
    h = h.stripX(true);
    window.open(h, 'myCart', 'left=10, top=10, height=700, width=940, status=no, resizable=yes, scrollbars=yes, toolbar=no,location=yes, menubar=no');
    return false;
}
String.prototype.stripX=function(boo){
var str= this;
if(boo){
str= str.replace(/\&amp;/g,'&');
str= str.replace(/\&lt;/g,'<');
}
else{
str= str.replace(/\&/g,'&amp;');
str= str.replace(/</g,'&lt;');
}
return str;
};