function Select( id ) 
{
	this.id = id;
	this.Element = document.getElementById( this.id );
	
	this.AutoLinkValue = function()
	{
		this.Element.onchange = new Function("self.location = this.value;");
	}
}

window.onload = function()
{
	var portfolio = new Select("browse-portfolio");
	portfolio.AutoLinkValue();
}


function Map( url, width, height )
{
	this.Width = 300;
	this.Height = 426;
	
	if( width )
		this.Width = width;
	if( height )
		this.Height = height;
	
	this.XCenter = (screen.width - this.Width) / 2;
	this.YCenter = (screen.height - this.Height) / 2;
	
	if( ! Map.Configuration )
		Map.Configuration = 'scrollbars=no,width='+this.Width+',height='+this.Height+',left='+this.XCenter+',top='+this.YCenter+',resizable=no';
		
	if( ! Map.Title )
		Map.Title = 'Map';
		
	this.URL = url;
	
	this.Open = function()
	{
		if ( ! this.Window || this.Window.closed )
		{ 
			this.Window = open( this.URL, Map.Title, Map.Configuration ); 
		}
		else
		{ 
			this.Window.close(); 
			this.Window = open( this.URL, Map.Title, Map.Configuration ); 
		}
	}
}