window.onload = loadData;

var rootURL="http://www.prayersong.net/";

var myPix = new Array(
"website pix/1.jpg","website pix/2.jpg","website pix/3.jpg","website pix/6.jpg","website pix/7.jpg",
"website pix/8.jpg","website pix/9.gif","website pix/10.jpg","website pix/12.jpg","website pix/12.jpg",
"website pix/13.jpg","website pix/14.jpg","website pix/15.jpg","website pix/16.jpg","website pix/17.jpg","website pix/18.jpg",
"website pix/19.jpg","website pix/20.jpg","website pix/21.jpg","website pix/22.jpg","website pix/23.jpg","website pix/24.jpg",
"website pix/25.jpg","website pix/26.jpg","website pix/27.jpg","website pix/28.jpg","website pix/29.jpg","website pix/30.jpg",
"website pix/31.jpg","website pix/32.jpg","website pix/33.jpg","website pix/34.jpg","website pix/35.jpg","website pix/37.jpg",
"website pix/38.jpg","website pix/39.jpg","website pix/40.jpg","website pix/41.jpg","website pix/42.jpg","website pix/43.jpg"
);

var monthNames = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var dayNames = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
      
var thisPic = 0;
var radioWin = null;
var lyricWindow = null;
var songWindow = null;
var reflectWindow = null;
var requestWindow=null;
var IEWindow=null;
var msgWindow=null;
var homeWindow=null;
var thisPrayer=0;
var timerID = null;

var prayerNew = new Array(
"Please direct my path, and speak to me and give the spirit of discernment. I commit all this to Jesus Christ. Amen.",
"Request: to my husband and to my kids..Lord help me to build up my family together til death do as part.",
"Prayers of love and support for the family and friends of Anthony Esposito who died suddenly on Thanksgiving day.",
"Please pray for Pastor Sylvester and Minister Marie Morgan that God will keep them strengthened and keep us with one accord.",
"May Marcia, and the Earls, feel the healing power, presence, and love of God surrounding and uplifting them!",
"Prayers for Robyne as she struggles with pneumonia and lymes disease.",
"I request a song for praises and workship.",
"Gracious God, watch over and heal 5 year old Matthew Rossi as he struggles in ICU with pneumonia brought on by muscular dystrophy.",
"Please pray for my 13 year old granddaughter. She may have been abused by her father who is in prison. She is currently out of control.",
"Please pray for my sons Marc and Martin to stay safe, healthy, happy and successful and that they make the best use of their talents",
"May God, the Source of all wisdom, be present with Gil as he seeks to be a channel and conduit of His love that must become justice.",
"Steve Mamchak is asking for prayer for Sue, who had emergency surgery and is now \"touch and go.\"  Please pray with abandon.",
"Prayers for Darlene as she undergoes surgery for her asthma condition.  She is asking for a miracle, dear Lord.",
"Please Lord, help my children to complete their studies without any hinderance, and help my husband to be a little patient.",
"Please pray for my husband and I as we make plans to put down a beloved pet.",
"Please pray for Tember and her recovery. She was in an automobile accident in Sept. God answers prayers!",
"Pray for The Lord's protection over my family; especially my son and my mother who are being threatened by a man and his thugs.",
"Prayers for Bessy while battling malignant melanoma.  Her family, including 2 small children, needs all of our prayers too.",
"Please pray for my husband and I as we begin a new business.  May God open the doors we will need as we pray for His blessing.",
"Send PrayerSong out to Abhilash.  May he hear its peace and healing in his heart",
"Pray for people to come to our church and that our evangelism team will step out in faith.",
"Please pray for Sundari's family seeking permanent residence in Singapore.  Praise the Lord.",
"Please pray that Branden's struggles will bear fruit in his first opportunity of his business through God's grace and mercy.",
"Pray that the Lord will grant me peace and discernment, as I journey with a new congregation.",
"Pray for the peace of Israel and Palestine.",
"Pray for our church,the pastor and ministries leaders as we work to bring a spirit of reconciliation to the congregation.",
"Please pray for my husband for a job. He needs this not only for our finances but for his self-esteem. Thank you, Lord, for my job.",
"Please pray for the health of several members of my family including a teenager who has taken up smoking.",
"Heavenly father please ,if it is Thy will, provide wisdom and peace for Robert as he reassess the direction of his career path.",
"Please give Dan the heart and guidance that he needs to deal with the situation that life has given him at this moment in time.",
"Pray that the heart of the church may be open to receive all that God has in store.",
"Prayers for Serena and her family as she continues to struggle with her special needs. Carry them always.",
"PRAY FOR PEACE"
);

