<!--

// verschiedene browserfenster

function newsletter(){ 
	popwin("pop_newsletter.jhtml","nl","250","400","yes");
}

function moderatoren(id){ 
	// popwin("team/pop_m_"+id+".jhtml","mod","400","400","yes");
	// popwin1(id,"mod","400","400","yes");
	popwin2(id,"mod","400","400","yes");
}

function redaktion(id){ 
	// popwin("team/pop_r_"+id+".jhtml","red","400","400","yes");
	// popwin(id,"red","400","400","yes");
	popwin2(id,"red","400","400","yes");
}

function videostream(id,sendedatum){
	popwin("/tv/aks/stream/pop_videostream_"+id+".jhtml?val="+sendedatum,"vid","400","400","no");
}

function abstimmen(id){ 
	popwin("surftipps/pop_abstimmen.jhtml?ref="+id,"vote","400","300","no");
}

// browserfenster öffnen

var w = 800, h = 600;
if (document.all || document.layers){
	w = screen.availWidth;
	h = screen.availHeight;
}else{
	w=screen.width;
	h=screen.height;
}

// pfad = document.location.pathname.substring(0,document.location.pathname.indexOf('tv'));

// var rooturl=pfad+"tv/aks/";
// var rooturl = "/tv/aks/stream/";
// var rooturl = "http://wwwtest04.wdr.de/tv/config/dynamo/aks/";
// var rooturl = "http://"+window.location.host+"/tv/aks/stream/";  
var rooturl = "http://"+window.location.host;

function popwin(docurl, name, popW, popH, scrolling){
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(rooturl+docurl, 'aks'+name,'width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=' + scrolling);
}
function popwin1(docurl, name, popW, popH, scrolling){ 
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	// alert(rooturl+docurl);
	 window.open(rooturl+docurl, 'aks'+name,'width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=' + scrolling);
}
function popwin2(docurl, name, popW, popH, scrolling){ 
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(docurl, 'aks'+name,'width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=' + scrolling);
}
function openQuiz(uri) {
	var w = window.open(uri,"quiz","width=617,height=500,menubar=1,location=0,resizable=1,status=1,scrollbars=1");
}
//-->
