// Start Scripte für Hasso Galerie

function makeWinObj(name,url,posx,posy,width,height,extra)
{
	if (extra == 'toolbar') extra = 'scrollbars=yes,toolbar=yes';
	else if (extra == 'empty') extra = 'scrollbars=no,toolbar=no';
	else extra = 'scrollbars=yes,toolbar=no' + extra;
		
	this.name=name;
	this.url=url;
	this.obj=window.open(url,name,'width='+width+',height='+height+', ' + extra);

	// alert("x: "+posx+" | posy: "+posy);

	this.obj.moveTo(posx,posy);
	this.obj.focus();

	return this;
}

function newWindow(name,link,width,height,type)
{
	if (width==0) width=550;
	if (height==0) height=400;
	
	if (type == 'scrollbars')
	{
		extra = 'toolbar';
	}else if (type == 'empty')
	{
		extra = 'empty';
	}else
	{
		extra = '';	
	}
	
	if (type=="nav")
	{
		posx = parseInt(screen.width/2)-390;
		posy = parseInt(screen.height/2) - 24 - 290;
		width= 320;
		height=580;
	}else if (type=="content")
	{
		posx = parseInt(screen.width/2) - 390 + 330;
		posy = parseInt(screen.height/2) - 24 - 290;
		width= 470;
		height=580;
	}else
	{
		posx = parseInt((screen.width-width)/2);
		posy = parseInt((screen.height-height)/2) - 24;
	}
	
	
	
	winObjCounter++;
	winObj[winObjCounter]=new makeWinObj(name,link,posx,posy,width,height,extra);
}

winObj=new Array();

var winObjCounter = -1;

// Ende Scripte für Hasso Galerie