var prayerArchive = new Array(
"Pray that God will give me the strength, wisdom, discernment and patience to lead a hurting congregation.",
"Please keep in prayer Rev. Wayne Richards, who underwent emergency surgery yesterday for a detached retina.",
"Please pray for Nanni who is undergoing surgery for colon cancer.",
"Please pray for my son, that the Lord continue to heal Him, and to give us peace as we see his healing.",
"Pray for a New Church Started ministry in Hatboro, PA. There is a great need to share Jesus with the Latino community", 
"My prayer; That the Lord help me disciple at least two more people that can share Jesus with others. I need wisdom.",
"Please, Lord, sustain and protect all of the people in Texas as they struggle in the aftermath of Ike.  Give them your peace.",
"Prayers for Renee as she heals from a bone marrow transplant; her faith is inspiring and strong! God keep her in spirit & healing.",
"Please pray for Tim Alexander and his family as they figure out what God will have them do next.",
"Please Lord, protect Hanna who has not been seen for several days, adn comfort her family with your faith, hope, and love.",
"Bless and uphold the family of Betty as they struggle with her passing.  May they feel the power of God's love",
"Gracious Lord, Praise and Thanksgiving for the birth of Cameron John, our precious grandson. May he learn to walk in your ways.",
"Please pray that I might have love, patience and discernment in ministry.",
"Pray that the Lord will show me a way to blend the old tradtions with the changes that are necessary to enlarge the Kingdom of God.",
"Pray for God to restore my love for Him. Restore my passion for the salvation of lost souls. My prayer life is in serious crisis.",
"Prayer of Thanksgiving! Baby Jack and mom are home and doing well! He is definitely a miracle baby. Praise God",
"Please pray for Joyce as she undergoes testing for her heart and blood pressure.  Give her good health, Gracious Lord.",
"Grant your peace, O Lord, in the hearts of the family of Charles Searles as they grieve the death of their loved one.",
"Prayers for a bad family situation involving my husband and his father. May we have peace and harmony until we can move.",
"Please keep Rev. Mona Maglone in prayer as she struggles with health issues related to COPD.  She appreciates your prayers.",
"Please pray for baby Jack , who was born August 7th. He is having trouble eating. Mom and baby need peace and strength.",
"Pray for the Mascall family who have lost their 7 year old niece. May God put his loving hands around the family.",
"Prayers for Brother Reynolds who has cancer, and is trusting God for his healing.",
"Please pray for Rev. Boyle and the Old First UMC in West Long Branch as they form a new ministry together.",
"Prayers for Jaida Reynolds as she lives with the aid of a respirator.  Strengthen her, Blessed Savior, and heal her.",
"Heavenly Father, please be with Wilson Hubbard as he sleeps in a coma.  By your grace, O Lord, give him peace.",
"O Lord, please be with our brother in Christ, Doug Woodfield, and his family as he undergoes emergency spinal surgery.",
"Lord continue to carry and protect Pastor Boyle and I as we start our new life and ministry. Keep us your humble servants.",
"Praise God for answered prayer! My daughter has found a new job with a future in the health care industry.",
"Please pray for baby Anna, born at 25 weeks.  Pray she will survive and thrive, and that God will prevail in her life.",
"Please keep Roseanne in your prayers - she was diagnosed with Stage 3 breast cancer, and is 48 with 2 young children.",
"Dearest Lord be with the family and friends of Gilda, now eternally in your kingdom. Thank you, Gilda, for your friendship.",
"Please keep in prayer Ann Wilson and family on the sudden passing of her 48 year old son, Aubrey, yesterday morning.",
"O Lord, place your peace upon the family of Gilda Nittolo, and thank you for receiving her into your eternal Kingdom",
"Prayers for three-year old Eleacha Oliver Ragoo who was beaten by her mother's boyfriend and is now hanging on to her life.",
"Eleacha Oliver Ragoo was taken off life support and has passed on.  Please continue praying for the family.",
"O Lord, provide strength, and comfort for the daughter of Helen Ring as she provides love and care as a single mother.",
"Pray for Ida & Roland as he prepares for open heart surgery. May God strengthen them both and their faith be increased.",
"Prayers for Donald and his family.  Help him overcome the chemical imbalances of too many meds causing him mental anguish.",
"Let us unite our hearts in prayer for people in the midwest of the US who are suffering the results of floods.",
"Please, Lord, help Jason and Doris overcome the obstacles of the US Immigration Service so that they can be united.",
"Be with the family of Anne Schickel as they grieve together in her passing.",
"Renew the steadfast faith of Gertrude in her time of grief.",
"Lord have mercy on people suffering in Myanmar (cyclone), China (earthquake), and the western United States (tornadoes).",
"Please pray that God will give Minister Morgan peace and a mind to study and pray more.",
"Also pray for Pastor Morgan and his wife for healing and understanding.",
"Prayers for Catherine H. to be delivered from drugs and all her other afflictions.",
"Thank you for Your healing touch on Rachel. Keep her disease from spreading and ease her pain.",
"Thank You God, for Dan!",
"Prayers for Christine at the sudden loss of her husband. May we all learn from her reliance on you for the comfort you provide.",
"Healing for my Mom, Mazie, and strength to deal with her situation.",
"I need your peace, Lord, as I grieve for the loss of my dog, Ed.  He was a wonderful pet, and I miss him.",
"Please sustain and heal Pastor Christine in her battle with cancer, O Lord.  And thank you for her strong faithful witness.",
"Fill the Linden UMC with your light and wisdom, O God, and guide her into a faithful future filled with love.",
"Please pray for the daughter of Rina Terry who will have surgery on Friday, April 25th.",
"O Lord, be with Gertrude B. and her family as her brother Walter returns to the hospital.  Grant them your peace.",
"Healing for Pastor Bob's sciatica nerve, as he approaches a busy Emmaus weekend.",
"Grant me the wisdom and boldness to speak the prophetic word.",
"O Lord, please help Fred to stop drinking.",
"Grant wisdom, peace and strength Lord to my son Robert as he continues on his life journey.",
"I ask for strength, courage and wisdom, as I continue my faith journey.",
"Help me to do what is necessary to serve our Savior to the best of my abilities. May I live my life as Christ intended me to.",
"Please pray for Maggie's son-in-law; that he will soon find a job.",
"Pray for Katie. She fell off a horse and hurt her arm.",
"Be with Gerri, O Lord, as she continues to witness to the strength of faith in her long struggle with cancer.",
"Please pray for Pastor Sylvester Morgan that God will heal and strengthen his body.",
"A prayer of thanksgiving for my daughter's health and job security. She is healing and her employer has been very understanding.",
"Praise God for answered prayer.",
"Protect, comfort, and heal Pastor Wayne's daughter Kathy as the doctors tend to a clot approaching her heart, O Lord.",
"Pray for us to accept God's will during this appointment season.",
"Ken needs prayer for more strength, boldness, and discernment. Please remove clouds from his perception that are hindering him.",
"God is my life",
"Prayers for the 10,000+ that have been killed by the cyclone in Myanmar.",
"O Lord, please keep the faith of Mary Jones strong as she receives help for her congestive heart failure.",
"Merciful God, please be with Pastor Canfield as he recovers from colon surgery.  In your wisdom, Lord, be gracious and loving.",
"Please pray for my daughter, Sarah, who has bi-polar and is going through a time of depression.",
"Prayers of thanksgiving that Jennifer McCarthy is in remission from leukemia.",
"Please pray for God to completely heal Nadine Beynon from Non Hodgkins Lymphoma. Please also pray for a medical cure for this disease.",
"Be with Louise, O Lord, as she adjusts to the new pace maker in her heart.  Give her strength and energy.",
"Gracious and compassionate God, comfort and heal Miriam, and be with her family as they struggle to recover from a fire in their home.",
"I pray this prayer in the name of our Lord and Savior to strengthen my faith and fill my heart with your love for me.",
"Pray that Claudette will make the best decision regarding a move in her life.",
"Let the Lord end all violence in every nation. Let the Lord bring peace and blessings to each person. Let the Lord provide our needs.",
"Prayers for Fritz - that God will guide him to the best possible place to share his talents.",
"Peace and strength be with Mary and her family as they grieve the loss of their husband, father, and grandfather 'Dee'.",
"Please pray for my granddaughter who will have a biopsy done for cancer. She also needs care for her three boys.  Fill her with faith, O Lord.", 
"Strengthen Charles and Betty, O Lord, as they continue to have problems with their health.",
"Blessed Lord, please strengthen and comfort Steve as he recovers from hip replacement.  Give him good humor and perserverance in his recovery",
"Prayers for Jessica and her family, that they may remain strong in their faith while undergoing times of trial.",
"We are praying once again for our brother, Mycroft, as he struggles mightily with poor health.",
"Prayers for the family and friends of Dwight Stone during their time of grief following his entrance into the Kingdom of God.",
"Pray for healing and peace as Gary battles with cancer. Pray he receives the Lord.",
"We praise you, Lord, for answering our prayers so that Mickey and Gertrude can move into a new home.  Your name is Wonderful on the earth!",
"Prayers for my granddaughter Cassady.  Help her find peace in forgiveness of disappointments and broken promises.",
"Praise God for answered prayers! The Prayer Circle at Sparrow Bush UMC was a time of serenity. Hearts were touched by the presence of God!",
"Prayers for my daughter, Diana, for healing. She is a single mother with limited finances and fearful of losing her job because of illness.",
"Lord God, provide shelter and love for people who lost their homes in a fire in Linden, New Jersey.",
"Bless the new marriage of Rose and Frederick with unconditional love, abundant joy, and blessed peace. In the name of Jesus.  Amen.",
"Be with Jane, O Lord, as she recovers from gall bladder surgery.  Pray that God's healing presence will be with her.",
"Pray for God's love to be with the victims, families, and friends of the shooting in Illinois.",
"Thanks and Praise. Amen",
"Prayers for my daughter, Diana, a mother of two who is facing legal issues that might separate her from her children one of whom is autistic.",
"Praise God for his faithfulness in answering prayers for my husband and daughter. They have both received answers.",
"Pray that Jon and Joyce Fourre will be sustained by God's love and the caring of friends during their difficult times.",
"Pray for our first PrayerSong Service tonight at Sparrow Bush UMC. May hearts be open to the indwelling presence of God in that place.",
"May our churches find God's way in reaching those in our community with compassion, love, and courage to fulfill the Great Commission.",
"Healing prayers for Dr. Daniel hospitalized in Florida.  May God grant her his everlasting grace, blessings and speedy recovery.",
"I pray that God keeps me focused on Him and my marriage with which His Grace and Blessing will help us to build a strong and loving family.",
"Lord, please be with the family and friends of Phyllis Reid in their time of mourning.",
"May the healing power of God be upon Eddie-Mae, and the spirit of unity sustain Burgess in their shared suffering and love.",
"Loving Father, please continue to ease the pain of Llamila Vazquez. Give her Your new life and heal her terminal cancer. In the name of Jesus.",
"Prayers of healing and peace for Ernie.",
"Prayers for strength, endurance and patience for my husband who recently had a stroke. Please relieve hopelessness and physical disabilities.",
"Prayer needs for balance in our lives, wisdom for making right decisions regarding education and medical care, and for our lost daughter.",
"Precious Lord, please be with Gertrude in her grief at the loss of her sister Lois.  Be present for peace, comfort, and a new home.",
"Prayers for more spiritual insight in my life, as I try to follow the Lord the best I can.",
"Please Lord, help Jason and Doris overcome the immigration obstacles that are keeping her in Ghana so they can celebrate their marriage together.",
"Fill the members of the Christian Peacemaker Team in Iraq with your love and peace, O God, that they may reflect your light.",
"May all churches return to their apostolic call to reach the unchurched. Let us exist for lost and marginalized people in action and word.",
"Prayers of comfort for Pam and Phil Charles, parents of Dr. Daniel.  In the name of our Savior Jesus Christ.",
"I pray for my own strength and wisdom to be a true servant of Christ following the Walk to Emmaus in which I received the love of God.",
"May love and happiness fill the hearts of Amanda Joan and Nick in their newly consecrated vows of marriage.",
"May all pastors remember the day of their calling to serve God as a source of inspiration and gratitude.",
"Send your peace and comfort upon Marjorie while mourning the loss of her mother.  Strengthen her faith as she remembers your light and promise.",
"Prayers for Jennifer McCarthy as she goes through chemotherapy for Leukemia.",
"I lift up Ethel Bethea as she approaches her 98th birthday this month.  Bless her, Almighty God, with your grace.",
"Thanks and praise to God for the birth of Emma!!",
"God of grace and mercy, be present with Mary & Dee as they journey together in the later years of their life.",
"O Lord, you have heard all of the prayers of Mr. Li. Please be with him in his faith journey, and guide him in your love.",
"Heal the knees of Beatrice, O Lord, as she continues to walk as a faithful disciple in your light.",
"Dear Lord, please let Ryan be free of guilt and have peace within himself.",
"I lift up the Emmaus weekends and pray that they will be a Spirit filled time of connection with Christ for everyone involved.",
"Prayers for all of the displaced people in southern California.  Please, Lord, send a calm moist wind to control the fires.",
"Pray for Pastor Barry as he under goes surgery. Grant the doctors and nurses discernment and wisdom. May our great Healer God watch over him.",
"Prayers for healing of Pastor Bob's shoulder.",
"Prayers for Pastor Dave as he undergoes surgery on his adrenal gland.  Give him full health, O God.",
"Prayers for Serena and her family as she continues to struggle with her special needs.",
"Please, dear Lord, give comfort and strength to Mycroft as he struggles so courageously with the effects of sickle cell anemia.",
"Strengthen faith in each of your houses of worship, O God.  Send your Holy Spirit into every heart.", 
"Holy God, place a healing hand on Gertrude Kiely.  Let her regain her strength to sing your praise again.",
"Prayers for Henry K who is scheduled for knee replacement and has a history of kidney cancer.",
"Lord, in your mercy, guide a grieving family to give the gift of life so that others may live.",
"Continue to give Allen strength and hope, O God. Relieve him of headaches and tingling from the tumor in his head.",
"Gracious God, please bring comfort to a family who lost a loved one, and yet gave the gift of life.",
"Bless Linda Cunard and family at the loss of their husband and father.",
"Please pray for my 17 year old grandson, Zachary, who will be having open heart surgery.",
"Lord be with Mark today as he under goes prostrate surgery. Guide the doctors and nurses. Strengthen his wife and let the healing begin.",
"We praise you, Lord, for answering our prayers for Zachary in the way we hoped.  Strengthen his young heart, O God.",
"In your mercy, Lord, be with Louie following his kidney transplant. Heal the infection and uncontrolled bleeding. Also comfort his wife Judy.",
"Pray for Ed and Dorothy Ahrens.",
"Surround Ruby with your grace and mercy, O Lord, as she undergoes another surgery.",
"May God heal and comfort Marlene Balbach as she battles Multiple Sclerosis, and provide abundance for her son in his financial troubles.",
"Pray for Doris, tests have discovered cancer cells in her body.",
"Please pray for Stephen, the 5-year-old son of a friend, who has just been diagnosed with multiple brain tumors.",
"Send your Holy Spirit of unity, peace, and reconciliation into the United Methodist Churches having Charge Conferences.  Let only love be spoken.",
"Please pour out a special blessing upon Chad and Jess as they begin their life together in marriage.",
"Please pray for Jake Clark who is in acute liver failure and awaiting a second liver transplant.",
"Please pray for good health and good wealth for Mahesh and his family.",
"Prayers for Lisa Marie that she might find her way back home.",
"Lord, pour out special blessings upon Gertrude Lamont as she celebrates her 104th birthday. Thank you for her happy soul among us.",
"O God, please be with Viola as she heals from back surgery.  Strengthen and protect her, Lord.",
"May God bless the people in Linden, NJ with peace as they are having to read about a very sad event from their community 40 years ago.",
"Strengthen Joan Rauch, O God, as she recovers from kidney surgery.",
"In your mercy, O God, grant your peace and healing to Frank who recently had a brain tumor surgery.  May there be no complications or diabetes.",
"Praise GOD in all things. Thank you Lord for the gift of a kidney today for Louie.",
"Bless Anne Cuff, Lord Jesus, with love, insight, patience, and more love.",
"Please, O Lord, be with David as he struggles in his illness.  If it is your will, merciful God,let him live.", 
"Prayers for the health of Hilary Stannard.","Bless the engagement of Trevor and Caryn with love.",
"For my son Alain who needs more surgery.  May he have a quick recovery and healing.",
"Prayers for Jackie while she is in the hospital, and for her friend Linda surrounding her in prayer.",
"Please pray for Daniel, recovering from hip surgery and a mild heart attack this week. Pray for his family as well.",
"Bless and strengthen all your disciples who are involved in healing ministries.",
"Bless Anthony Peralta Avolos as he begins his life as a baptized Christian.",
"Prayers for Dorothy Churchman, who has been diagnosed with bone cancer - and for Stacey who loves her mother in prayer.",
"Prayers for the family of Jamie Camarata, a young woman who has entered her eternal rest.",
"Protect and strengthen all the patients and families who are struggling with illness.",
"Praise God for answering prayer, for knowing us better than we do, and for guiding our footsteps to the path that should be taken.",
"We pray for peace in the Philippines, especially in Mindanao.  Put an end to the unjust war, O God.",
"Prayers for the people in Zimbabwe, and in all places where people suffer in the violence of a brutal regime.",
"Mary Ann Ernst for healing, and calm for her family.",
"Prayers for Margaret's mom  as she struggles with health concerns and quality of life issues.",
"Help us, O God, to make wise choices especially on the Sabbath day.  Keep our hearts focused on praising your holy name.",
"Please pray for a break through in Sonia's life. She needs a job to help with her finances.",
"May Cynthia Legette also be blessed with good health, O Lord.",
"Prayers for Jon and Joyce Fourre - for healing and the peace of God to surround them.",
"Bless newly weds Anja and Brook with eternal love and a prosperous life together.",
"Please God, enter the heart of the landlord threatening to evict Betty's family because of a young son in a senior community.",
"Healing of Kate's female health problems.",
"Prayers for Sarah, the daughter of 'Prayer Warrior', as she struggles in her pregnancy.  Protect mother and child, O God.",
"Pray for Joyce who has cervical cancer, and Khama suffering from kidney failure.",
"May the health and financial problems of Liz and Dave King be blessed with healing and resolution.",
"Let there be healing in Coleman Cooper's body, O Lord.",
"Peace for my daughter, and for our soldiers.",
"Prayers for Rev. George Fischer.",
"Special prayers for the family of Deena who passed away.  Especially for her seven year old daughter, Gabby.",
"Healing for Tara Tchalabi.",
"Place a healing hand upon Marilus Rodriguez, O Lord.",
"Please, Lord, bless the marriage of Rose and Frederick. May their wedding day and life together be a reflection of your unconditional love.",
"Be present for healing in Mary Cully, blessed Savior.",
"Healing prayers are needed for Bart Sapp and John Nicholson.",
"Love and blessing to Peggy Arbuckler as she fights cancer.",
"Prayers for Ruth and Henry Smith.",
"Holy God, set Bobbi free from alcohol and mental issues, in your mercy.",
"Prayers for my son and church, O God.",
"Strengthen and heal 17 year old Timothy Frantz who has a recurrance of cancer after 2 1/2 of health.  In the name of Jesus!",
"Prayers for Judy at AUMC.",
"Lord, in your mercy, please bring healing to Louie as he struggles with dialysis.",
"Give peace to Beverly, O God, and help her to see the blessings of life amid her panic attacks.",
"God, please strengthen the body of Ted Carson, and place a healing hand on Valorie Truesdell.",
"Please pray for Mary Thompson who has heart problems.",
"Please God, guide Tsehai Sophia Harewood in a path of light to great career options.",
"Help our churches to see Christ move in our life together, and in each heart.",
"Healing for Lois in Point Pleaseant Beach.",
"Lord, please renew Aleandre's mind, and set him free from drugs.",
"We pray for healing and health for Dan.",
"Give Dorothy strength in her legs for walking, O Lord.",
"O God, please provide a mission house for John and Kathryn as they seek to serve you in the inner city.",
"Prayers for Kyle in Iraq.",
"May God guide April D'Ambrosio.",
"O Lord, please help Kate complete her nursing program, pass the board exams, and find the place where you need her to be.",
"Pray for Helen Johnson and her son, Christopher, that they may continue to serve God.",
"Healing prayers for Cynthia Bagwell.",
"Prayers for an appointment for Lucy Martinez.",
"Be with Mary Greenberg, O Lord, as she undergoes chemotherapy.",
"Prayers of grace for unsaved family members.",
"Compassion and peace for Pastor Cynthia and the church she serves.  Grow Christ's love in each heart, O God.",
"Prayers for Pete as he seeks workman's compensation for a job related injury.",
"Lord, please bless Bill Hine Jr.",
"In your grace and mercy, O God, protect Edith Crammer as she undergoes cardia cathaterization.",
"Prayers for better health for our Local Pastor.",
"Please help Shawn Cooper complete her school work and ministries; and to be present for her family and church.",
"O Lord, please help all who seek employment to find a way to have the work of their hands be for your glory.",
"Prayers for Ravil Eduardo and Keila Terrero.",
"Protect and strengthen Doreetha Ferguson who struggles with cancer.",
"Be with Judy Tarin as she recovers from breast cancer, Gracious God.",
"Paulo is seeking a miracle in many aspects of his life, O God.  Release him from pain in his body and relationships.  Keep him safe from his enemies.",
"Precious Jesus, please touch Joseph with wisdom and light and help him to put away drugs forever.",
"Prayers for Stella as the doctors seek to remove a tumor in her small intestines.",
"We give thanks for the care Lucille McAdams is receiving during her recovery as her caregiver gathers with others in prayer.",
"Grant your wisdom, O God, to R. Matthews as he struggles with the possibility of deportation.",
"Give Virgil a new mind in Christ, new friends, and a desire to be an example of Jesus to others.",
"In your mercy, O Lord, give Kim a change of heart and a pleasant attitude.",
"Thank you, blessed Lord, for receiving Dee Chase into your Kingdom.  We will miss your dedicated servant in your church.",
"Lord God, help us remember the true cost of war, the loss of human life, as we pray for peace.",
"Dear Lord, please give us the power of resurrection.  Roll away the heavy stones that enslave your love in our heart.  Set us free, O God.",
"Lift the Spirit of Hope in Ruby, O God, as she continues her fight with cancer.  Give her life beyond the year the doctor has stated.",
"Please surround Mary Barnes with loving arms of comfort as she suffers with shingles.  Keep her positive spirit strong.",
"Prayers of comfort for all of the families touched by the senseless violence at Virginia Tech.  Lord God, hold them close.",
"Please be with Mildred as she celebrates her 80th year of life, and recovers from knee surgery.  Bless her, Lord, with your love.",
"Dear Lord, grant wisdom, serenity and compassion for Aaron and his family as they struggle with child custody issues in the courts.",
"Prayers of peace and comfort for the family of Irene Costello, who has entered eternal rest.  Thanks be to God.",
"Prayer for my son - that he may learn from his experience with cancer and follow his heart call to service to other cancer patients.",
"Precious Lord, thank you for the healing and comfort you have given to Lois Burns and her family.",
"Continuing prayer for Phyllis Reid.  Give her strength and hope, O God.  In the name of Jesus.",
"Please pray for Patricia Jerue and her family as she recovers from a stroke.",
"Please heal and strengthen little Kurtus' heart, O God.  Give his mother serenity as they wait for the doctors to diagnose his illness.",
"Comfort our sister Chris while she grieves the loss of her mother.",
"Thank you Jesus for being with Mildred during her recovery from her knee operation.  We rejoice as she regains her strength every day.",
"Bless Alexa and all recent graduates from high school and college.  Help them be wise and safe in the journeys that lie ahead.",
"One of your children, O God, seeks wisdom, and prays that a choice that was recently made will not lead to death.",
"Lord God, be with the family of Kathy as they seek peace, comfort and understanding following her suicide.",
"Lift up and sustain hope within Mahamed as he attains the certification necessary to immigrate into America from Ethiopia and Qatar.",
"Thank you, Jesus, for walking each day with all who seek to know the way of peace, true inner peace, in the world.",
"Prayers for Suzanne and Jamilla, and others who grieve the anniversary of the death of their loved one.",
"Please guide Jamie and her family as she continues her battle with cancer.  May they find their way to your light, Lord, amid the dark valley.",
"We give you thanks and praise, O God, for the servant heart of Tina, and all young people who reach out to others through UP WITH PEOPLE.",
"Comfort for the family of Rev. Robert Paine, who has entered eternal rest.  We thank you, Lord, for sharing your servant with us.",
"May God carry the family of JoBeth, shot to death by her husband.  Our tears and prayers are especially with her 7 month old daughter.",
"Lord, in your mercy, help us to grow the indwelling Christ to be the light of the world.",
"For Amanda - may you remain strong in your resolve to start a new chapter in your life, with just you and your daughter.",
"Strengthen my father, Roy Boyle, as he recovers his strength.  Give him hope, dear Lord, in the name of Jesus.",
"Lord Jesus strengthen Patricia's heart so that she will not need surgery.",
"Heavenly Father, comfort your loving servant Mary as she prepares her eternal journey, and hold her family in your love as they journey with her.",
"Prayers for Algerie as she endures the heartache of being separated from her grandson, Anthony.  Protect them, Lord, and reunite them soon.",
"Help us, O God, to restore the Sabbath day as a holy observance of grateful praise throughout our country - your gift to us.",
"Encourage and uphold young people who have chosen to be confirmed in the church as they claim the name of Christian.",
"Timothy, may you feel grace and love being sent out to you. May you hold them, and feel them cushion you.  Stay strong, your troubles will pass.",
"Thank you, precious Lord, for receiving Bob Leary into your Kingdom.  Please provide comfort to his family in their time of grief.",
"Prayers for Becky Puskas, a lifelong disciple of our Lord Jesus Christ.",
"Help us to keep the sacrament of marriage a holy dedication of one heart to another, in which you pour your blessing.",
"I thank you, Lord, for the gift of my senses.  May I use them all for your glory.",
"Precious Jesus, thank you for receiving Blanche into your Kingdom. Surround her with your love.",
"Prayers of comfort and peace for Ginny as she bears loneliness and the passing of dear friends.",
"Prayers for baby Ray as he is a joy for so many.",
"Merciful and healing God, be with Ruby.  In your abundant love, strengthen her body and help her feel the presence of your Holy Spirit.",
"God of all humanity, teach us to encourage and love one another as we journey through life.",
"O God, lift Steve and Sharon Lutz in grace, strength, and mercy as they struggle with illness and unanswered questions.",
"Precious Lord, help us to make you the number one priority in our life.",
"Loving and sustaining Lord, be with John Totin to center him in peace as he fights a spiritual warfare for his friend.",
"Please pray for Jane Smith and her family.",
"Please pray for Viola DeLuca.  She is suffering from unrelenting pain.  Comfort her, O God, with your healing hand.",
"Gracious God, please put peace in Carrie's heart as she suffers the pangs of injustice in the workplace.",
"Please Lord,be present with Claudia and her husband.  Help them make right decisions about health and wealth with your blessing.",
"Heavenly Father, send your gift of courage and discernment to community leaders.  Grant them the wisdom to guide others in your light.",
"For those working with the sick and dying; that they continue to be instruments of peace, love and joy.",
"Strength and healing for Cathy. Keep her positive attitude strong to fight her illness.",
"Praise God for helping Serena to walk. Praise the steadfast love of God.",
"Prayers for grace and mercy to be with the family of Ryan Allison, who died at the age of thirty very recently.",
"Mighty God, lift Ronald and give him strength to live with his ailments.  Fill him with hope, O Lord.",
"O Lord, thank you for your healing hand upon Rev. George Frederick, that he may continue to serve your holy name.",
"Prayers of encouragement and support for Phyllis Reid",
"Prayers for my 96 year old friend, Ethel Bethea.  May God give her strength to continue sharing the boldness of her faith.",
"Grant us the inner peace to feel at home in the thin places where we meet God face-to-face.",
"Heal broken hearts, O God, and guide your people through times of grief",
"Peace and comfort for the family of Ludavic Supreme, a true disciple who has entered into the Kingdom of God.",
"Help us to feel the presence of God in the midst of suffering",
"Father God, continue to use Chaplain Kelvin Ward in the Hospital.",
"Please pray for Margie and her family.",
"In your mercy, O Lord, relieve Cheryl of her pain.  Comfort her with your compassionate love.",
"Continuing prayers for Julie's family, and for all families still recovering in New Orleans.",
"Healing for Louise Yurinko",
"Heavenly Father, bless Serena Joy as she struggles to speak. Protect, strengthen, and grant wisdom to her parents as they care for her.",
"Gracious God, shelter the homeless",
"Prayers for the end of racism that has shown its ugly head again in Jena, Luisiana.  Help us end fear and hatred, O God",
"For families having to make difficult end of life decisions for their loved ones, grant them wisdom, peace, and compassion, O Lord.",
"Send your Spirit into your churches, O God",
"Lord Jesus, please protect and comfort Mycroft as he struggles with sickle cell anemia.",
"Feed Darfur, O Lord",
"For Beatrice as she prays earnestly for her son, and for all of her children.",
"Uphold Pastor Esther, O God, as she struggles with human authorities of the church.  Help her remember your call upon her life.",
"Precious Jesus, shine your light into our hearts",
"Pray for peace in Iraq",
"Heavenly Father, please bless this online prayer ministry with your grace",
"Prayers for a quick recovery for Bob Carhart, who had an operation on his knees.",
"Dear God, make us like little children",
"For Joey - to be released from the prison of addiction",
"Blessed Jesus, help the leaders of your church proclaim the truth of the Gospel boldly",
"Thank you, Lord, for guiding Lisa to a job she can enjoy, and in which she can share the gift of Christian friendliness",
"Pray for children in abusive situations",
"Dear God, help us to be careful and loving in all we say to and about others. Amen.",
"Healing for Ray",
"Bless couples who have been blessed with love, and who are seeking the blessing of God in marriage.",
"Prayers for the family of Fred Gmitter",
"Dear Lord heal us in a world that sometimes feels like there is a spiritual famine",
"Prayers for Alex Cahills - whose life is turning fast",
"For my son-in-law who is seeking direction from God for his career",
"Pray for Diane, who has a brain tumor",
"Prayers of strength and support for Bruce and Curt during their move to a new home",
"Lord Jesus, have mercy on us",
"Protect Bill Hargrove, champion of musicians, and heal his body",
"Heavenly Father, please strengthen the voice of Veronica so that she can praise your name with her song.",
"For Tim, that he finishes his time in the army with a healthy mind, body, and soul.",
"May the hand of the Lord touch people immigrating to this country, and the Holy Spirit fill them with peace, and joy",
"Please pray for Gary who has lymphoma.",
"Gracious God, enable the patients at Ancora Psychiatric Hospital to feel your loving comfort.",
"For Thomas - that all obstacles, sufferings, and difficult situations leave his life, and he be filled with happiness, peace, wealth, and success",
"Let Freddie Lee Howard receive a complete healing, O God, in your grace and mercy.",
"Heavenly father strengthen Robert and provide him with wisdom and peace as he adjusts to a new living situation.",
"Bring peace into our world through the lovingkindness of each of our hearts."
);

