//JavaScript page

function popWin(url, width, height) {
	var features = "status=yes,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height + ",left=30,top=30";
	var childWindow = open(url,'choicePopup',features);
	childWindow.focus();
}

function set_Date(y,m,d) {
	var now=new Date();
	var then = new Date(now.getFullYear()+y,now.getMonth()+m,now.getDate()+d);
	var thy=then.getFullYear();
	var thm=then.getMonth()+1;
	var thd=then.getDate();
	document.write(thm +"/"+ thd +"/"+ thy);
	return false;
}

function togglepic(imgName,imgURL){
	document.images[imgName].src = imgURL;
	}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
	
// please keep these lines on when you copy the source
// random image generator made by: Nicolas - http://www.javascript-page.com
	
var currentdate = 0
var core = 0	
function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '
  }
}
function ranimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    return(image[core])
}

function removebg() {
	document.getElementById('topbar').style.backgroundImage="none";
	document.getElementById('header').style.backgroundImage="none";
	document.getElementById('content').style.border="none";
	document.getElementById('header').style.border="none";
	document.body.style.backgroundImage="none";
	document.getElementById('toprightbox').style.display="none";
	var x = document.getElementsByTagName('img');for(i=0;i<x.length;i++) {x[i].style.display="none";}
	var y = document.getElementsByTagName('h2');for(i=0;i<y.length;i++) {y[i].style.background="none";y[i].style.color="#000000";}
	}
	
var question = new Array();
Today = new Date();
thismonth = Today.getMonth()+1;
question[1] = "<p class='question'>When does Easter take place this year, and why does it take place at different times each year?</p>";
question[2] = "<p class='question'>I was recently in Hong Kong and bought some DVDs. Now that I'm home I can't play them at all. What's wrong with these DVDs?</p>";
question[3] = "<p class='question'>What are the highest-rated undergraduate programs at public universities in the United States? In the Northeast?</p>";
question[4] = "<p class='question'>What's the significance of the month of Ramadan to devout Muslims, and when does it take place this year?</p>";
question[5] = "<p class='question'>What's the world's longest suspension bridge? What's the longest suspension bridge in the United States? In New England?</p>";
question[6] = "<p class='question'>In genealogical terms, what's the difference between a first cousin and a first cousin once removed?</p>";
question[7] = "<p class='question'>Which mountains in the United States are named after Presidents?</p>";
question[8] = "<p class='question'>What's the correct usage of the prefixes bi- and semi-?</p>";
question[9] = "<p class='question'>What is Earthshine?</p>";
question[10] = "<p class='question'>Have any United States Presidents won the Nobel Peace Prize?</p>";
question[11] = "<p class='question'>Can you explain the differences between an Axel, a flip, a loop, a Lutz, and a Salchow?</p>";
question[12] = "<p class='question'>What's the highest-scoring Scrabble® word?</p>";

function writeStumper() {
document.write(question[thismonth]);
}

