<!--

function ScanCookie(variable)
{
 cook=document.cookie;
 variable+="=";
 place=cook.indexOf(variable,0);
 if(place<=-1) return("0");
 else
 {
  end=cook.indexOf(";",place)
  if(end<=-1) return(unescape(cook.substring(place+variable.length,cook.length)));
  else return(unescape(cook.substring(place+variable.length,end)));
 }
}

if (top.frames.length!=0){
	top.location=self.document.location;
	self.moveTo(0,0)
	self.resizeTo(screen.availWidth,screen.availHeight)
}

window.status='';

function mailpage()
{
 chaine_mail = "mailto:?subject= Va voir ce site ! : " + document.title;
 chaine_mail += "&body= Je te recommande cette page : " + document.title;
 chaine_mail += ". Consultable à l'adresse : " + location.href;
 location.href = chaine_mail;
}

function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }

    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].bgColor = thePointerColor;
    }

    return true;
}

function clk(id)
{
	(new Image()).src="goto.php?id="+id;
	return true;
}

function popunder() {
var url = new Array(); 
url[0] = "out.php"; 
var url_trade = url[0];
my_window =  window.open(url_trade,"mirtille");
self.focus();
}

function pundercook()
{
	if(ScanCookie("warningpassed")==0 && ScanCookie("punderpassed")==0)
	{
	 document.cookie="punderpassed=yes;path=/;";
	 popunder();
 	}
}

//-->