function getPop(f,n,w,h,s) {
	wLeft = Math.round((screen.width - w)/2);
	wTop = Math.round((screen.height - h)/2);
	window.open(f,n,'scrollbars='+s+',resizable=yes,top='+wTop+',left='+wLeft+',width='+w+',height='+h);
}

function getMedia(x,t,f) {
	e1 = getElement(x+'1');
	e2 = getElement(x+'2');
	t1 = getElement('content_title_'+t);
	if (e1.style.display == 'block' || e1.style.display == '') {
		e1.style.display = 'none';
		e2.style.display = 'block';
		t1.src = 'images/title_'+f+'_off.gif';
	}
	else {
		e2.style.display = 'none';
		e1.style.display = 'block';
		t1.src = 'images/title_'+f+'_on.gif';
	}
}

function getElement(y) {
	var z = '';
	if (document.getElementById) {
		z = document.getElementById(y);
	}
	else if (document.all) {
		z = document.all[y];
	}
	else if (document.layers) {
		z = document.layers[x];
	}
	return z;
}

