Array.prototype.inArray = function (value)
// Returns true if the passed value is found in the
// array.  Returns false if it is not.
{
    var i;
    for (i=0; i < this.length; i++) {
        // Matches identical (===), not just similar (==).
        if (this[i] === value) {
            return true;
        }
    }
    return false;
};


function stopError() {
  return true;
}

//window.onerror = stopError;



function gxo2 () {document.location.replace('/'); window.event.cancelBubble=true; return false;}

function ow (url,name,x,y,scroll) {
	window.open(url,name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scroll+',resizable=yes,width='+x+',height='+y);
}

function carte(ur) {
	go3(ur,'map',"height=530,width=480,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=no");
}
function go3(url,n,params) {window.open(url,n,params);}
function go(url,n,x,y) {window.open(url,n,"height="+y+",width="+x+",status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");}
function goimvi (url)
{
 	o=window.open(url,"immovision_lancement","height=400,width=500,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no");
 //	setTimeout('o.close();',10000);
}

function pubfill468() {
	var is4 = false;
	var htmban='';

	var o =document.getElementById("pubmgn728");
	if (o) {
		var all=o.all;
		var l=all.length;
		for (var i = 0 ; i < l ; i++)
			if (all[i].width==468) is4=true;
		if (is4) {
				switch (Math.round(Math.random()*1)) {
				case 1:
					htmban='<a href="/argus,index.htm"><img src="/z/portail/sv5/images/pubs/72820/argus.gif" border=0></a>';
					break;
				default:
					htmban='<a href="/s_offredecredit/eSRubrf.htm"><img src="/z/portail/sv5/images/pubs/72820/financement.gif" border=0></a>';
				}
			o.innerHTML=htmban+'<br>'+o.innerHTML;
			o.innerHTML+=getPubDr();
		}
	}
}
function getPubDr () {
	var htmbanb='';
	switch (Math.round(Math.random()*10)) {

		case 1,2:
		htmbanb='<a href="/s_overture.htm?search=adsl" style="margin-left:4px;"><img src="/z/portail/sv5/images/pubs/468d/adsl.gif" border=0></a>';
		break;	
		case 3,9:
		htmbanb='<a href="/s_overture.htm?search=ordinateurs" style="margin-left:4px;"><img src="/z/portail/sv5/images/pubs/468d/ordinateurs.gif" border=0></a>';
		break;	
		case 4:
		htmbanb='<a href="/s_overture.htm?search=rencontres" style="margin-left:4px;"><img src="/z/portail/sv5/images/pubs/468d/rencontres.gif" border=0></a>';
		break;	
		case 5,8:
		htmbanb='<a href="/s_overture.htm?search=vacances" style="margin-left:4px;"><img src="/z/portail/sv5/images/pubs/468d/vacances.gif" border=0></a>';
		break;	
		default:
		htmbanb='<a href="/alerte,index.htm" style="margin-left:4px;"><img src="/z/portail/sv5/images/pubs/468d/alerte.gif" border=0></a>';
		break;	
	}
	return htmbanb;
}