function loadData() {
	getPageTitle();
	choosePic();
	loadPrayers(prayerNew, "newp");
}

function getPageTitle() {
	document.getElementById("getPageName").innerHTML = document.title;
}

function writeContent(message) {
	var thisMSG=message;
	
	var contentWin=document.getElementByID("content").contentWindow.document;
	contentWin.body.innerHTML=thisMSG;
	return false;
}

function customDateString(oneDate) {
    var theDay = dayNames[oneDate.getDay()];
    var theMonth = monthNames[oneDate.getMonth()];
    var theYear = oneDate.getFullYear();
    return theDay + ", " + theMonth + " " + oneDate.getDate() + 
       ", " + theYear;
}

function dayPart(oneDate) {
   var theHour = oneDate.getHours();
   if (theHour < 6 )
      return "tonight";
   if (theHour < 12)
      return "this morning";
   if (theHour < 18)
      return "this afternoon";
   return "this evening";
}

function choosePic() {
	thisPic = Math.floor((Math.random() * myPix.length));
	document.getElementById("myPicture").src = myPix[thisPic];
	
	rotatePictures();
}

function rotatePictures() {
	thisPic++;
	if(thisPic==myPix.length) {
		thisPic = 0;
	}
	document.getElementById("myPicture").src = myPix[thisPic];
	
	setTimeout("rotatePictures()", 10*1000);
}

