function countdown() /*displays the number of days to the auction or if the auction is today or the number of days since the auction, whichever is the case.*/
{
	var datestring = new Date(); /*getting the current date off the user's computer*/
	var date = datestring.getDate(); /*stores the value of the current date off the user's computer.*/
	var month = datestring.getMonth(); /*stores the value of the current month off the user's computer.*/
	var year = datestring.getYear(); /*stores the value of the current year off the user's computer.*/
	if (navigator.appName!=("Microsoft Internet Explorer")) /*modifies the value of the current year off the user's computer from a 2 digit value to a 4 digit calue if a browser other than IE is used such as firefox.*/
	{
		year=(year+1900);
	}
	var yearday = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	var cday = (yearday[month]);/*calculates the number of days in the current year that needs to be added to calculate the days difference value*/
	document.write("Holy Father's Prayer Intentions - " + cday + " " + year);
	return;
}
function general() /*displays the number of days to the auction or if the auction is today or the number of days since the auction, whichever is the case.*/
{
	var datestring = new Date(); /*getting the current date off the user's computer*/
	var date = datestring.getDate(); /*stores the value of the current date off the user's computer.*/
	var month = datestring.getMonth(); /*stores the value of the current month off the user's computer.*/
	var year = datestring.getYear(); /*stores the value of the current year off the user's computer.*/
	if (navigator.appName!=("Microsoft Internet Explorer")) /*modifies the value of the current year off the user's computer from a 2 digit value to a 4 digit calue if a browser other than IE is used such as firefox.*/
	{
		year=(year+1900);
	}
	/*var yearday = new Array("That in our time, unfortunately marked by many episodes of violence, the Church’s bishops and priests may continue to indicate the way of peace and understanding among peoples."
							, "That the goods of the earth, given by God for all men, may be used wisely and according to criteria of justice and solidarity."
							, "That the Word of God may be ever more listened to, contemplated, loved and lived."
							, "That, allowing himself to be enlightened and guided by the Holy Spirit, every Christian may answer enthusiastically and faithfully to the universal call to sanctity."
							, "That, following the example of the Virgin Mary, all Christians should allow themselves to be guided by the word of God and always remain attentive to the signs of the Lord in his own life."
							, "That the Lord may protect sailors and all those involved in maritime activities."
							, "That all citizens, individually and in groups, may be enabled to participate actively in the life and management of the common good."
							, "That all those who are going through moments of inner difficulty and trial may find in Christ the light and support which leads them to discover authentic happiness."
							, "That the ecumenical assembly of Sibiu in Rumania may contribute to the growth of unity among all Christians, for whom the Lord prayed at the Last Supper."
							, "That the Christians who are in minority situations may have the strength and. courage to live their faith and persevere in bearing witness to it."
							, "That those dedicated to medical research and all those engaged in legislative activity may always have deep respect for human life, from. its beginning to its natural conclusion."
							, "That human society may be solicitous in the care of all those stricken with AIDS, especially children and women, and that the Church may make them feel the Lord's love.");*/
	/*var yearday = new Array("That the Church may strengthen her commitment to full visible unity in order to manifest ever more clearly her nature as a community of love in which is reflected the communion of the Father, the Son and the Holy Spirit."
							, "That the mentally handicapped may not be marginalized but respected and lovingly helped to live in a way worthy of their physical and social condition."
							, "That the importance of forgiveness and reconciliation between individuals and peoples may be understood and that through her testimony the Church may spread Christ’s love, the source of new humanity."
							, "That even in difficult and complex situations of present-day society, Christians may never tire of proclaiming with their lives Christ’s resurrection, the source of hope and peace."
							, "That Christians may use literature, art and the media to greater advantage to favour a culture which defends and promotes the values of the human person."
							, "That Christians may cultivate a deep and personal friendship with Christ so they are able to communicate the strength of His love to those they encounter."
							, "That there may be an increase in the number of those who volunteer to serve the Christian community with generous and prompt availability."
							, "That the human family may learn to respect God’s plan for the world and become ever more aware that Creation is God’s great gift."
							, "That those who are forced to leave home and country because of war or oppressive regimes may be supported by Christians in the defense and protection of their rights."
							, "That the Synod of Bishops may help bishops and theologians as well as catechists and pastoral workers engaged in the service of the Word of God transmit with courage the truth of the faith in communion with the entire Church."
							, "That the testimony of love offered by the Saints, may fortify Christians in their service to God and neighbour, imitating Christ who came not to be served but to serve."
							, "That in the face of a spreading of a culture of violence and death the Church through her apostolic and missionary activity may promote with courage the culture of life.");*/
	var yearday = new Array("That the family may become more and more a place of training in charity, personal growth and transmission of the faith."
							, "That the Pastors of the Church may always be docile to the action of the Holy Spirit in their teaching and in their service to God's people."
							, "That the role of women may be more appreciated and used to good advantage in every country in the world."
							, "That the Lord may bless the farmers with an abundant harvest and sensitise the richer populations to the drama of hunger in the world."
							, "That the laity and the Christian communities may be responsible promoters of priestly and religious vocations."
							, "That international attention towards the poorer countries may give rise to more concrete help, in particular to relieve them of the crushing burden of foreign debt."
							, "That the Christians of the Middle East may live their faith in full freedom and be an instrument of peace and reconciliation."
							, "That public opinion may be more aware of the problem of millions of displaced persons and refugees and that concrete solutions may be found for their often tragic situation."
							, "That the word of God may be better known, welcomed and lived as the source of freedom and joy."
							, "That Sunday may be lived as the day on which Christians gather to celebrate the risen Lord, participating in the Eucharist."
							, "That all the men and women in the world, especially those who have responsibilities in the field of politics and economics, may never fail in their commitment to safeguard creation."
							, "That at Christmas the peoples of the earth may recognize in the Word Incarnate the light which illuminates every man and that the Nations may open their doors to Christ, the Saviour of the world.");
	var cday = (yearday[month]);/*calculates the number of days in the current year that needs to be added to calculate the days difference value*/
	document.write(cday);
	return;
}
function mission() /*displays the number of days to the auction or if the auction is today or the number of days since the auction, whichever is the case.*/
{
	var datestring = new Date(); /*getting the current date off the user's computer*/
	var date = datestring.getDate(); /*stores the value of the current date off the user's computer.*/
	var month = datestring.getMonth(); /*stores the value of the current month off the user's computer.*/
	var year = datestring.getYear(); /*stores the value of the current year off the user's computer.*/
	if (navigator.appName!=("Microsoft Internet Explorer")) /*modifies the value of the current year off the user's computer from a 2 digit value to a 4 digit calue if a browser other than IE is used such as firefox.*/
	{
		year=(year+1900);
	}
	/*var yearday = new Array("That the Church in Africa may become a constantly more authentic witness of the Good News of Christ and be committed, in every Nation, to the promotion of reconciliation and peace."
							, "That the fight against diseases and great epidemics in the Third World may find, in the spirit of solidarity, ever more generous collaboration on the part of the governments of all nations."
							, "That the training of catechists, organizers and lay people committed in the service of the Gospel may be the constant concern of those responsible for the young Churches."
							, "That the number of priestly and religious vocations may grow in North America and the countries of the Pacific Ocean, in order to given an adequate answer to the pastoral and missionary needs of those populations."
							, "That in Mission territories there may be no lack of good and enlightened teachers in the major Seminaries and in the Institutes of consecrated life."
							, "That the Church in North Africa may bear witness, with its presence and its action, to God's love for every individual and all people."
							, "That, aware of their own missionary duty, all Christians may actively help all those engaged in the evangelization of peoples."
							, "That the Church in China may bear witness to ever greater inner cohesion and may manifest her effective and visible communion with Peter's Successor."
							, "That following Christ joyfully, all missionaries may know how to overcome the difficulties they meet in everyday life."
							, "That World Missionary Day may be a propitious occasion for kindling an ever greater missionary awareness in every baptized person."
							, "That in the Korean Peninsula the spirit of reconciliation and peace may grow."
							, "That the incarnation of the Son of God, which the Church celebrates solemnly at Christmas, may help the peoples of the Asiatic Continent to recognize God's Envoy, the only Savior of the world, in Jesus.");*/
	/*var yearday = new Array("That the Church in Africa, preparing to celebrate the second Special Assembly of the Synod of Bishops for Africa, may continue to be a sign and channel of reconciliation and justice in a continent still suffering from war, exploitation and poverty."
							, "That Institutes of Consecrated Life, so flourishing in mission countries, may rediscover the missionary dimension and, faithful to the radical choice of Gospel counsels, be generous in bearing witness to Christ and proclaiming Him to the ends of the earth."
							, "That Christians persecuted because of the Gospel in various parts of the world and in various manners may be sustained by the strength of the Holy Spirit and continue to bear witness courageously and openly to the Word of God."
							, "That future priests in young Churches may be ever more seriously formed culturally and spiritually in order to evangelize their respective countries and the whole world."
							, "That just as she accompanied the Apostles in the early stages of the Church, may the Blessed Virgin Mary, Star of Evangelization and Queen of Apostles, continue to guide missionaries throughout the world with maternal affection."
							, "That the International Eucharistic Congress in Quebec, Canada, may lead to ever deeper understanding of the Eucharist, the heart of the Church and source of evangelization."
							, "That World Youth Day in Sydney, Australia, may kindle the fire of divine love in numerous young people and render them sowers of hope for a new humanity"
							, "That the answer of the entire people of God to the common calling to holiness and mission may be promoted and fostered by means of careful discernment of charisms and constant commitment to spiritual and cultural formation."
							, "That faithful to the sacrament of matrimony every Christian family may cultivate the values of love and communion in order to be a small evangelizing community, sensitive and open to the material and spiritual needs of others."
							, "That in this month dedicated to the missions, through the promotional activities of the Pontifical Missionary Works and other organisms, the Christian may feel the need to participate in the Church’s universal mission with prayer, sacrifice and concrete help."
							, "That Christian communities in Asia, contemplating the face of Christ, may find the most suitable way to announce Him in full fidelity to the Gospel to the peoples of that vast continent so rich in culture and ancient forms of spirituality."
							, "That especially in mission countries Christians may show with acts of fraternal love that the Child born in the stable at Bethlehem is the luminous Hope of the world.");*/
	var yearday = new Array("That the different Christian confessions, aware of the need for a new evangelisation in this period of profound transformations, may be committed to announcing the Good News and moving towards the full unity of all Christians in order to offer a more credible testimony of the Gospel."
							, "That the Church in Africa may find adequate ways and means to promote reconciliation, justice and peace efficaciously, according to the indications of the Synod of the Bishops’ Special Assembly for Africa."
							, "That in the light of the letter addressed to them by Pope Benedict XVI, the Bishops, priests, consecrated persons, and lay faithful of the Catholic Church in the Popular Republic of China may commit themselves to being the sign and instrument of unity, communion and peace."
							, "That the Christians who work in areas where the conditions of the poor, the weak and the women and children are most tragic, may be signs of hope, thanks to their courageous testimony to the Gospel of solidarity and love."
							, "That the recently founded Catholic Churches, grateful to the Lord for the gift of faith, may be ready to share in the universal mission of the Church, offering their availability to preach the Gospel throughout the world."
							, "That the particular Churches operating in regions marked by violence may be sustained by the love and concrete closeness of all the Catholics in the world."
							, "That the Church may be the seed and nucleus of a humanity reconciled and reunited in God's one and only family, thanks to the testimony of all the faithful in every country in the world."
							, "That those Christians who are discriminated against and persecuted in many Countries because of the name of Christ may have their human rights, equality and religious freedom recognized, in order to be able to live and profess their own faith freely."
							, "That Christians in Laos, Cambodia, and Myanmar, who often meet with great difficulties, may not be discourage from announcing the Gospel to their brothers, trusting in the strength of the Holy Spirit."
							, "That the entire People of God, to whom Christ entrusted the mandate to go and preach the Gospel to every creature, may eagerly assume their own missionary responsibility and consider it the highest service they can offer humanity."
							, "That believers in the different religions, through the testimony of their lives and fraternal dialogue, may clearly demonstrate that the name of God is a bearer of peace."
							, "That at Christmas the peoples of the earth may recognize in the Word Incarnate the light which illuminates every man and that the Nations may open their doors to Christ, the Saviour of the world.");
	var cday = (yearday[month]);/*calculates the number of days in the current year that needs to be added to calculate the days difference value*/
	document.write(cday);
	return;
}
function logo()
{
if (screen.width == 800)
{
document.write ('<img border="0" src="pics/lowhfd_logo.png" \/>')
}
else
{
document.write ('<img border="0" src="pics/hfd_logo.png" \/>')
}
}
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e)
{
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  document.Show.MouseX.value = tempX
  document.Show.MouseY.value = tempY
  return true
}
function infopop(textinsert)
{
	var cassette = textinsert;
	document.all.tickerbg.style.visibility = "visible";	
	document.all.ticker.style.visibility = "visible";	
	tempY = tempY - 250;
	tempX = tempX - 60;
	document.all.tickerbg.style.top = tempY;
	document.all.tickerbg.style.left = tempX;
	tempX = tempX + 10;
	document.all.ticker.style.top = tempY;
	document.all.ticker.style.left = tempX;
	document.all.ticker.innerHTML = cassette;
}
function hideinfopop()
{
	document.all.ticker.style.visibility = "hidden";
	document.all.tickerbg.style.visibility = "hidden";
}