
function changeBgImage(image, id) {
	var element = document.getElementById(id);
	element.style.backgroundImage = "url(" + image + ")";
}

function changeBgColor(color, id) {
	var element = document.getElementById(id);
	element.style.backgroundColor = color;
}

function changeColor(color, id) {
	var element = document.getElementById(id);
	element.style.color = color;
}

function showonlyone(thechosenone) {
    var dnn_switchcontent = document.getElementsByTagName("div");
    for (var x=0; x<dnn_switchcontent.length; x++) {
        name = dnn_switchcontent[x].getAttribute("name");
        if (name == 'dnn_switchcontent') {
            if (dnn_switchcontent[x].id == thechosenone) {
            dnn_switchcontent[x].style.visibility = 'visible';
            dnn_switchcontent[x].style.opacity = '1';
            dnn_switchcontent[x].style.position = 'absolute';
        }
        else {
            dnn_switchcontent[x].style.visibility = 'hidden';
            dnn_switchcontent[x].style.opacity = '0';
            dnn_switchcontent[x].style.position = 'absolute';
        }
		}
    }
}

function showonlyonelogo(thechosenone) {
    var switchlogo = document.getElementsByTagName("div");
    for (var x=0; x<switchlogo.length; x++) {
        name = switchlogo[x].getAttribute("name");
        if (name == 'switchlogo') {
            if (switchlogo[x].id == thechosenone) {
            switchlogo[x].style.visibility = 'visible';
            switchlogo[x].style.opacity = '1';
        }
        else {
            switchlogo[x].style.visibility = 'hidden';
            switchlogo[x].style.opacity = '0';
        }
    }
    }
}

function showall() {
    var dnn_switchcontent = document.getElementsByTagName("div");
    for (var x=0; x<dnn_switchcontent.length; x++) {
        name = dnn_switchcontent[x].getAttribute("name");
        if (name == 'dnn_switchcontent') {
            dnn_switchcontent[x].style.visibility = 'visible';
            dnn_switchcontent[x].style.opacity = '1';
            dnn_switchcontent[x].style.position = 'relative';
    }
    }
}
