function newWindowLinks() {
	
	var windowWidth 	= '600';
	var windowHeight 	= '320';
	
	var windowHCentre 	= (window.screen.width / 2) - (windowWidth / 2);
	var windowVCentre 	= (window.screen.height / 2) - (windowHeight / 2);
	
	var windowAttrs 	= 'width=' + windowWidth + ', height=' + windowHeight +', left=' + windowHCentre + ', top=' + windowVCentre + ', scrollbars=no, location=no, resizable=no';
	
	var links 	= document.getElementsByTagName('a');
	
	var popUps 	= function() { window.open(this.href, '', windowAttrs); return false; };
	
	var i;
	
	for (i = 0; i < links.length; i++)
	{
		var link = links[i];
		
		if (link.getAttribute('rel') == 'info')
		{
			link.onclick 	= popUps;
			link.onkeypress = popUps;
		}
		if (link.getAttribute('rel') == 'external')
		{
			link.target = "_blank";
		}
	}
}

function reSize() {  
	
	var frameObject		= document.getElementById('container'); // ID of element we want to stretch
	var htmlHeight 		= document.body.parentNode.scrollHeight; // Point at which the browser starts scrolling
	var windowHeight 	= window.innerHeight; // Total size of content
		
	frameObject.style.height = '100%'; // Set our container to be 100% of it's parent (body)
	frameObject.style.minHeight = '100%'; // Set our container to be minimum 100% of it's parent (body)
	
	if (window.opera) // Check for Opera fix page load render for small containers
	{
		frameObject.style.minHeight = windowHeight + 'px'; // Set container to window height with px measurement. Opera now stretches small boxes onload.
	}
	
	if (windowHeight > htmlHeight) // If the window is bigger than the box
	{ 
		document.body.style.height = windowHeight + 'px'; // Set body height to window height
	}
	else
	{
		document.body.style.minHeight = windowHeight + 'px'; // Set body min-height to document height - need a fork for IE height?
	}
}

window.onresize = reSize;