var answer = new Array();
Today = new Date();
thismonth = Today.getMonth()+1;
answer[1] = "<p class='answer'>Easter takes place on April 8 this year (2007).  According to Chase’s Calendar of Events 2007 Easter is a movable feast, derived from the lunar calendar: falling on the 1st Sunday following the first ecclesiastical full moon on or after March 21.</p>  <p class='answer'>See also : <a href='http://aa.usno.navy.mil/faq/docs/easter.html'>http://aa.usno.navy.mil/faq/docs/easter.html</a></p>";
answer[2] = "<p class='answer'>Most DVDs and DVD players are manufactured to be played in one of six specific regions of the world, and won't work outside their regions! See more at <a href='http://www.dvddemystified.com/dvdfaq.html' target='main'>DVD Demystified</a>, the official FAQ from the rec.video.dvd newsgroup.</p>";
answer[3] = "<p class='answer'>According to <a href='http://www.kiplinger.com/personalfinance/tools/colleges/' target='main'>Kiplinger's Personal Finance</a>, the top public universities in nearby states are University of Connecticut,  University of Masschusetts Amherst, and University of Vermont. Click on the Kiplinger's link for more rankings.</p>";
answer[4] = "<p class='answer'>Ramadan, the Islamic Month of Fasting, takes place this year (2006) from September 24 – October 23.  According to Chase’s Calendar of Events 2006, Ramadan is holy because it was during this month that the Holy Koran was revealed.  All healthy adults are required to fast from sunrise until sunset in order to achieve spiritual and physical purification.  See also: <a href='http://islam-usa.com/ramdan.html'>http://islam-usa.com/ramdan.html</a></p>";
answer[5] = "<p class='answer'>The longest suspension bridge in the world is the Akashi-Kaikyo Bridge in Kobe-Naruto, Japan with a span length of 6,532 feet. The longest suspension bridge in the U.S. is the Verrazano Narrows in New York with a span length of 4,260 feet. The longest suspension bridge in New England is the Narraganset Bay Bridge in Newport, R.I. with a span of 1,600 feet.</p><p class='answer'>Information compiled from <i>The Top 10 of Everything 2006</i> and <a href='http://infoplease.com'>http://infoplease.com</a></p>";
answer[6] = "<p class='answer'>Your first cousin once removed is the son or daughter of your first cousin. Removed refers to relationships between different generations. For a more detailed explanation, visit <a href='http://www.genealogy.com/genealogy/16_cousn.html'>Genealogy.com</a>.</p>";
answer[7] = "<p class='answer'>In Alaska, the greatest mountain on the North American continent, and the highest peak in the U.S. (20,320 feet), was named by Congress on Feb. 26, 1917, for Republican President William McKinley, assassinated 16 years earlier. Other mountains named for U.S. presidents include Washington (6,288 ft.), Adams (5,744), Jefferson (5,712), Monroe (5,384), Madison (5,367), Lincoln (5,089), Eisenhower (4,761), Garfield (4,500) and Pierce (4,310). All are located in of New Hampshire. From an article at <a href='http://www.nationalreview.com/'>National Review Online</a>.</p>";
answer[8] = "<p class='answer'>Bimonthly and biweekly mean 'once every two months' and 'once every two weeks.' For 'twice a month' and 'twice a week,' the words 'semimonthly' and 'semiweekly' should be used.</p>";
answer[9] = "<p class='answer'>Earthshine is reflected Earthlight on the moon’s night side, usually occurring during a crescent moon.  It is also known as the moon's 'ashen glow.'  See also: <a href='http://en.wikipedia.org/wiki/Earthshine'>http://en.wikipedia.org/wiki/Earthshine</a></p>";
answer[10] = "<p class='answer'>Three United States presidents have won the Nobel Peace Prize:</p> <ul><li>Jimmy Carter – 2002</li> <li>Woodrow Wilson – 1919</li> <li>Theodore Roosevelt – 1906</li></ul> <p class='answer'>From <i>The World Almanac and Book of Facts 2005.</i> See also:  <a href='http://nobelprize.org/peace/'>http://nobelprize.org/peace/</a></p>";
answer[11] = "<p class='answer'><a href='http://www.soyouwanna.com/site/syws/skating/skating3.html'>http://www.soyouwanna.com/site/syws/skating/skating3.html</a>. See this site to learn all the figure skating jumps.</p>";
answer[12] = "<p class='answer'>For the play of CRAZIEST, where the C and T are placed on Triple Word Score squares, with the Z falling on the Double Letter Score, using no blanks, the score is 3 + 1 + 1 + (10 x 2) + 1 + 1 + 1 + 1 = 29 X 9 = 261 pt. + 50 pt. = 311 pt.  This play is the current single highest-scoring acceptable play in National Scrabble Association Club or Tournament history. It was played in 1996 at a club in Michigan.</p> <p class='answer'><a href='http://www.hasbro.com/scrabble/pl/page.faq_scoring/dn/home.cfm'>http://www.hasbro.com/scrabble/pl/page.faq_scoring/dn/home.cfm</a></p>";

function writeAnswer() {
document.write(answer[thismonth]);
}
<!--Ramadan in 2007 is Sept. 13, 2007 to October 13, 2007-->