/****************************************************************************
* functions.js
* Common JavaScript functions: win-opener, NN4-resize-bugfix
* author: oh@design-aspekt.com | date: 2003-11-12
*
* produced by design aspekt
* http://www.design-aspekt.com
*
* Version: 1    Datum: 2003-11-12
***************************************************************************/

//______________________________________________________________________
// new window opener
function openViewer(url,name,width,height) {
	var xpos = (screen.availWidth-width)/2;
	var ypos = (screen.availHeight-height)/2;
	popUp = window.open(url,name,"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width="+width+",height="+height+",resizable=no,left="+xpos+",top="+ypos);
}

function openArt(url,name,width,height) {
	var xpos = (screen.availWidth-width)/2;
	var ypos = (screen.availHeight-height)/2;
	popUp = window.open(url,name,"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width="+width+",height="+height+",resizable=yes,left="+xpos+",top="+ypos);
}

//______________________________________________________________________
// Fix NetscapeNavigator4.5 resize bug

function reDo() {
	if (innerWidth != origWidth || innerHeight != origHeight) {
		history.go(0);		
	}
}
if (document.layers) {
    origWidth = innerWidth;
    origHeight = innerHeight;		
    onresize = reDo;
}

