// This function displays a page in a pop-up window
function PopUp(URL) {
     var X = (screen.width - 650) / 2;
     var Y = (screen.height - 475) / 2;
     open(URL, "POP", "width=500,height=400,scrollbars=yes,resizable=yes,screenX=" + X + ",screenY=" + Y);
}

// This page prints a random quote from the Writings
function RandomQuote() {
     quotes=new Array; 
     quoteauthors=new Array;
     quotes[1]="Behold how the manifold grace of God, which is being showered from the clouds of Divine glory, hath, in this day, encompassed the world. For whereas in days past every lover besought and searched after his Beloved, it is the Beloved Himself Who now is calling His lovers and is inviting them to attain His presence."; 
     quoteauthors[1]="Bah&aacute;'u'll&aacute;h"; 
     quotes[2]="The essence of faith is the fewness of words and abundance of deeds; he whose words exceed his deeds, know verily his death is better than his life."; 
     quoteauthors[2]="Bah&aacute;'u'll&aacute;h"; 
     quotes[3]="O son of being! Thy Paradise is My love; thy heavenly home, reunion with Me. Enter therein and tarry not. This is that which hath been destined for thee in Our kingdom above and Our exalted dominion."; 
     quoteauthors[3]="Bah&aacute;'u'll&aacute;h"; 
     quotes[4]="O son of man! Thou art My dominion and My dominion perisheth not; wherefore fearest thou thy perishing? Thou art My light and My light shall never be extinguished; why dost thou dread extinction? Thou art My glory and My glory fadeth not; thou art My robe and My robe shall never be outworn. Abide then in thy love for Me, that thou mayest find Me in the realm of glory.";
     quoteauthors[4]="Bah&aacute;'u'll&aacute;h";
     quotes[5]="Say: In the East the light of His Revelation hath broken; in the West have appeared the signs of His dominion. Ponder this in your hearts, O people, and be not of those who have turned a deaf ear to the admonitions of Him Who is the Almighty, the All-Praised. Let the Breeze of God awaken you. Verily, it hath wafted over the world. Well is it with him that hath discovered the fragrance thereof and been accounted among the well-assured."; 
     quoteauthors[5]="Bah&aacute;'u'll&aacute;h"; 
     quotes[6]="O people of God! I admonish you to observe courtesy, for above all else it is the prince of virtues. Well is it with him who is illumined with the light of courtesy and is attired with the vesture of uprightness. Whoso is endued with courtesy hath indeed attained a sublime station."; 
     quoteauthors[6]="Bah&aacute;'u'll&aacute;h"; 
     quotes[7]="Dissipate not the wealth of your precious lives in the pursuit of evil and corrupt affection, nor let your endeavours be spent in promoting your personal interest. Be generous in your days of plenty, and be patient in the hour of loss. Adversity is followed by success and rejoicings follow woe. Guard against idleness and sloth, and cling unto that which profiteth mankind, whether young or old, whether high or low. Beware lest ye sow tares of dissension among men or plant thorns of doubt in pure and radiant hearts."; 
     quoteauthors[7]="Bah&aacute;'u'll&aacute;h"; 
     num = Math.random();
     num = 1 + ( num * (( quotes.length - 1)-1));
     num = Math.round(num);
     document.write("<I>" + quotes[num] + "</I>");
     document.write("<P ALIGN='right'><I>~ " + quoteauthors[num] + "&nbsp;&nbsp;&nbsp;&nbsp;</I></P>");
}

// This function creates an email link
function EmailLink(EmailName) {
     var Names = ['email us', 'webmaster', 'librarian'];
		 var Emails = ["mailto:bccinformation@greaterbaltimorebahais.org",
                   "mailto:bccwebmaster@greaterbaltimorebahais.org",
                   "mailto:bcclibrary@greaterbaltimorebahais.org"];
     var i;
		 
     for (i=0;i<Names.length;i++) {
          if (Names[i]==EmailName) {
               // Build numbered text for current row
               document.write("<A HREF='" + Emails[i] + "'>" + EmailName + "</A>");
          }
     }
}