function loadPrayers(thisList, listType) {
	prayerList=thisList;
	thisType=listType;
	clearTimeout(timerID);
	thisPrayer= Math.floor((Math.random() * prayerList.length));
	if(thisType=="newp") {
		document.getElementById("newp").innerHTML="You are reading New Prayers";
		document.getElementById("oldp").innerHTML=" ";
	}
	else {
		document.getElementById("oldp").innerHTML="You are reading Prayer Archive";
		document.getElementById("newp").innerHTML=" ";
	}
	rotatePrayers();
}

function rotatePrayers() {
	thisPrayer++;
	if(thisPrayer==prayerList.length) {
		thisPrayer = 0;
	}
	document.getElementById("prayers").innerHTML=prayerList[thisPrayer];

	timerID=setTimeout("rotatePrayers()", 12*1000);
}

function nextPrayer() {
	thisPrayer++;
	if(thisPrayer==prayerList.length) {
		thisPrayer = 0;
	}
	document.getElementById("prayers").innerHTML=prayerList[thisPrayer];
	clearTimeout(timerID);
	timerID=setTimeout("rotatePrayers()", 12*1000);
}

function prevPrayer() {
	thisPrayer--;
	if(thisPrayer<0) {
		thisPrayer = prayerList.length-1;
	}
	document.getElementById("prayers").innerHTML=prayerList[thisPrayer];
	clearTimeout(timerID);
	timerID=setTimeout("rotatePrayers()", 12*1000);
}

