
function CategoryPage(params) {
    this._init_params(params);
}

function _o() {}
_o.prototype = new Page();

CategoryPage.prototype = new _o();

CategoryPage.prototype.toString = function() {
    return "[CategoryPage object]";
}

CategoryPage.prototype.previewAudioWink = function(product, title, price, path) {
    var shell = this.find_element("product-flash-shell");
    var container = shell.parentNode.parentNode.parentNode; // :-)
    container.firstChild.style.display = "none";
    container.childNodes[1].style.display = "block";
    shell.parentNode.parentNode.firstChild.style.display = "none";
    shell.parentNode.style.display = "block";
    try {
        var img = container.childNodes[1].getElementsByTagName("img").item(1);
        if (img) {
            img.style.border = "none";
            img.parentNode.setAttribute("href", "javascript:window.location.href='" + this.khost + "/preview.pd?path=" + path + "&prodnum=" + product + "'");
        }
        container.childNodes[1].getElementsByTagName("img").item(0).style.border = "none";
    } catch(e) { }
    var spans = container.childNodes[1].getElementsByTagName("span");
    for (var i = 0; i < spans.length; i++) {
        if (spans.item(i).className == "thumb-name") {
            spans.item(i).innerHTML = "&quot;" + title.replace("&apos;", "'") + "&quot;";
        } else if (spans.item(i).className == "thumb-price") {
            spans.item(i).innerHTML = price;
        }
    }
    playWink(shell, product, "400", "300");
}

CategoryPage.prototype.endAudioWink = function() {
    var shell = this.find_element("product-flash-shell");
    var container = shell.parentNode.parentNode.parentNode; // :-)
    shell.parentNode.parentNode.firstChild.style.display = "block";
    shell.parentNode.style.display = "none";
}
