
      //---------------------------------------------------------------------//
      // This file is automatically generated.  Any changes here will be     //
      // overwriten by WP-Greet-Box configuration options.                   //
      //---------------------------------------------------------------------//

      var wpgb_cookie_exp = 365;
      var wpgb_greetings = new Array();
    
        var wpgb_default_timeout = 14400;
        var wpgb_default_greeting = '<div id="greet_block"><div class="greet_block"><div class="greet_text"><div class="greet_image"><img src="http://vistadesktopthemes.com/wp-content/plugins/wp-greet-box/images/rss_icon.png"/></div>Hello there! If you are new here, you might want to <a href="http://vistadesktopthemes.com/feed/rss/" rel="nofollow"><strong>subscribe to the RSS feed</strong></a> for free updates!</div><div class="greet_block_close"><a onclick="wpgb_close()">X</a></div></div><div style="clear:both"></div></div>';
      
          wpgb_greetings["del.icio.us"] = new Array();
          wpgb_greetings["del.icio.us"]["message"] = '<div id="greet_block"><div class="greet_block"><div class="greet_text"><div class="greet_image"><img src="http://vistadesktopthemes.com/wp-content/plugins/wp-greet-box/images/delicious_icon.png"/></div>Hello fellow <strong>del.icio.us</strong> user! Feel free to <a href="http://del.icio.us/post?url='+escape(window.location.href)+'&title='+escape(document.title)+'" rel="nofollow"><strong>bookmark this page</strong></a> for future reference if you like it!</div><div class="greet_block_close"><a onclick="wpgb_close()">X</a></div></div><div style="clear:both"></div></div>';
        wpgb_greetings["del.icio.us"]["timeout"] = 0;
          wpgb_greetings["digg.com"] = new Array();
          wpgb_greetings["digg.com"]["message"] = '<div id="greet_block"><div class="greet_block"><div class="greet_text"><div class="greet_image"><img src="http://vistadesktopthemes.com/wp-content/plugins/wp-greet-box/images/digg_icon.png"/></div>Hello fellow <strong>Digger</strong>! If you like this page, please <a href="http://digg.com/submit?url='+escape(window.location.href)+'&title='+escape(document.title)+'" rel="nofollow"><strong>digg it</strong></a>!</div><div class="greet_block_close"><a onclick="wpgb_close()">X</a></div></div><div style="clear:both"></div></div>';
        wpgb_greetings["digg.com"]["timeout"] = 0;
          wpgb_greetings["google.com"] = new Array();
          wpgb_greetings["google.com"]["message"] = '<div id="greet_block"><div class="greet_block"><div class="greet_text"><div class="greet_image"><img src="http://vistadesktopthemes.com/wp-content/plugins/wp-greet-box/images/google_icon.png"/></div>Welcome <strong>Googler</strong>! If you find this page useful, you might want to <a href="http://vistadesktopthemes.com/feed/rss/" rel="nofollow"><strong>subscribe to the RSS feed</strong></a> for updates on this topic.</div><div class="greet_block_close"><a onclick="wpgb_close()">X</a></div></div><div style="clear:both"></div></div>';
        wpgb_greetings["google.com"]["timeout"] = 1440;
          wpgb_greetings["stumbleupon.com"] = new Array();
          wpgb_greetings["stumbleupon.com"]["message"] = '<div id="greet_block"><div class="greet_block"><div class="greet_text"><div class="greet_image"><img src="http://vistadesktopthemes.com/wp-content/plugins/wp-greet-box/images/stumbleupon_icon.png"/></div>Hello fellow <strong>Stumbler</strong>! Please <a href="http://www.stumbleupon.com/submit?url='+escape(window.location.href)+'&title='+escape(document.title)+'" rel="nofollow"><strong>give me a thumbs up</strong></a> if you like this page!</div><div class="greet_block_close"><a onclick="wpgb_close()">X</a></div></div><div style="clear:both"></div></div>';
        wpgb_greetings["stumbleupon.com"]["timeout"] = 0;
          wpgb_greetings["technorati.com"] = new Array();
          wpgb_greetings["technorati.com"]["message"] = '<div id="greet_block"><div class="greet_block"><div class="greet_text"><div class="greet_image"><img src="http://vistadesktopthemes.com/wp-content/plugins/wp-greet-box/images/technorati_icon.png"/></div>Hello fellow <strong>Technorati</strong> user! Please <a href="http://technorati.com/faves?add='+escape(window.location.href)+'&title='+escape(document.title)+'" rel="nofollow"><strong>favorite this blog</strong></a> if you like it!</div><div class="greet_block_close"><a onclick="wpgb_close()">X</a></div></div><div style="clear:both"></div></div>';
        wpgb_greetings["technorati.com"]["timeout"] = 0;
          wpgb_greetings["twitter.com"] = new Array();
          wpgb_greetings["twitter.com"]["message"] = '<div id="greet_block"><div class="greet_block"><div class="greet_text"><div class="greet_image"><img src="http://vistadesktopthemes.com/wp-content/plugins/wp-greet-box/images/twitter_icon.png"/></div>Hello fellow <strong>Twitter</strong> user! Please <a href="http://twitthis.com/twit?url='+escape(window.location.href)+'&title='+escape(document.title)+'" rel="nofollow"><strong>Twit this post</strong></a> if you like it, or <a href="http://twitter.com/oliversk" rel="nofollow"><strong>follow me</strong></a> on Twitter if you find me interesting.</div><div class="greet_block_close"><a onclick="wpgb_close()">X</a></div></div><div style="clear:both"></div></div>';
        wpgb_greetings["twitter.com"]["timeout"] = 0;
          wpgb_greetings["yahoo.com"] = new Array();
          wpgb_greetings["yahoo.com"]["message"] = '<div id="greet_block"><div class="greet_block"><div class="greet_text"><div class="greet_image"><img src="http://vistadesktopthemes.com/wp-content/plugins/wp-greet-box/images/rss_icon.png"/></div>Welcome fellow <strong>Yahooligan</strong>! If you find this page useful, you might want to <a href="http://vistadesktopthemes.com/feed/rss/" rel="nofollow"><strong>subscribe to the RSS feed</strong></a> for updates on this topic.</div><div class="greet_block_close"><a onclick="wpgb_close()">X</a></div></div><div style="clear:both"></div></div>';
        wpgb_greetings["yahoo.com"]["timeout"] = 1440;
      function wpgb_get_cookie(c_name) {
        if (document.cookie.length>0) {
          c_start=document.cookie.indexOf(c_name + "=");
          if (c_start!=-1) {
            c_start=c_start + c_name.length+1;
            c_end=document.cookie.indexOf(";",c_start);
            if (c_end==-1) c_end=document.cookie.length;
            return unescape(document.cookie.substring(c_start,c_end));
          }
        }
        return "";
      }
      
      function wpgb_set_cookie(c_name,value,expiredays) {
        var exdate = new Date();
        exdate.setDate(exdate.getDate()+expiredays);
        document.cookie=c_name+ "=" +escape(value)+";path="+"/"+
        ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
      }
      
      function wpgb_delete_cookie ( c_name )
      {
        var now = new Date ();
        now.setTime ( now.getTime() - 1 );
        document.cookie = c_name += "=; expires=" + now.toGMTString();
      }
      
      function wpgb_close() {
        var wpgb_el = document.getElementById("greet_block");
        if(wpgb_el)
          wpgb_el.style.display = "none";
      }

      function wpgb_get_delta(ref) {
        var visit_delta;
        var visit_last = wpgb_get_cookie("wpgb_visit_last-"+ref);

        if(visit_last==null || visit_last=="") {
          visit_delta = -1;
        }
        else {
          visit_last = new Date(visit_last);
          visit_delta = Math.round((new Date() - visit_last)/(1000 * 60));
        }
        return visit_delta;
      }
      
      function wpgb_display() {
        for(var i in wpgb_greetings){
          if(document.referrer.indexOf(i) > -1) {
            var visit_delta = wpgb_get_delta(i);

            wpgb_set_cookie("wpgb_visit_last-"+i,new Date(),wpgb_cookie_exp);
            if(visit_delta < 0 || visit_delta >= wpgb_greetings[i]["timeout"]) {
              document.write(wpgb_greetings[i]["message"]);
              return;
            }
          }
        }

        var visit_delta = wpgb_get_delta("default");

        wpgb_set_cookie("wpgb_visit_last-default",new Date(),wpgb_cookie_exp);
        if(wpgb_default_greeting != null && wpgb_default_greeting != ""
          &&(visit_delta < 0 || visit_delta >= wpgb_default_timeout)
        ) {
          document.write(wpgb_default_greeting);
        }
      }
      
      wpgb_display();
    