function closeWin(thisWindow){
	if (thisWindow!= null){
		if(!thisWindow.closed)
			thisWindow.close();
	}
}

function goHome(url) {
	closeWin(homeWindow);
	var settings="";
	settings="toolbar=yes,location=yes,directories=yes,"+
	"status=yes,menubar=yes,scrollbars=yes,"+
	"resizable=yes";
	
	homeWindow = window.open(url, 'homeWin', settings);
}

function prayersongRadio(url,width,height) {
	closeWin(radioWin);
	var settings="";
	settings="toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=no,"+
	"resizable=yes,left=50,top=100,width="+width+",height="+height;
	
	radioWin = window.open(url, 'radioWin', settings);
}

function openLyrics(url, width, height){
	
	closeWin(lyricWindow);
	
	var settings="";
	settings="toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=no,"+
	"resizable=yes,left=50,top=100,width="+width+",height="+height;
	
	lyricWindow = window.open(url, 'lyricWin', settings);
	lyricWindow.focus();
	
}

function openReflections(url, width, height){
	closeWin(reflectWindow);
	
	var settings="";
	settings="toolbar=no,location=yes,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=yes,left=50,top=100,width="+width+",height="+height;
	
	reflectWindow=window.open(url, 'reflectWin', settings);
	reflectWindow.focus();
}

