function BrowserCheck()
{
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns6 = (this.b=="ns" && this.v>4)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck();
ie = (is.ie) ? 1 : 0;
ie4 = (is.ie4) ? 1 : 0;
ie5 = (is.ie5) ? 1 : 0;
ns = (is.ns) ? 1 : 0;
ns4 = (is.ns4) ? 1 : 0;
ns6 = (is.ns6) ? 1 : 0;

text=''
+'<span style=\'font-family: Arial;color:white;font-weight: bold;text-align:center\'>'
+'Attention, ce site est un exemple du savoir faire <a href="" target="_blank" ' +'onclick="window.open(\'http://www.atypix.com\');window.close();" '
+'style=\'font-family: Arial;color:white;font-weight: bold;text-align:center\'>ATYPIX.com</a><br><br>'
+'Il ne constitue pas une offre commerciale !</span>'


function winpopup(url,nom,width,height)
{
	options = 'personalbar=no,toolbar=no,status=no,scrollbars=no,location=no,resizable=yes,menubar=no,titlebar=no';
       if (ns4) {options += ',innerWidth='+width+',innerHeight='+height;}
       else {options += ',Width='+width+',Height='+height;}

	popup = window.open ('',"CarConcept",options);
	popup.resizeTo(width,height);
	popup.focus();
	
	//Rewrite the html in the popup
	popup.document.open();
	popup.document.write( '<html><head><title>'+nom+'</title>\n');
	popup.document.write( '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>\n');
	popup.document.write( '<body bgcolor="#333366" leftMargin="0" topMargin="0" MARGINWIDTH="0" MARGINHEIGHT="0">\n');
	popup.document.write( '<table align="center" height="100%" cellpading=0 cellspacing=0 border=0><tr><td valign="middle">');
	if ( ! url)
	{
	popup.document.write(text);
	}
	else 
	{
	popup.document.write( '<img src="'+url+'" width="'+width+'" height="'+height+'" border="0">\n');
	}
	popup.document.write( '</td></tr></table></body></html>\n');
	popup.document.close();
}
