﻿
        function bookmarksite(){
            title = self.document.title
            url = self.location.href

            if (window.sidebar) // ff
	            window.sidebar.addPanel(title, url, "");

            else if(window.opera && window.print) { // op
	            var elem = document.createElement('a');
	            elem.setAttribute('href',url);
	            elem.setAttribute('title',title);
	            elem.setAttribute('rel','sidebar');
	            elem.click();
            } 

            else if(document.all) // ie
	            window.external.AddFavorite(url, title);
        }
        function tellFriend() {
            title=escape(self.document.title)
            url=escape(self.location.href)
            self.location.href="/sendtoafriend.aspx?title=" + title + "&url=" + url
        }
        function linkToUs(){
            title=escape(self.document.title)
            url=escape(self.location.href)
            self.location.href="/linktous.aspx?title=" + title + "&url=" + url
        }
        function buyIt(genus) {
        var sBuyThisLink = "http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=19943&merchantID=749&programmeID=2476&mediaID=0&tracking=fmp-" + genus +  "&url=www.gardeningexpress.co.uk/plantCatalogue.asp?objecttradersearch=1&Keywords=" + genus
        //var sBuyThisLink = "http://clkuk.tradedoubler.com/click?p(979)a(1124328)g(74608)epi(fmp-" + genus + ")url(http://www.crocus.co.uk/search/_/search." + genus + "/)"
        self.location.href=sBuyThisLink
        }

        //if (window!= window.top) top.location.href = location.href;
        
        //turn off rightclick      
//        function clickIE() {if (document.all) {(message);return false;}} 
//        function clickNS(e) {if 
//        (document.layers||(document.getElementById&&!document.all)) { 
//        if (e.which==2||e.which==3) {(message);return false;}}} 
//        if (document.layers) 
//        {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} 
//        else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} 
//        document.oncontextmenu=new Function("return false")        