function openPrayerRequest(url, width, height){
	
	closeWin(requestWindow);
	var settings="";
	
	var settings="";
	settings="toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=yes,left=377,top=150,width="+width+",height="+height;
	
	requestWindow= window.open(url, 'reflectWin', settings);
	requestWindow.focus();
	
}

function openMsgWindow(url, width, height){
	
	closeWin(msgWindow);
	var settings="";
	
	var settings="";
	settings="toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=yes,left=377,top=150,width="+width+",height="+height;
	
	msgWindow= window.open(url, 'msgWin', settings);
	msgWindow.focus();
	
}

function openForumWindow(url, width, height){
	
	closeWin(msgWindow);
	var settings="";
	
	var settings="";
	settings="toolbar=yes,location=yes,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=yes,left=250,top=150,width=900,height=700";
	
	msgWindow= window.open(url, 'msgWin', settings);
	msgWindow.focus();
	
}

function alertWindow(message) {
	alert(+message);
}

function checkForIE(url, width, height){
	var settings="";
	
	var settings="toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=no,left=400,top=150,width="+width+",height="+height;
	
	var msie = msieversion();
	if(msie> 0) {
		alert("Please use 'Email Prayer Request' - Internet Explorer does not support 'Prayer Request Form' - IE version #" +msie);
		
		closeWin(IEWindow);
		openIEWindow("http://www.prayersong.net/emailPrayer.htm",250,350);
		return true;
	}
	return false;
}

