function mobileAlert(param,id) {
	var aff = false;
	var fontSize = 44;
	var baseurl = 'http://m.branchez-vous.com/';	
	if((navigator.userAgent.match(/(iPhone|iPod)/i))){
		var mot = 'iPhone';
		var url = baseurl + 'html.php';				
		var aff = true;
	} else if((navigator.userAgent.match(/(blackberry9530|android)/i))){ //blackberry storm
		var mot = 'mobile';
		var fontSize = 38;
		var url = baseurl + 'html.php';				
		var aff = true;
	} else if((navigator.userAgent.match(/(mobi|blackberry|opera mini|nokia|sony|mot|ericsson)/i))){
		var mot = 'mobile';
		var fontSize = 16;
		var url = baseurl + 'xml.php';		
		var aff = true;
		// forcer la redirection
		//document.location.href = url + '?s=' + param + '&id=' + id;
	}	
	
	if(param.length>0)	var url = url + '?s=' + param;
	if(id>0)			var url = url + '&id=' + id;
	
	if(aff) {
		document.write('<style type="text/css">');
		document.write('#mobile { font-family:Arial,Verdana; width:100%; height: 110px; background-color:#333; text-align:center; border-bottom:3px solid #000;}');
		document.write('#mobile A { font-size: '+fontSize+'pt; padding-top:20px; width:100%; height:100%; display:block; color:#999; text-decoration:none; z-index:100;}');
		document.write('#mobile A STRONG { color:#fff; }');
		document.write('</style>');
		document.write('<div id="mobile">');
		document.write('<a href="' + url + '">Accédez &agrave; la version <strong>' + mot + ' &gt;</strong></a>');
		document.write('</div>');
	}
}
