addEvent(window, "load", showAboutText);

var url="";
var needsProcess=null;
var anchor=null;

function showAboutText(){
 if(needsProcess==null){
  needsProcess=new Boolean(true);
 }
 if(needsProcess){
  url="/about_us/aboutus-ourcompany.html";
  var contentName=getURLParam("content");
  if(contentName!=""){
    if(contentName=="company"){url="/about_us/aboutus-ourcompany.html";}
    if(contentName=="auctions"){url="/about_us/aboutus-advauctions.html";}
    if(contentName=="advtestimonials"){url="/about_us/aboutus-advtestimonials.html";}
    if(contentName=="pubtestimonials"){url="/about_us/aboutus-pubtestimonials.html";}
    if(contentName=="perinquiry"){url="/about_us/aboutus-perinquiry.html";}
    if(contentName=="partners"){ url="/about_us/aboutus-partners.html";}
    if(contentName=="press"){url="/about_us/aboutus-pressroom.html";}
  }
  callForDisplay(url,"contentDiv");
 }
}



  function captureHTML(){
   var html = "";
   var contentDiv = document.getElementById("contentDiv");
   if(REQ.readyState==4 && needsProcess){
   if (REQ.status == 200) {
   html = REQ.responseText;
   contentDiv.innerHTML = html;
   if(anchor!=null){
   var el=document.getElementById(anchor);
   //alert(el);
   el.scrollIntoView(true);
   }
   }else {

   contentDiv.innerHTML = "Error: cannot load page...";
   }
   needsProcess=false;
   }
  }