function openIEWindow(url,width,height) {
	closeWin(IEWindow);
	
	var settings="";
	settings="toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=yes,left=500,top=300,width="+width+",height="+height;
	
	IEWindow= window.open(url, 'IEWindow', settings);
	IEWindow.focus();
}

function msieversion() {
      var ua = window.navigator.userAgent
      var msie = ua.indexOf ( "MSIE " )

      if ( msie > 0 )      // If Internet Explorer, return version number
         return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
      else                 // If another browser, return 0
         return 0
}

function openSong(url, width, height){
	
	closeWin(songWindow);
	
	var settings="";
	settings="toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=yes,left=50,top=100,width="+width+",height="+height;
	
	songWindow= window.open(url, 'songWin', settings);
	songWindow.focus();
	
}

//Contents for menu 1
var forum=new Array()
	forum[0]='<a href="http://www.prayersong.net/Forum/forumIndex.php?personalPage=display">Your Profile</a>'
	forum[1]='<a href="http://www.prayersong.net/Forum/forumIndex.php?message=center">Message Center</a>'	
	forum[2]='<a href="http://www.prayersong.net/forumMembers.php">Forum Members</a>'	
	forum[3]='<a href="http://www.clergyforum.net">Clergy Forum</a>'
	forum[4]='<a href="http://www.prayersong.net/Bible/forumIndex.php?forum=open">Bible Forum</a>'
	
