

/* This function does the popup windows for the screenshots within the Buzz section.
	The parameters are the window's URL, width and height. */
function openWindow(theURL, windowWidth, windowHeight, otherFeatures)
{
	return window.open(theURL,'_blank','width='+windowWidth+',height='+windowHeight+','+otherFeatures+',resizable=1,location=0,status=0,toolbar=0,menubar=0');
}


/* In XHTML 1.0 Strict, the target attribute of the <a> attribute is no longer valid. While links that
	open in new windows can be irritating and are bad for accessibility, unfortunately for some people
	they are a necessary evil. The workaround below on this page uses the DOM to search through every
	link on a page looking for links with their class attribute set to "externalLink", and dynamically
	changing their target attribute to "_blank". This results in links that validate as XHTML but
	will still open in new windows.
	http://development.incutio.com/simon/targetBlankExperiment.html
*/
function changeAllLinksWithClassToTargetBlanks()
{
	for (i = 0; i < document.links.length; i++)
	{
		if (document.links[i].getAttribute('class') == 'externalLink' || document.links[i].className == 'externalLink')
		{
			document.links[i].setAttribute('target', '_blank');
		}
	}
}
window.onload = changeAllLinksWithClassToTargetBlanks;
