/* PNG alpha transparancy behavior for IE6 browsers */
if (document.all && document.styleSheets && document.styleSheets[0] &&
document.styleSheets[0].addRule)
{
	document.styleSheets[0].addRule('#menubar .switch-section', 'behavior: url("css/iepngfix.htc")');
	document.styleSheets[0].addRule('#footer-links li a img', 'behavior: url("css/iepngfix.htc")');
	//document.styleSheets[0].addRule('#menuitems .expandable', 'behavior: url("css/iepngfix.htc")');
}

function resize(elementName, size) {
	minimumSize = 80;
	maximumSize = 170;
	
	el = document.getElementById(elementName);
	if (el.style.fontSize == '') {
		el.style.fontSize = '100%';
	}
	
	strlength = el.style.fontSize.length;
	
	currentSize = parseFloat(el.style.fontSize);
	fontSize = (currentSize + (10 * size));

	// Only resize when within minimum and maximum constraints
	if (fontSize >= minimumSize && fontSize <= maximumSize) {			
		el.style.fontSize = fontSize + '%';
	}
}