var sc_version = '0.25b - 11-12-2008';
///////////////////////////////////////////////
// spamCle@ner.org JS - (c)2007-2008 Jerome Bruandet
// http://spamcleaner.org
///////////////////////////////////////////////

///////////////////////////////////////////////
// Affiche une table blanche et/ou le petit logo et/ou le copyright:
function version(table,image,copyright) {
	var ct = new Date();
	var cy = ct.getFullYear();
	var path = 'http://spamcleaner.net/fr/';
	if (table) {
		document.write('<table style="border: 1px solid #666666;" bgcolor="white" cellpadding=3 cellspacing=0 width="100%">');
		document.write('<tr><td>');
	}
	if (image) {document.write('<center><img src="'+path+'gif/sclogosmall.gif" width="210" height="35"></center>');}
	if (copyright) {
		document.write('<center><font class="tinyblack">')
		document.write('&copy;2007-'+cy+' Jérôme Bruandet - <a class=links href=http://spamcleaner.net target=_blank>spamCle@ner.net</a><br>');
		document.write('<a class=links href="javascript:popup(\''+path+'update.html\',640,480)">[v.'+sc_version+']</a></font></center>');
	}
	if (table) {
		if ((!image) & (!copyright)) {document.write('&nbsp;');}
		document.write('</td></tr></table>');
	}
}
///////////////////////////////////////////////
// Affiche une fenetre pop-up
// scroll_bar: 0=oui, 1=non ;P
function popup(url,width,height,scroll_bar) {
	height=height+20;
	width=width+20;
	var str = "height=" + height + ",innerHeight=" + height;
	str += ",width=" + width + ",innerWidth=" + width;
	if (window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;
		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
		if (scroll_bar) {
			str += ",scrollbars=no";
		}else {
			str += ",scrollbars=yes";
		}
		str += ",status=no,location=no,resizable=yes";
	}
	win = open(url, 'SpamScleaner', str);
	setTimeout("win.window.focus()",1300);
}
