if( window.addEventListener )
	window.addEventListener( 'load', doLinks, false );
else if( window.attachEvent )
	window.attachEvent( 'onload', doLinks );

function doLinks()
{
	if( !document.getElementsByTagName )	return;
	var tags	= document.getElementsByTagName( 'a' );
	var s;
	//removes 'accessible' from all links
	//adds 'accessible' to all links
	for( var i=0,imax=tags.length; i<imax; i++ )
	{
		if( tags[i].href.match( 'javascript' ) )
			continue;
		
		if( tags[i].href.match( '/static' ) )
		{
			tags[i].onclick	= tags[i].onkeypress	= function()
				{
					return ( !window.open( this.href, "", "width="+( 1000 )+",height="+(800)+",resizable=yes,scrollbars=yes" ) );
				}
		}
		/*else if( !tags[i].href.toString().match( /#/ )
				&& !tags[i].className.toString().match( /richmedia/ )
					)
		{
			s	= tags[i].href.toString().split( '?' );
			if( 2 != s.length )		s[1]	= '';
			s[1]	= s[1].replace( /\&?accessible/, "" );
			s[1]	+= "&accessible";
			s[1]	= s[1].replace( /^\&/, "" );
			tags[i].href	= s.join( '?' );
		}*/
	}
}
	
function popUp( url )
{
	var features	= "width="+( 1000 )+",height="+(800)+",resizable=yes,scrollbars=yes";
	window.open( url, "", features );
}
