/*
	sbpopup.js
	Einbinden des Vaillant Systemfinders in Websites als Link zu einem Popup.
	(c) 2007 Vaillant Deutschland GmbH & Co. KG, Remscheid, Germany
	Made by mai-multimedia.de
*/

var SB2GOURL = 'http://vaillant-tools.de/sf2go/index.php';

function sf2gopopup(w,h) {
	var l=10, t=10;
	if (!w) w=(screen.width ? (screen.width>900 ? 800 : 700) : 700);
	if (!h) h=(screen.height ? (screen.height>=880 ? 880 : screen.height-20) : 580);
	if (screen.width) {
		l=(screen.width)?(screen.width-w)/2:0;
		t=(screen.height)?(screen.height-h)/2:0;
	}
	var p=window.open(SB2GOURL, "sf2gopopup", "toolbar=no,scrollbars=yes,dependent=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,width="+w+",height="+h+",left="+l+",top="+t+",screenX="+l+",screenY="+t);
	if (p) {p.opener=self;p.focus();}
}

document.writeln('<a href="http://vaillant-tools.de/sf2go/index.php" target="sf2go" onclick="sf2gopopup();return false">Vaillant Systemfinder</a>');

