/****************************************************************************
* wassily.js
* Common JavaScript functions: initialization, window opener, NN4-resize-bugfix
* author: af@design-aspekt.com | date: 2001-08-02
*		  oh@design-aspekt.com | date 2003-02-06
*
* produced by design aspekt
* http://design-aspekt.com
*
* Version: 1.4    Datum: 2003-02-08
***************************************************************************/


// if your not 'index.html' go to 'index.html' ;-) 
//if (top.window.name != "vsn") top.location.href = "index.php"

//______________________________________________________________________
//TEXTSCROLLER
//You set the width and height of the divs inside the style tag, you only have to
//change the divCont, Remeber to set the clip the same as the width and height.
//If you want it to move faster you can set this lower:
var speed=50
//Sets variables to keep track of what's happening
var loop, timer
//Makes the object go up

function goDown(move){
	if(this.y>-this.scrollHeight+clipWindow.clipHeight){
		this.moveIt(15,this.y-move)
			if(loop) setTimeout(this.obj+".down("+move+")",speed)
	}
}
//Makes the object go down
function goUp(move){
	if(this.y<0){
		this.moveIt(15,this.y-move)
		if(loop) setTimeout(this.obj+".up("+move+")",speed)
	}
}
//Calls the scrolling functions. Also checks whether the page is loaded or not.
function scroll(speed){
	if(loaded){
		loop=true;
		if(speed>0) scrolltext.down(speed)
		else scrolltext.up(speed)
	}
}
//Stops the scrolling (called on mouseout)
function noScroll(){
	loop=false
	if(timer) clearTimeout(timer)
}


//______________________________________________________________________
// centered pop-up-window
function openViewer(url,name,width,height)
{
	var xpos = (screen.availWidth-width)/2;
	var ypos = (screen.availHeight-height)/2;
	popUpWin = window.open(url,name,"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width="+width+",height="+height+",resizable=1,left="+xpos+",top="+ypos);
}



