// JavaScript Doc
//***** [hide from old browsers] script beginn *********************


//****************************************************
// Site-Namen-Animation:
//****************************************************
var tx = new Array ("Gebrüder Niens", "Wilon weites Wasser", "Das Schattenbuch von Morin", "Die Zauberstäbe von Morin", "Fantasy für Jung&Alt"); 
var txcount=5; 
var i=1; 
var wo=0; 
var ud=1; 
function animatetitle() { 
	window.document.title=tx[wo].substr(0, i)+"_"; 
	if (ud==0) i--; 
	if (ud==1) i++; 
	if (i==-1) {
		ud=1;
		i=0;
		wo++;
		wo=wo%txcount;
	} 
	if (i==tx[wo].length+10) {
		ud=0;
		i=tx[wo].length;
	} 
	parent.window.document.title=tx[wo].substr(0, i)+" "; 
	setTimeout("animatetitle()",120); 
}

//****************************************************
// launch der visual examples in popup - java generated - CONTAINER ::
//****************************************************
function LaunchGaleriePopup(daten,w,h)
	{
	var imgwidth=w;
	var imgheight=h;
	var breite = (screen.width-imgwidth)/2;
	var hoehe = (screen.height-imgheight)/2;
	imgpopupdata=daten.toString();
	//alert(imgpopupdata);
	NewWindow=window.open('', '', 'width='+imgwidth+', height='+imgheight+', toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=yes,left=1,top=1,x=1,y=1');
	NewWindow.document.writeln('<html><head>');
	NewWindow.document.writeln('<title>FEARLESS || Jet Li - Galerie</title>');
	NewWindow.document.writeln('<meta http-equiv="imagetoolbar" content="no">');

	NewWindow.document.writeln('</head>');
    NewWindow.document.writeln('<body bgcolor="#000000" text="#000000" leftmargin="0" topmargin="0" rightmargin="0" marginheight="0" marginleft="0" onContextMenu="return false;" onSelectStart="return false;">');
	NewWindow.document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" name="ODGexamples">');
	NewWindow.document.writeln('<tr valign="center" align="middle">');
	NewWindow.document.writeln('<td align="center"> ');

	NewWindow.document.writeln('<a href="javascript:this.window.close();"><img src="galerie/'+imgpopupdata+'" width='+imgwidth+' height='+imgheight+' border="0"></a>');

	NewWindow.document.writeln('</td>');
	NewWindow.document.writeln('</tr>');
	NewWindow.document.writeln('</table>');
	NewWindow.document.writeln('</body></html>');
	NewWindow.document.close();
    NewWindow.moveTo(breite,hoehe);
	self.moveTo(0,0);
	self.resizeTo(screen.width,screen.height);
}

//****************************************************
// window closer:
//****************************************************
// window close from flashbutton:
function flashCloseWindow() {
	javascript:window.close();
}

//****************************************************
// window opener:
//****************************************************
// window open from flashbutton:
function openNewWindow(url) {
	javascript:window.open(url,'','');
}

