//var rb=null;
function news(){
rb=window.open('newsletter.htm','Newsletter','width=600,height=700,top=0,left=212,scrollbars=yes,resize=yes');
if(rb.window.focus){
setTimeout("rb.window.focus()",500);
}
}

function autopop(){
setTimeout("rundbrief()",6000);
}

var im=null;
function impressum(){
if(!im){
im=window.open('impressum.htm','','width=200,height=250,top=20,left=312');
}
if(im.window.focus){
setTimeout("im.window.focus()",500);
}
}
var awin=null;
function popactor(actor){
awin=window.open(actor+'/'+actor+'.htm','pop','width=600,height=600,top=10,left=100, scrollbars=yes');
if(awin.window.focus){setTimeout("awin.window.focus()",500);};
}

//var rb=null;
var vid=null;
function video(actor){
vid=window.open('../videos/'+actor+'_video.htm','Video','width=600,height=700,top=0,left=212,scrollbars=yes,resize=yes');
if(vid.window.focus){
setTimeout("vid.window.focus()",500);
}
}

if (top.location != location) {
	//console.log($("content"));
}else{
	function appendStyle() {
		var css = document.createElement('style');
		css.type = 'text/css';
		var styles = 'body *,*,span,em { color: #000 !important; background-color:#fff !important;}';
		styles += 'table { width:95% !important;}';

		if (css.styleSheet) css.styleSheet.cssText = styles;
		else css.appendChild(document.createTextNode(styles));

		document.getElementsByTagName("head")[0].appendChild(css);
	}
	window.onload=function(){
		if(document.location.hash=="#print"){
			appendStyle();
			window.print();
			//window.close();
		}else{
			document.location="/";
		}
	}
}

