﻿var Plus, Minus;
Plus = new Image();
Minus = new Image();
Plus.src = '/templates/images/icon-collapse-plus.gif';
Minus.src = '/templates/images/icon-collapse-minus.gif';

function boxActivatePM(offerBox) {
    for (var i = 1; offerCount >= i; i++) {
        var boxID = "0" + i;
        if (i > 9) {
            boxID = i;
        }
        var boxName = "box" + boxID;
        var more = "more" + boxID;
        if (offerBox == boxID) {
            if (document.getElementById("box" + boxID).style.visibility == "hidden") {
                document.getElementById("more" + boxID + "A").style.backgroundImage = 'url(' + Minus.src + ')';
                show("box" + boxID);
            } else {
                document.getElementById("more" + boxID + "A").style.backgroundImage = 'url(' + Plus.src + ')';
                hide("box" + boxID);
            }
        }
    }
    setBaloonHeight();
}

function initPM() {
    for (var i = 1; offerCount >= i; i++) {
        var boxID = "0" + i;
        if (i > 9) {
            boxID = i;
        }
        hide("box" + boxID);
    }
    setBaloonHeight();
}
