	// called by Flash: show the given id, and hide the others in the 'toggle' class
	function showDiv(id){
		var classProp = (navigator.userAgent.indexOf('MSIE')>-1) ? 'className' : 'class';
		var elements = document.getElementsByTagName('div'); // or '*' if absolutely needed
		
		// apply hidden class to all found members of the hideable class
		for (var i=0; i<elements.length; i++) {
			if (elements[i].className.indexOf('toggle')>-1) {
				elements[i].setAttribute(classProp, 'toggle hidden');
			}
		}
		
		//remove hidden class from the active id
		document.getElementById(id).setAttribute(classProp, 'toggle');
	}

	// extract the GET variables from the URL
	var getVars = window.location.href.slice(window.location.href.indexOf('?') + 1);
	if (getVars == window.location.href) { getVars = ""; } // filter out URL if there are no GET vars

	// append getVars with ad text and URL
	var adContent = document.getElementById('adcontent');
	getVars += (adContent) ? '&adbartext=' + adContent.innerHTML + '&adbarurl=' + adContent.href : '';

	// standard RunContent call generated by Flash, except for the custom lines containing getVars
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '694',
			'height', '284',
			'src', 'interface',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'interface',
			'bgcolor', '#ffffff',
			'name', 'interface',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'interface',
			'salign', '',
			// propagate GET vars to Flash
			'flashvars', getVars
			); //end AC code
	}