function popUpper2(name,titel){
	var screenBreite=top.screen.width;
	var scteenHoehe=top.screen.height;
	var popUpperX=(screenBreite/2)-370;
	var popUpperY=(scteenHoehe/2)-378;
	popUpperAttr="width=740,height=756,scrollbars=no,top="+popUpperY+",left="+popUpperX;
	var Fenster = window.open(name,titel,popUpperAttr);Fenster.focus();return false;
	window.open('doro/popup1-d-oro.html','doro','width=601,height=325,scrollbars=no');return true;
}

function testPos(menuePunkt)
{
	xy 	= getAncorPosition(menuePunkt);
	menuDropdowns[menuePunkt].setX(xy[0]+376);
	if(b!="ge")
	{
		menuDropdowns[menuePunkt].setY(xy[1]+100);
	}
	else
	{
		menuDropdowns[menuePunkt].setY(xy[1]+97);
	}
}

var menuDropdowns 		= new Array();
menuDropdowns["menueAncor01"]	= new JJLayer("teaser");
//alert(menuDropdowns["menueAncor01"]);
initWindowVars();

function getYPos(thisObject) { return((thisObject.offsetParent) ? (thisObject.offsetTop + getYPos(thisObject.offsetParent)) : thisObject.offsetTop) ; }
function getXPos(thisObject) { return((thisObject.offsetParent) ? (thisObject.offsetLeft +getXPos(thisObject.offsetParent)) : thisObject.offsetLeft); }

function getAncorPosition(name)
{
	if(b=="ns")
	{ 
		for( anc=0; anc<document.anchors.length; anc++ )
		{
			if(document.anchors[anc].name==name)
			{
				posX=document.anchors[anc].x;
				posY=document.anchors[anc].y;
			}
		}
	}
	else
	{
		posX=getXPos(document.getElementById(name));
		posY=getYPos(document.getElementById(name));
	}
	position	= [posX,posY];
	return(position);
}

function jjFindImage(id)	
{	
	x=false;
	if(document.images[id]){x=document.images[id];}
	else{if(document.layers){
		for(i=0;i<document.layers.length;i++){
			if(document.layers[i].document.images[id]){x=document.layers[i].document.images[id]};}}}
	return x;
}

function openWin(ziel,name,width,height)
{
	window.open(ziel,name,"width="+width+" ,height="+height+",location=no,menubar=no,toolbar=no,status=no");
}
