Add to favorites framed page problem

Hi, I have a script works with opera, firefox and ie but my site contains frames so when I click Add to favorites in internet explorer it adds main.html adress not index.html
I need a code modification so the script can add pre-defined adress, can you help me?

<!–webbot bot=“HTMLMarkup” startspan --><a href=“http://www.freewebtown.com/aymavisi” rel=“sidebar” onclick=“if(document.all && !window.opera){ window.external.AddFavorite(location.href, document.title);return false; }else{ this.title = document.title; }” title=“bookmark this page”>Favorilere Ekle</a><!–webbot