Hi
I want to redirect people coming from certain pages to a page on my site especially for them. I always get this error:

Error: setting a property that has only a getter


This is the script:

Code:
function redirect() {
var s=0;
var spirit= new Array(4);
spirit[0]="http://www.theorderoftime.com/personal/c/eastern.html";
spirit[1]="http://www.plotinus.com/links8_metaphysical.htm"
spirit[2]="http://www.aham.com/experience/links.html"
spirit[3]="http://www.synchronicity.org/shopcontent.asp-type-spiritualresources"

if   (document.referrer = spirit[s]) { 
      location.href = "http://www.wideopenwin.com/index.php?NodeID=235";
}
}

addLoadListener(redirect);
What am i doing wrong?