/*------------------------------------------------------*/
/* JAVASCRIPT IMAGE-ROLLOVER							*/
/*------------------------------------------------------*/
/* PROGRAMMING											*/
/*    by Sascha Reschun @ IQ².at 2003 					*/
/* @SCRIPT Version 1.1 (22/09/2003)						*/
/*------------------------------------------------------*/
/* SCRIPTCALL:											*/
/*------------------------------------------------------*/
/* <a href="#" onMouseOver="swapImg('src','name',path)" */
/* onMouseOut="swapImg('src','name','path')">			*/
/*------------------------------------------------------*/
function swapImg(src,path,name)
{
	if(window.document.images) 
	{
		window.document.images[src].src = "images/" + path + "/" + name + ".gif";
	}
}

/*------------------------------------------------------*/
/* JAVASCRIPT IMAGE PRELOADER		                    */
/*------------------------------------------------------*/
/* PROGRAMMING											*/
/*    by Sascha Reschun @ IQ².at 2003 					*/
/* @SCRIPT Version 1.0 (25/07/2003)						*/
/*------------------------------------------------------*/
/* SCRIPTCALL:											*/
/*------------------------------------------------------*/
/* <body onload="preLoad('imgName1','imgName2')">		*/
/*------------------------------------------------------*/
var imgArray = new Array();
function preLoad()
{
	var imgCounter = preLoad.arguments; 
	for(x=0; x < imgCounter.length; x++)
	{
		imgArray[x] 	= new Image();
		imgArray[x].src = "dhtml/images/" + preLoad.arguments[x] + "_off.gif";
		imgArray[x+imgCounter.length] 	= new Image();
		imgArray[x+imgCounter.length].src = "dhtml/images/" + preLoad.arguments[x] + "_on.gif";
	}
}

var newWin = null; 
function openMail() 
{
	if (newWin != null && !newWin.closed) 
	newWin.close(); 

	bildschirmx = screen.availWidth;
	bildschirmy = screen.availHeight;
	breite = '450';
	hoehe = '500';
	startx = Math.round((bildschirmx / 2)- (breite / 2) - 10);
	starty = Math.round((bildschirmy / 2) - (hoehe / 2) - 20);
	newWin = window.open("./contactform.php","neu","width="+breite+",height="+hoehe+",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,screenX="+startx+",left="+startx+",screenY="+starty+",top="+starty+"");
	newWin.focus(); 
}
function openContact(id) 
{
	if (newWin != null && !newWin.closed) 
	newWin.close(); 

	bildschirmx = screen.availWidth;
	bildschirmy = screen.availHeight;
	breite = '450';
	hoehe = '250';
	startx = Math.round((bildschirmx / 2)- (breite / 2) - 10);
	starty = Math.round((bildschirmy / 2) - (hoehe / 2) - 20);
	newWin = window.open("./contactdetails.php?id="+id,"neu","width="+breite+",height="+hoehe+",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,screenX="+startx+",left="+startx+",screenY="+starty+",top="+starty+"");
	newWin.focus(); 
}
function openMovie() 
{
	if (newWin != null && !newWin.closed) 
	newWin.close(); 

	bildschirmx = screen.availWidth;
	bildschirmy = screen.availHeight;
	breite = '450';
	hoehe = '440';
	startx = Math.round((bildschirmx / 2)- (breite / 2) - 10);
	starty = Math.round((bildschirmy / 2) - (hoehe / 2) - 20);
	newWin = window.open("./milky_movie.php","neu","width="+breite+",height="+hoehe+",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,screenX="+startx+",left="+startx+",screenY="+starty+",top="+starty+"");
	newWin.focus(); 
}