<!--

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 EmbedReading(idtag, year, month, day)
{
	var title = "Reading for " + month + "-" + day;
	var soundURL = "http://ccc.usccb.org/cccradio/NABPodcasts/" + year + "_" + month + "_" + day + ".mp3";
	var soundFile = "{soundFile: " + soundURL + ", titles: " + title + "}";
	alert ("Title: " + title + " URL: [" soundURL + "]");
	/* AudioPlayer.embed(idtag, soundFile ); */
}



// -->

