function colorNavItemExpanded(id, bgColor, txtColor) {
	var obj_div = document.getElementById("subnavigation_expanded_child_" + id)
	var obj_link = document.getElementById("subnavigation_expanded_child_link_" + id)
	// set colors
	obj_div.style.backgroundColor = bgColor
	obj_div.style.color = txtColor
	obj_link.style.color = txtColor
}

function switchStylesheet() {
	var screenWidth = screen.availWidth
	var browserWidth
	if (self.innerHeight) {
		// all except Explorer
		browserWidth = self.innerWidth
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		// Explorer 6 Strict Mode
		browserWidth = document.documentElement.clientWidth
	}
	else if (document.body) {
		// other Explorers
		browserWidth = document.body.clientWidth
	}
	// which stylesheet to activate
	if (screenWidth <= 1024 || browserWidth <= 1024) {
		document.styleSheets[0].disabled = false
		document.styleSheets[1].disabled = true
		if (document.styleSheets.length > 3) {
			document.styleSheets[2].disabled = false
			document.styleSheets[3].disabled = true
		}
	} else {
		document.styleSheets[0].disabled = true
		document.styleSheets[1].disabled = false
		if (document.styleSheets.length > 3) {
			document.styleSheets[2].disabled = true
			document.styleSheets[3].disabled = false
		}
	}
}

switchStylesheet()
window.onresize = switchStylesheet
