// ------------------------------------
// MESSAGES on the home page.
// - Constants for messages
// - Function to display the message
// & current date time
// ------------------------------------
var lightMsgs=new Array();
var stormMsgs=new Array();
var ladyMsgs=new Array();
var THE_POEM="poem";
var THE_STORM="storm";
var THE_LIGHT="light";
var THE_WAY_IT_WAS="original";
var MEDJ_MSG="medjMsg";
var PET_MSG="petMsg";
var ONEPAGE_MSG="onePageMsg";
var DRUGS_MSG="drugsMsg";
var NUM_STORM_MSGS="10";
var NUM_LIGHT_MSGS="6";
var NUM_LADY_MSGS="6";
var LATEST_NEWS="latestNews";
var thePoem="Ten and one times five
\
Hang from Hands sculptured
\
out of eternal love;
\
And like a prism each bead
\
sends a pathway of light
\
Which can only be described
\
correctly
\
From Above.
\
So it is for you and I
\
To keep these pathways shining?
\
By giving to those who cannot give
\
And we will receive
\
Without receiving. ";
var latestNewsMessage="
LATEST NEWS !!
\
Would You Believe TV program films at house
\
Irish Times interview GRÁ
\
Ian enters house
\
Gerry enters house
\
Killiney Castle with Tubridy Fundraiser, Sat 14th June, 2008
\
Official Opening of Grá House ... a great day!!
\
Paint Job: Thank You Bank of Ireland!
\
Grá Golf Classic was a HUGE SUCCESS. \
Thanks to all who participated, donated & supported !!!
\
For more info click on GRÁ NEWS link";
var newYearMessage='
\
HAPPY NEW YEAR !!!
\
May God Bless you and your family
\
for 2008
';
var welcomeMessage='
\
Grá\
Helping to
\
Re-integrate
\
back into society
\
those with a history of drug addiction
';
var petitionMessage="
Place a petition with Grá
\
Your petitions will be brought to mass weekly by Fr.Robert";
var onePageMessage="
Download our One-Pager
\
This will give you an overview of the organisation...
\
Who, Why, What, When, Where ????
\
and most importantly... How you can help!";
var drugsMessage="
What Drugs can do !!!
\
Take a closer look at the pathway that each drug takes the individual on in order to give that FALSE reward ... that HIGH.";
stormMsgs[0]="In the Storm ...
\
"...Only in the context of the great encounter with Jesus Christ \
himself can a real authentic struggle take place.
The encounter with Christ does \
not take place before, after, or beyond the struggle with our false self and its \
demons.
No, it is precisely in the midst of this struggle that our Lord comes to us.
\
"
(Henri J.M Nouwen)";
stormMsgs[1]="In the Storm ...
\
"The wisdom of the desert is that the confrontation with our own \
frightening nothingness forces us to surrender ourselves totally and unconditionally \
to the Lord Jesus Christ.
" \
(Henri J.M Nouwen)";
stormMsgs[2]="" \
Lo ! there He hangs,
\
Ashened figure pinioned against the wood.
\
God grant that I may love Him,
\
Even as I should
\
I draw a little closer to share this love divine
\
And hear Him softly murmur:
\
Ah, oh foolish child of Mine.
\
If now I should embrace you,
\
My hands would stain thee red,
\
And if I leaned to whisper,
\
The thorns would pierce your head.
\
‘Twas then I learned in meekness, that love
\
demands a price.
\
‘Twas then I knew that sorrow is but the
\
KISS of CHRIST.\
"\
(Anonymous)";
stormMsgs[3]="In the Storm ...
\
"For your sake we are being massacred all day long.
\
"
(Romans 8:36)";
stormMsgs[4]="In the Storm ...
\
"No need to remember past events, \
no need to think about what was done before.
\
" (Isaiah 43:18)";
stormMsgs[5]="In the Storm ...
\
"The Cross is the place of glory - \
the place of true contact and union with God, who is love.
\
" (Pope Benedict XVI)";
stormMsgs[6]="In the Storm ...
\
"I went on a journey throughout my life \
causing a lot of pain, hurt, sadness, and anger towards people. \
If the truth be known I caused myself the most pain.
\
" (Darren)";
stormMsgs[7]="In the Storm ...
\
"At the time I thought this drug was going to complete my life and for \
a short while I loved it. But by the age of eighteen \
my life was a mess, I was out of my house and living in squalor. \
Selling and using as much Heroin as I could by now \
I couldn’t even go one day without Heroin, \
the drug I thought I loved was killing me.
\
" (Paul)";
stormMsgs[8]="In the Storm ...
\
"After spending half my life on drugs and a considerable \
period trying to get off them, I had to try a different approach. \
This came by choosing a Christian way of life, \
not thinking less of myself but thinking of myself less; \
a life of giving not taking.
\
" (Craig)";
stormMsgs[9]="In the Storm ...
\
"It isn’t my body he wants. He can have that whenever he wants, \
it’s my heart he wants. \
The thing was that this time I had actually understood \
what I was saying and I just got this huge wave of emotion sweeping over me. \
In that instant I got a glimpse of something so powerful, \
so huge, so loving, so vast and yet so simple. \
For the first time in my life I had properly opened my eyes \
to the possibility of God and I was blown away \
with what I felt.
\
" (Simon)";
lightMsgs[0]=" "Compassion is born when we discover in the center of our own \
experience not only that God is God and man is man, but also that our neighbour \
is really our fellow man.
"
(Henri J.M Nouwen)";
lightMsgs[1]=""To all humanity which today seems so lost and dominated \
by the power of evil, selfishness and fear, our resurrected Lord gives us his love which forgives, reconciles\
and opens the soul to hope.
"\
(JP II 2005)";
lightMsgs[2]=""My grace is enough for you: \
for power is at full stretch in weakness.
\
"(2 Cor 12:9)";
lightMsgs[3]=""When you call to me and come and pray to me, I shall listen to you. \
When you search for me, you will find me; when you search wholeheartedly for me, \
I shall let you find me.
"
(Jeremiah 29:12)";
lightMsgs[4]=""He must grow greater, I must grow less."
(John 3:30)";
lightMsgs[5]=""Here I am! I stand at the door and knock. \
If anyone hears my voice and opens the door, I will come in and eat with him, and he with me.
\
"
(Rev 3:20)";
ladyMsgs[0]="Our Lady's Message
April 25th, 2007
\
"Dear Children! Also today I again call you \
to conversion. Open your hearts. This is a time of grace while I am with you, make \
good use of it. Say: 'This is the time for my soul'. I am with you and love you \
with immeasurable love. \
Thank you for having responded to my call.
\
"";
ladyMsgs[1]="The Rosary ...
\
"The rosary mystically transports us to Mary’s \
side as she is busy watching over the human growth of Christ in the home of Nazareth. \
This enables her to train us and to mould us with the same care, until Christ is fully \
formed in us.
"(JPII)";
ladyMsgs[2]="The Rosary ...
\
"In the spiritual journey of the rosary we are enabled \
to enter naturally into Christ’s life and to share his deepest feelings.
\
"(JPII)";
ladyMsgs[3]=""The maternal role of Mary towards people \
in no way obscures or diminishes the unique mediation of Christ, but rather shows its power.\
"(Lumen Gentium, 60)";
ladyMsgs[4]=""Mary's mediation is intimately linked \
with her motherhood. It possesses a specifically maternal character, which distinguishes \
it from the mediation of the other creatures who in various and always subordinate ways share \
in the one mediation of Christ, although her own mediation is also a shared mediation.
\
"(JPII, Mary mother of the Redeemer)";
ladyMsgs[5]=""The rosary is both meditation and supplication. \
Prayer to the Mother of God is based on confidence that her maternal intercession can obtain \
all things from the heart of her Son.
"(JPII)";
//
// Function to display a message
// in a given div (e.g like poem, storm, light etc.)
//
function showMessage(id,theMsg) {
var randomnumber="";
if (theMsg==THE_POEM) {
document.getElementById(id).innerHTML="Just Because We Can
" + thePoem + "";
} else if (theMsg==THE_STORM) {
randomnumber=Math.floor(Math.random()*NUM_STORM_MSGS);
document.getElementById(id).innerHTML=stormMsgs[randomnumber];
document.getElementById(id).style.backgroundImage="url('./images/small_theStorm.jpg')";
} else if (theMsg==THE_LIGHT) {
randomnumber=Math.floor(Math.random()*NUM_LIGHT_MSGS);
document.getElementById(id).innerHTML="In the Light ...
" + lightMsgs[randomnumber];
document.getElementById(id).style.backgroundImage="url('./images/theLight.jpg')";
} else if (theMsg==MEDJ_MSG) {
randomnumber=Math.floor(Math.random()*NUM_LADY_MSGS);
document.getElementById(id).innerHTML=ladyMsgs[randomnumber] + welcomeMessage;
} else if (theMsg==DRUGS_MSG) {
document.getElementById(id).innerHTML=drugsMessage + welcomeMessage;
} else if (theMsg==PET_MSG) {
document.getElementById(id).innerHTML=petitionMessage + welcomeMessage;
} else if (theMsg==ONEPAGE_MSG) {
document.getElementById(id).innerHTML=onePageMessage + welcomeMessage;
} else if (theMsg==LATEST_NEWS) {
document.getElementById(id).innerHTML=latestNewsMessage;
} else if (theMsg==THE_WAY_IT_WAS) {
document.getElementById(id).innerHTML=latestNewsMessage;
document.getElementById(id).style.backgroundImage="";
//document.getElementById(id).innerHTML="";
//document.getElementById(id).style.backgroundImage="url('./images/schoolOfOurLadySmall.jpg')";
}
}
// ----------------------------------
// Functions to hide a container
// ----------------------------------
var hideFirst=1;
var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById;
function xDOM(objectId, wS) {
if (stdDOM) return wS ? document.getElementById(objectId).style : document.getElementById(objectId);
if (ieDOM) return wS ? document.all[objectId].style : document.all[objectId];
if (nsDOM) return document.layers[objectId];
}
function hideContainer(objectID,vis) {
if (stdDOM) aDOM = 1;
else {
ieDOM = document.all;
if (ieDOM) aDOM = 1;
else {
var nsDOM = ((navigator.appName.indexOf('Netscape') != -1) && (parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1;
}
}
var objs = xDOM(objectID,1); objs.visibility = vis;
}
// ----------------------------------------------------
// THE LINKS on the home page.
// Details of the links; used instead of separate pages
// functions to manage them.
// ----------------------------------------------------
var linksDescContent=new Array();
var origColour, firstTime=1;
linksDescContent[0]='About Grá
Who are we ? -- a brief history';
linksDescContent[1]=" The Grá House
Information about the House where we live. Its location and functionality.";
linksDescContent[2]=" Links
Some useful links";
linksDescContent[3]=" News
What is going on with us at the moment";
linksDescContent[4]=' Gallery
Pictures or photos from past events held by Grá';
linksDescContent[5]=' Events
Details of events held by Grá
\
Past Events
\
Upcoming Events';
linksDescContent[6]=" Mission Statement
Our mission statement. What are our aims?";
linksDescContent[7]=" Testimonies
Some testimonies from Gra members that have spent time with us";
linksDescContent[8]=" Contact Details
Contact us ...";
linksDescContent[9]=" Click on a link...";
linksDescContent[10]=" How can you Donate?";
linksDescContent[11]=" Grá Personnel";
linksDescContent[12]="";
var ourLinks='LINKS
\
Vatican site \
Official Medugorje site \
Comprehensive Vocations site \
Vocations Ireland \
Dublin Diocese Vocations \
Catholic Online \
Eternal Word Television Network \
Franciscan Friars of the Renewal \
The Voice Newspaper \
The Ignatius Site \
Padre Pio Site';
var linksDescContentDetails=new Array();
linksDescContentDetails[0]='ABOUT GRÁ
\
WHO ARE WE ?
\
We are a family based organization that is helping people \
face and overcome the challenges of life in the aftermath of drug and/or \
alcohol dependency. Our mission is to deliver our services by \
being inclusive and balanced in our approach while reflecting the \
needs of an increasingly diverse population.
\
WHAT DO WE DO ?
\
We provide a family style, educational and pastoral home that houses \
men who have completed a rehabilitation program and help to re-integrate \
them into the community as fuller members.
\
WHY DO WE DO WHAT WE DO ?
\
Our own core catholic ethos and life experiences have shaped our lives \
and highlighted for us our obligation to help.
\
WHERE ARE WE ?
\
Grá House, The Brewery, Rathdrum, Co. Wicklow.
\
WHEN CAN WE HELP ?
\
The time we see where help is most needed is after completion of a rehabilitation programme. \
For the individual, identifying the next step and finding the courage to \
take it will require love and support. This is where Grá will help.
\
HOW CAN WE HELP ?
\
Grá is a registered charity that combines a bottom up approach to development \
with a participative management style that is currently being established through \
a set of subcommittees. Grá owns a suitable property(Grá house) which is operational \
and provides the basic need of a home built on love and prayer to its members. \
From this environment, Grá house will act as a vehicle to help members create, \
develop and actualise a life-plan to respond to their personal needs and desires \
to live a more hope-filled life.
\
HOW CAN YOU HELP ? \
- By donating in part or fully to any of our ongoing projects
\
- By providing your professional services “gratis”, such as mentoring Grá members and staff and/or in running the company
\
- By working with us for; employment opportunities for our members, innovative fundraising for our projects, and networking business \
contacts for Grá.
\
More detailed info on our
Vision, Long Term goal, The Demand for Grá ...
\
A Brief History of GRÁ
\
In 1998, Grá, a family based organisation made up of three members, \
was borne out of a desire to give to those struggling from drug addiction another \
chance of choosing to walk with God. Grá ran a series of special \
projects that involved accompanying these people on a journey in faith \
culminating each year with a pilgrimage deeply rooted in prayer.';
linksDescContentDetails[1]='THE GRÁ HOUSE
Pictures & Information about the Grá House.
\
\
Directions to the House: Google or Map
\
' + welcomeMessage;
linksDescContentDetails[2]="LINKS
Useful Links" + welcomeMessage;
linksDescContentDetails[3]='NEWS
What is going on with us at the moment
\
Directions to the House: Google or Map
\
' + welcomeMessage;
linksDescContentDetails[4]="GALLERY
Pictures or photos from past events held by Grá" + welcomeMessage;
linksDescContentDetails[5]='EVENTS
Details of events held by Grá
\
Past Events   \
Upcoming Events' + welcomeMessage;
linksDescContentDetails[6]='MISSION STATEMENT
Grá is a Catholic family based organisation working \
with men and women who have a history of drug and alcohol dependency. Grá invites each member \
to participate in a process of education, training, mentoring and guidance, underpinned by prayer and a \
witness of God’s love. Grá seeks to enable the full potential of each member and assist in \
their process of re-integration as fuller members of society.
\
More detailed info on our
Vision, Long Term goal, The Demand for Grá ...' + welcomeMessage;
linksDescContentDetails[7]="TESTIMONIES
Some testimonies from Gra members that have spent time with us" + welcomeMessage;
linksDescContentDetails[8]='CONTACT DETAILS
\
Address:          Directions: Google or Map
\
     Grá House
\
     The Brewery, Rathdrum
\
     Co.Wicklow
\
Charitable Status Number: CHY17095
\
Phone: 0404-43614
\
Email: gra@gra-site.com    \
' + welcomeMessage;
linksDescContentDetails[9]='OUR AIMS
\
To design and develop a family style, educational and pastoral home that \
will house members and facilitate training events and other gatherings for our wider network \
of members and volunteers.
\
To promote a firm faith foundation based on core Catholic family values and to train and motivate our \
members to take on leadership roles that will spread the message and practice of Grá.
\
To educate our members and train them with practical and transferable skills necessary for \
progression routes into employment and education.
\
To facilitate with Grá members the creation, development and actualisation of individual life-plans \
that will respond to the needs and desires of each individual to live a more hope-filled life.
\
More detailed info on our
Vision, Long Term goal, The Demand for Grá ...';
linksDescContentDetails[10]='How can you Donate to GRÁ ?
\
By sending a cheque to ...
\
   Grá House
\
   The Brewery, Rathdrum
\
   Co.Wicklow
\
   (Make cheque payable to GRÁ)
\
By filling in our Standing Order Form ...
\
   Standing Order Form
\
By direct lodgement into our Bank Account ...
\
   Bank of Ireland
\
   Rathdrum, Co.Wicklow
\
   Account No. - 45020259
\
   Sort Code - 90-66-54
\
   IBAN Code - IE83 BOFI 9066 5445 0202 59
\
   Bank ID / SWIFT Code - BOFIIE2D';
linksDescContentDetails[11]="The Grá Personnel" + welcomeMessage;
linksDescContentDetails[12]="";
// -------- Function to show the contents of link description array in the container ---
function showLinkDesc(targetID,captionText,captionColour)
{
var undConst = "";
if (firstTime) {
firstTime=0;
origColour=document.getElementById(targetID).style.backgroundColor;
initialWelcomeMsgMidContainer=document.getElementById(targetID).innerHTML;
}
// NOTE: FF9900 is the gold colour similar to picture.
if (captionColour) {
document.getElementById(targetID).style.backgroundColor=captionColour;
} else { // green colour=66cc33 bluish colour=#46546d
document.getElementById(targetID).style.backgroundColor=origColour;
}
if (captionColour=="Red") { undConst="UNDER CONSTRUCTION !" + "
"; }
document.getElementById(targetID).innerHTML="" + undConst + captionText + "
";
}
// -------- Functions to change colour of links button ---
function changeButton(targetID,sourceID)
{
// This does'nt work - sourceID object has no colour ???
// document.getElementById(targetID).style.backgroundColor=document.getElementById(sourceID).style.backgroundColor;
document.getElementById(targetID).style.backgroundColor=defaultMidContainerColour;
document.getElementById(targetID).style.color=BLACK;
}
function changeButtonBack(targetID)
{
document.getElementById(targetID).style.backgroundColor=defaultLinkButtonColour;
document.getElementById(targetID).style.color="#ffffff";
}
// -----------------------------------------
// Show current date and time
// -----------------------------------------
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var day = now.getDate();
var year = now.getYear();
if (year < 2000) year = year + 1900;
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var theday = now.getDay();
if (theday == "0") theday = "Sun";
if (theday == "1") theday = "Mon";
if (theday == "2") theday = "Tues";
if (theday == "3") theday = "Wed";
if (theday == "4") theday = "Thurs";
if (theday == "5") theday = "Fri";
if (theday == "6") theday = "Sat";
var themonth = "";
var month = now.getMonth() + 1;
if (month == "1") themonth = "Jan";
if (month == "2") themonth = "Feb";
if (month == "3") themonth = "Mar";
if (month == "4") themonth = "Apr";
if (month == "5") themonth = "May";
if (month == "6") themonth = "June";
if (month == "7") themonth = "July";
if (month == "8") themonth = "Aug";
if (month == "9") themonth = "Sept";
if (month == "10") themonth = "Oct";
if (month == "11") themonth = "Nov";
if (month == "12") themonth = "Dec";
// var offset = now.getDay();
//alert("offset=" + offset + "; day=" + day);
// if(offset != 0) {
// if ( day < 1) {
// day = day - offset;
// if (month == 1) day = 31 + day;
// if (month == 2) day = 31 + day;
// if (month == 3) {
// if (( year == 00) || ( year == 04)) {day = 29 + day;}
// else {day = 28 + day;}
// }
// if (month == 4) day = 31 + day;
// if (month == 5) day = 30 + day;
// if (month == 6) day = 31 + day;
// if (month == 7) day = 30 + day;
// if (month == 8) day = 31 + day;
// if (month == 9) day = 31 + day;
// if (month == 10) day = 30 + day;
// if (month == 11) day = 31 + day;
// if (month == 12) day = 30 + day;
// if (month == 1) {
// month = 12;
// year = year - 1;
// } else {
// month = month - 1;
// }
// }
// }
//var timeValue = "" + ((hours >12) ? hours -12 :hours);
var timeValue = "" + theday + " " + day + " " + themonth + " " + year + ": " + ((hours >12) ? hours -12 :hours);
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
timeValue += (hours >= 12) ? " P.M." : " A.M.";
document.clock.clockFace.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
// --- start the clock ------
function startclock() {
stopclock();
showtime();
}
// ------- the petitions file ------------
// updating the petitions file, called
// POST method in form object.
// ---------------------------------------
function updatePetitionsFile(head,petition,targetID)
{
var thePetition;
thePetition = document.write('');
thePetition += head;
thePetition += document.write('
');
thePetition += document.write('');
thePetition += petition;
thePetition += document.write('
');
document.getElementById(targetID).innerHTML= thePetition;
}