function setDropDown(day,month)
{
document.forms["monthtop"].first.options[day].selected = true;
document.forms["monthtop"].second.options[month].selected = true;
document.forms["monthfooter"].first.options[day].selected = true;
document.forms["monthfooter"].second.options[month].selected = true;

}

/*navigates user to correct page depending on their dropdown selection. It will go nowhere if an incorrect date is attempted*/
function navigate(formName,bandwidth)
{
	dayValue=document.forms[formName].first.options[document.forms[formName].first.selectedIndex].value.toLowerCase();
	monthValue=document.forms[formName].second.options[document.forms[formName].second.selectedIndex].value.toLowerCase();
	if(dayValue=="day" || monthValue=="month")
	{
	}
	else if(dayValue=="31" && (monthValue=="february" || monthValue=="april" || monthValue=="june" || monthValue=="september" || monthValue=="november"))
	{
	}
	else if (dayValue=="30" && monthValue=="february")
	{
	}
	else
	{
		window.location="/onthisday/" + bandwidth + "/dates/stories/" + monthValue + "/" + dayValue + "/default.stm";
	}
}

/*switches Images where user onMouseOvers + onMouseOuts*/
function rollover(image,name) 
{
    if (document.images)
        document.images[name].src = image;
}


/*PreLoad Images for arrow navigation*/
Image1 = new Image();
Image1.src = "/onthisday/img/bck_aro_on.gif";
Image2 = new Image();
Image2.src = "/onthisday/img/fwd_aro_on.gif";


//RSS
function getArgs() { 
	var Args = new Object(); 
	var query = location.search.substring(1); 
	var pairs = query.split("&"); 
	for (var i = 0; i < pairs.length; i++) 
	{ 
		var pos = pairs[i].indexOf('='); 
		if (pos == -1) continue; 
		var argname = pairs[i].substring(0,pos); 
		var value = pairs[i].substring(pos+1); 
		Args[argname] = unescape(value); 
	} 
	return Args;
}