function rollup_contract(in_buttonSwitch, in_listID)
{
    if (document.getElementById) {
        listID = document.getElementById(in_listID);
    }
    else {
        return;
    }
// mod bcs - prevent errors - start
	if ( listID == null )
		return;
// mod bcs - prevent errors - end
		
// MOD ROLLOUT BEGIN
	if (listID.style.display == '') {
		listID.style.display = 'none';
		if (in_buttonSwitch.rolloutOff == undefined) {
			in_buttonSwitch.innerHTML = '+';
		} else {
			in_buttonSwitch.innerHTML = '<img src="' + in_buttonSwitch.rolloutOff + '" border="0">';
		}
		rollup_record_state(in_listID, 0);
	} else {
		listID.style.display = '';
		if (in_buttonSwitch.rolloutOn == undefined) {
			in_buttonSwitch.innerHTML = '-';
		} else {
			in_buttonSwitch.innerHTML = '<img src="' + in_buttonSwitch.rolloutOn + '" border="0">';
		}
		rollup_record_state(in_listID, 1);
	}
//     if (listID.style.display == '') {
//         listID.style.display = 'none';
//         in_buttonSwitch.innerHTML = '+';
//         rollup_record_state(in_listID, 0);
//     }
//     else {
//         listID.style.display = '';
//         in_buttonSwitch.innerHTML = '-';
//         rollup_record_state(in_listID, 1);
//     }
// MOD ROLLOUT END

    if (window.event) {
        window.event.cancelBubble=true;
    }
}

function rollup_record_state(in_listID, status) 
{
    var expDate = new Date();
    // expires in 1 year
    expDate.setTime(expDate.getTime() + 31536000000);
    document.cookie = in_listID + "=" + escape(status) + "; expires=" + expDate.toGMTString();
}

