function showhide(id) {
	if(document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "";
	} else {
		document.getElementById(id).style.display = "none";
	}
}
function showhide2(id) {
	if(document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "";
	} else {
		document.getElementById(id).style.display = "none";
	}
}
function showhide2(id,img) {
            if(document.getElementById(id).style.display == "none") {
                        document.getElementById(id).style.display = "";
                        document.getElementById(img).src = "images/btn_minus.gif";
            } else {
                        document.getElementById(id).style.display = "none";
                        document.getElementById(img).src = "images/btn_plus.gif";
            }
}

function switchImg(id) {
	if(document.getElementById(id).className == "off") {
		document.getElementById(id).className = "on";
	} else {
		document.getElementById(id).className = "off";
	}
}


function roll(id) {
  	thisId = document.getElementById(id);
        defaultId = document.getElementById('default');
        thisId.style.display = (thisId.style.display == 'none' || thisId.style.display == '') ? 'block' : 'none';
        defaultId.style.display = (thisId.style.display == 'none') ? 'block' : 'none';
}



function swap(img) {
var url = '';
var temp = img.src.split('/');
for (var i = 0; i < temp.length-1; i++) url += temp[i]+'/';
img.src = (temp[temp.length-1].indexOf('plus') != -1) ? url+'btn_minus.gif' : url+'btn_plus.gif';
}

function swap2(img) {
var url = '';
var temp = img.src.split('/');
for (var i = 0; i < temp.length-1; i++) url += temp[i]+'/';
img.src = (temp[temp.length-1].indexOf('plus') != -1) ? url+'btn_minus.gif' : url+'btn_plus.gif';
}

