function showText (num) {
	hideText ();
	if (document.getElementById){
		eval('document.getElementById("p' + num + '").style.display = "block"');
	}else if (document.all){
		eval('document.all.p' + num + '.style.display = "block"');
	}else{
		eval('document.p' + num + '.display = "block"');
	}
}

function hideText () {
	
	for (i=1;i<=8;i++) 
	{
		if (document.getElementById){
		eval('document.getElementById("p' + i + '").style.display = "none"');
		}else if (document.all){
		eval('document.all.p' + i + '.style.display = "none"');
		}else{
		eval('document.p' + i + '.display = "none"');
		}
	}
}


function goPopupDetect(url, width, height, scrollWin) {
  var myTest = window.open("about:blank","","directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no");
  if (!myTest) {
    alert("In order to view the media player you will need to disable any popup blockers");
  } else {
    myTest.close();
	var winLeft = (screen.width - width) / 2;
	var winUp = (screen.height - height) / 2;
	win = window.open(url,'popup', 'toolbar=no, resizable=yes, scrollbars='+scrollWin+', width='+width+', height='+height+',left='+winLeft+',top='+winUp);
	win.focus();
  }
}

