
   function showMenu(obj){
     document.getElementById("categories").style.top = (obj.offsetTop+26)+"px";
     document.getElementById("categories").style.left = (obj.offsetLeft)+"px";

     document.getElementById("categories").style.display = "";
         
   }
   function closeMenu(){
     document.getElementById("categories").style.display = "none";

   }

function HTTPSocket(URL, method){
   this.url = URL;
   this.method = method;
   this.postValues = Array();
   this.postKeys = Array();
   this.post = Array();
   this.i = 0;
  if(window.XMLHttpRequest){
     this.xmlhttp = new XMLHttpRequest();
  } else {
    this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 
}
 
 
 
HTTPSocket.prototype.setVar = function(key, value){
  this.postKeys[this.i] =  key;
  this.postValues[this.i] =  value;
  this.post[this.i] = ""+key+"="+escape(value)+"";
  this.i++;
 
}
HTTPSocket.prototype.send = function(){
  post = this.post.join("&");
 
  this.xmlhttp.open(this.method, this.url, false);
  if(post){
 
    this.xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    this.xmlhttp.setRequestHeader("Content-length", post.length);
    this.xmlhttp.setRequestHeader("Connection","close");
    this.xmlhttp.send(post);
    
  } else {
    this.xmlhttp.send(null);
  }
  
 
}
HTTPSocket.prototype.getBody = function(){
 return this.xmlhttp.responseText;
}


 function CreateBookmarkLink() {
    title = "Horny Porn Movies"; 
    url = "http://www.hornypornmovies.com/";
    
    isIE = navigator.userAgent.toUpperCase().indexOf('MSIE') >= 0;
    isFF = navigator.userAgent.toUpperCase().indexOf('FIREFOX') >= 0;
    
    if (isFF) {
        window.sidebar.addPanel(title, url,"");
    } else if (isIE) {
        window.external.AddFavorite( url, title); 
    } else {
        return true;
    }
 }

