<!--

var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var remote = null;

var PrayerWidth = 300;
var PrayerOfTheWeek = "<div style='float: left; left: 10; top: 0; padding-bottom: 10; position: relative;' >" +
     "O Mary, My Queen, my Mother,<br>" +
     "I give myself entirely to Thee,<br>" +
     "and to show my devotion to Thee,<br>" +
     "I consecrate to You this day<br>" +
     "my eyes, my ears, my mouth, my heart,<br>" +
     "my whole being without reserve.<br>" +
     "Therefore good Mother,<br>" +
     "as I am Thy own,<br>" +
     "keep me and guard me<br>" +
     "as Thy property and possession.<br></div>";
var PrayerStyle = "";

function clearEl() {}

function launchCenter(contents, name, height, width) {
       var str = "resizable,scrollbars," + "height=" + height + ",innerHeight=" + height;
       str += ",width=" + width + ",innerWidth=" + width;
       if (window.screen) {
         var ah = screen.availHeight - 30;
         var aw = screen.availWidth - 10;

         var xc = (aw - width) / 2;
         var yc = (ah - height) / 2;

         str += ",left=" + xc + ",screenX=" + xc;
         str += ",top=" + yc + ",screenY=" + yc;
       }
       // if win and win.open exist, move the window
       if (remote && remote.open && !remote.closed) {
         // just give it focus (raise to top of window stack)
         remote.focus();
       } else {  // create new window
         remote = window.open("", name, str);
         remote.document.clear();
         remote.document.write(contents);
         remote.focus();
       }
}

function showHide(shID) {
    if (document.getElementById(shID)) {
        if (document.getElementById(shID+'-show').style.display != 'none') {
            document.getElementById(shID+'-show').style.display = 'none';
            document.getElementById(shID).style.display = 'block';
        }
        else {
            document.getElementById(shID+'-show').style.display = 'inline';
            document.getElementById(shID).style.display = 'none';
        }
    }
}

function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function HideContent(d) {
document.getElementById(d).style.display = "none";
}

function ShowContent(d) {
document.getElementById(d).style.display = "block";
}

function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

function ShowPop(id)
{
   document.getElementById(id).style.visibility = "visible";
}
function HidePop(id)
{
   document.getElementById(id).style.visibility = "hidden";
}


function EmbedReading(idtag, year, month, day)
{
	var title = "Reading for " + month + "-" + day + "-20" + year;
	var soundURL = "http://ccc.usccb.org/cccradio/NABPodcasts/" + year + "_" + month + "_" + day + ".mp3";

	parmObj = {
	soundFile : soundURL,
	titles : title
	};

	// alert("Title: " + title + " URL: [" + soundURL + "]" );
	AudioPlayer.embed(idtag, parmObj );
}


function EmbedAudio(idtag, title, audioURL)
{
	parmObj = {
	soundFile : audioURL,
	titles : title
	};

	// alert("Title: " + title + " URL: [" + soundURL + "]" );
	AudioPlayer.embed(idtag, parmObj );
}

/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) //if scroller hasn't reached the end of its height
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" //move scroller upwards
else //else, reset to original position
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view)
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee


// -->

