// Dreamweaver generated function for redirect on drop-down box pick.
function MM_jumpMenu(targ,selObj,restore){ //v3.0
var val = selObj.options[selObj.selectedIndex].value;
selObj.selectedIndex=0;
  eval(targ+".location='"+val+"'");
  if (restore) selObj.selectedIndex=0;
}

// FeaturedPaper - Object that encapsulates the image properties and url of the featured papers for UDN.
function FeaturedPaper(url,filename,width,height,alt)
{
	this.url = url; 
	this.filename = filename; 
	this.width=width; 
	this.height=height;
	this.alt=alt;
}

function FeaturedPaper_toHtml()
{	
	// Create the <img> tag
	var img_tag = '<img src="' + this.filename + '"'
	if( this.width ) 
		img_tag += ' width="' + this.width + '"';
	if( this.height ) 
		img_tag += ' height="' + this.height + '"';
	if( this.alt ) 
		img_tag += ' alt="Featured Issue: ' + this.alt + '"';
	img_tag += ' />' // Close <img> tag.
	
	return '<a href="' + this.url + '">' + img_tag + '</a>';
}
FeaturedPaper.prototype.toHtml = FeaturedPaper_toHtml;

// Returns a randomly chosen item from the input array.
function getRandom(some_array)
{
	return some_array[Math.floor(Math.random()*some_array.length)];
}