// JavaScript Document

function openPopup (f,w,h,pad,c){
	if(!pad){var pad=25};
	if(!c){var c="FFFFFF"};
	var w2=w+pad;
	var h2=h+pad;
	var a='';

	a+=('<html><head><title>Brustkrebs Deutschland e.V.</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>');
	a+=('<body bgcolor="#'+c+'" onload="self.focus()">');
	a+=('<center><img src="'+f+'" width="'+w+'" height="'+h+'">');
	a+=('</img></center></body></html>');

	var W=open('','','width='+w2+',height='+h2+',resizable');
	void(W.document.writeln(a));
	void(W.document.close());

}

function openSwfWindow (f,w,h,pad,c){
	if(!pad){var pad=50};
	if(!c){var c="FFFFFF"};
	var w2=w+pad;
	var h2=h+pad;
	var a='';

	a+=('<html><head><title>Brustkrebs Deutschland e.V.</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>');

	a+=('<body bgcolor="#'+c+'" onload="self.focus()">');
	a+=('<center><table width="98%" height="98%" border="0" cellspacing="0" cellpadding="0">');
	a+=('<tr><th><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'">');
	a+=('<param name="menu" value="false">');
	a+=('<param name=movie value="'+f+'.swf">');
	a+=('<param name=quality value=high>');
	a+=('<embed src="'+f+'.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" showmenu="false">');
	a+=('</embed>');
	a+=('</object></th></tr></table></center></body></html>');

	var W=open('','pp','width='+w2+',height='+h2+',resizable');
	void(W.document.writeln(a));
	void(W.document.close());

}

//<a href="#" onClick="openSwfWindow('url/to/file',width,height)">name</a><br>

