function swapItem(item, initialVal, state) {
	if (state == 0) {
		if (item.value == initialVal) {
			item.value = '';
		}
	} else if (state == 1) {
		if (item.value == '') {
			item.value = initialVal;
		}
	}
}

// This is a bit of a hack. Take the last digit from our ID - and use this to determine the element we'll change the class on.
function setMenuOn(id) {
    if (typeof id != 'undefined') {
        var newid = id.charAt(id.length - 1);
        identity = document.getElementById('ucTemplate_Navigation1_nav' + newid)
        identity.className = 'selected';
    }
}

function setMenuOff(id) {
    if (typeof id != 'undefined') {
        var newid = id.charAt(id.length - 1);
        identity = document.getElementById('ucTemplate_Navigation1_nav' + newid)
        identity.className = '';
    }
}