var resources=new Array()
	resources[0]='<a href="http://www.prayersong.net/resources.php">Overview</a>'	
	resources[1]='<a href="http://www.prayersong.net/albums.php">Albums</a>'
	resources[2]='<a href="http://www.prayersong.net/waterVideos.php">Videos</a>'
	resources[3]='<a href="http://www.prayersong.net/song books.php">Songbooks</a>'	
	resources[4]='<a href="http://www.prayersong.net/orchestrations.php">Orchestrations</a>'
	resources[5]='<a href="http://www.prayersong.net/workshops.php">Workshops</a>'

var listen=new Array()
	listen[0]='<a href="http://www.prayersong.net/songmovies.php">Song Movies</a>'
	listen[1]='<a href="http://www.prayersong.net/waterVideos.php">Videos</a>'
	listen[2]='<a href="http://www.prayersong.net/calltoprayer.php">Call to Prayer</a>'
	listen[3]='<a href="http://www.prayersong.net/onthemount.php">On the Mount</a>'
	listen[4]='<a href="http://www.prayersong.net/singingiam.php">Singing I AM</a>'
	listen[5]='<a href="http://www.prayersong.net/throughthecross.php">Through the Cross</a>'
	listen[6]='<a href="http://www.prayersong.net/weston.php">Flute Meditations</a>'
	
var prayer=new Array()
	prayer[0]='<a href="http://www.prayersong.net/prayercenter.php">Prayer Center</a>'
	prayer[1]='<a href="http://www.prayersong.net/prayersongScriptures.php">Prayer Scriptures</a>'
	prayer[2]='<a href="http://www.prayersong.net/prayForPeace.php">Pray For Peace</a>'
	prayer[3]='<a href="http://www.prayersong.net/liturgies.php">Liturgies</a>'
	prayer[4]='<a href="http://www.prayersong.net/sundaybulletin.php">Worship Bulletin</a>'
	prayer[5]='<a href="http://www.prayersong.net/prayercircle.php">Prayer Circle</a>'
	prayer[6]='<a href="http://www.prayersong.net/special message.php">Special Message</a>'
	prayer[7]='<a href="http://www.prayersong.net/tedMemorial.php">In Memory of Ted</a>'
	prayer[8]='<a href="http://www.prayersong.net/TonyMemorial.php">In Memory of Tony</a>'


var prayCenter=new Array()
	prayCenter[0]='<a href="http://www.prayersong.net/prayercenter.php">Prayer Center</a>'
	prayCenter[1]='<a href="http://www.prayersong.net/prayForPeace.php">Pray For Peace</a>'
	prayCenter[2]='<a href="http://www.prayersong.net/special message.php">Special Message</a>'
	
var action=new Array()
	action[0]='<a href="http://www.prayersong.net/links.php">Faith In Action</a>'
	action[1]='<a href="http://www.prayersong.net/nodcc.php">Help A Child</a>'	
	action[2]='<a href="http://www.prayersong.net/freegifts.php">Free Gifts</a>'
	action[3]='<a href="http://www.prayersong.net/churches.php">Find A Church</a>'
	action[4]='<a href="http://www.oldfirstumc.org">Old First-New Life UMC</a>'
	
var about=new Array()
	about[0]='<a href="http://www.prayersong.net/prayersong.php">About PrayerSong</a>'
	about[1]='<a href="http://www.prayersong.net/about.php">About Frederick</a>'
	about[2]='<a href="http://www.prayersong.net/classicalworks.php">Classical Music</a>'
	about[3]='<a href="http://www.prayersong.net">Home</a>'
	
var store=new Array()
	store[0]='<a href="http://www.prayersong.net/resources.php">Overview</a>'	
	store[1]='<a href="http://www.prayersong.net/albums.php">PrayerSong</a>'
	store[2]='<a href="http://www.prayersong.net/weston.php">Flute Meditations</a>'
	store[3]='<a href="http://www.prayersong.net/waterVideos.php">Videos</a>'
	store[4]='<a href="http://www.prayersong.net/song books.php">Songbooks</a>'	
	store[5]='<a href="http://www.prayersong.net/orchestrations.php">Orchestrations</a>'
	store[6]='<a href="http://www.prayersong.net/workshops.php">Workshops</a>'

var music=new Array()
	music[0]='<a href="http://www.prayersong.net/musicCenter.php">Music Center</a>'	
	music[1]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/pastorfkb/pastorfkbMusic.php">PrayerSong</a>'
	music[2]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/ptyson/ptyson.php">Pat Tyson</a>'
	music[3]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/sisterkandi/kandi.php">Kandi Kernan</a>'	
	music[4]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/poostosh/poostosh.php">Poostosh</a>'
	music[5]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/cphristophersly/christophersly.php">Christopher Sly</a>'
	music[6]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/beyondourgalaxy/beyond.php">Beyond Our Galaxy</a>'
	music[7]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/livingwater2005/livingwater.php">Living Water</a>'
	music[8]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/crown-of-roses/crown.php">Crown of Roses</a>'
	music[9]='<a href="http://www.prayersong.net/musicCenterLogin/mediaFiles/electro-acoustic/e-acoustic.php">Electro-acoustic Music</a>'
	
var menuwidth='160px' //default menu width
var menubgcolor='CCCCFF'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
