function topen_pop(url,winname)
{ 
features='scrollbars=AUTO,resizable=no,width=780,height=560';

tfenetre = window.open(url,winname,features);
tfenetre.focus();
}

function open_trailer()
{ 



x=window.screenX;
y=window.screenY;


if (document.all) {  //explorer
	x=1;
	y=1;
}

le = x+370;
to = y+90;

tfeatures='scrollbars=no,resizable=no,width=340,height=200,left='+le+',top='+to;

tfenetre = window.open('trailerpop.html','Trailer',tfeatures);
//tfenetre.moveTo(375,120);
tfenetre.focus();
}




function clientCoords()
{
    var offsetInfo = ""
    clientInfo = "The x coordinate is: " + window.event.clientX + "\r"
    clientInfo += "The y coordinate is: " + window.event.clientY + "\r"
    alert(clientInfo);
}



function tx(tex) { // im menÄ oder im submenÄ geklickt
   menucontent= tex;


	if (document.all) {  //explorer
		menu.innerHTML=menucontent
	}
	else if (document.layers) {  //netscape 4
		document.menu.document.write(menucontent)
		document.menu.document.close()
	}
  else if (document.getElementById) {  //netscape 6 + opera(geht ned)
    document.getElementById("menu").innerHTML=menucontent
  }
  else {
     document.write(menucontent);
  }

}



function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}



/* Zooming link script by Paul Anderson, copyright 2001 CNET Builder.com.
   May be freely used with attribution. Not for resale. All rights reserved. 
   Make a link zoom open by adding the event handler
   onclick="zoomBox(event,this);return false"
   To zoom into a new, positioned window add width, height, left, and top
   onclick="zoomBox(event,this,640,480,100,50);return false"
   */
var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew,dflg;

function zoomBox(evt,zlink,maxw,maxh,tox,toy,flg) {
if (arguments.length > 2) zNew=1;
scrollH=(window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
maxW=maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
maxH=maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
toX=tox?tox:0;
toY=(toy?toy:0)+scrollH;
fromX=evt.pageX?evt.pageX:evt.clientX;
fromY=(evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
adjX=toX+evt.screenX-fromX;
adjY=toY+evt.screenY-fromY;
dflg=flg;
if (document.createElement && document.body.appendChild && !zBox) {
	zBox=document.createElement("div");
	zBox.style.position="absolute";
	document.body.appendChild(zBox);
} else if (document.all && !zBox) {
	document.all[document.all.length-1].outerHTML+='<div id="zBoxDiv" style="position:absolute"></div>';
	zBox=document.all.zBoxDiv;
} else if (document.layers && !zBox) {
	zBox=new Layer(maxW);
	zBox.style=zBox;
	}
zLink=zlink;
doZoom();
}

function doZoom() {
zStep+=1;
zPct=(10-zStep)/10
if (document.layers) {
	zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
	zBox.document.open();
	zBox.document.write("<table width='"+maxW*(1-zPct)+"'ar height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
	zBox.document.close();
	} else {
	zBox.style.border="2px solid #999999";
	zBox.style.left=toX+zPct*(fromX-toX);
	zBox.style.top=toY+zPct*(fromY-toY);
	zBox.style.width=maxW*(1-zPct);
	zBox.style.height=maxH*(1-zPct);
	}
zBox.style.visibility="visible";
if (zStep < 10) setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
else {
	zBox.style.visibility='hidden';
	zStep=0;
	if (zLink && !zNew) location.href=zLink.href;
	else if (zLink && zNew) {
	
	x=window.screenX;
	y=window.screenY;

			if (document.all) {  //explorer
				x=1;
				y=1;
			}

			adjX = x+toX-10;
			adjY = y+toY+30;

			//if (dflg==1){
				var w=window.open(zLink.href,'','width=480,height=322,left='+adjX+',top='+adjY+',scrollbars=no,resizable=no');
				zNew=null;
			//}

			//else{
				//popbild(zLink.href);
				//var w=window.open(zLink.href,'','width='+maxW+',height='+maxH+',left='+adjX+',top='+adjY+',scrollbars,resizable');
				//zNew=null;
			//}
		}
	}
}




//function popbild(was) {
//popup = window.open('', 'Popup', 'scrollbars=no,width=480,height=320, //screenX=50,screenY=50,resizable=no,toolbar=no,status=no,directories=no,location=no');

//cont = "<html><head><title>Popup</title>";
//cont = cont + "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head>";
//cont = cont + "<body bgcolor='#FFFFFF' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight="'0'>";
//cont = cont + "<img src='" + was + "' width='480'>";
//cont = cont + "</body></html>";

//popup.document.write(cont);

//}


