function mediawindow()
{
	this.name	 = 'mediawindow';

	var self = this;
	
	this.fullscreen = product.config.mappointsfullscreen;
	var wndclass = this.fullscreen ? 'wndTrafficPoint_fullscreen' : 'wndTrafficPoint';
	this.window	 = product.openWindow(
						{ title:		''
						, className:	wndclass
						, canclose:		true
						, visible:		true
						, center:       false
						, modal:        this.fullscreen
						, fullscreen:   this.fullscreen
						, onresize:		function() { self.resize(); }
						, onviewportresize: function() { self.resize(); }
						});

	this.gallery = new spcGallery(
						{ imagepath: product.url.gallery+product.map
						});

	//this.cont_beelden = document.createElement('div');
	//this.cont_beelden.style.cssText = 'position: absolute; top:0; bottom: 0; left: 0; right: 0; overflow-x: hidden; overflow-y: auto;';// display: none;';
	//this.window.body.appendChild(this.cont_beelden);
	
	//this.window.setSizeAndPositionByEdgeDistance({top: 75, right: 50, bottom: 50, left: 290});
	this.window.setSizeAndPositionByEdgeDistance({top: 47, right: 35, bottom: 35, left: 180});
	//alert(this.window.window.style.left);
	this.resize();
	
	var self = this;
	setTimeout( function() { self.resize(); }, 1000 );
}
mediawindow.prototype.close = function()
{
	this.window.close();
	this.window = null;
}
mediawindow.prototype.resize = function()
{
	this.gallery.handleResize();
}
