//  You don't need to change anything in this function:

function xmlhttpPost(strURL) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepage(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(getquerystring());
}

//   The following function obtains two variables from your form (email and message) 
//   and builds a string that gets sent to your PHP script.  Change this function to
//   obtain whatever fields you want from your form.

function getquerystring() {
    //var form = document.forms['emailSub'];
   // var email = form.email.value;
    //var message = form.message.value;
    //qstr = 'email=' + escape(email) + '&message=' + escape(message); 
    qstr = '1';
    return qstr;
}

function updatepage(str){
    document.getElementById("contentLYR-ar").innerHTML = str;


}

function commonActions()
{
   document.getElementById('contentLYR-ar').innerHTML= '<div style=\'position:absolute; top:230; left: 7;\'> <img src= \'images/ajax-loader2.gif\' alt= \'Loading data, please wait...\'><\div>';
   document.getElementById('menu').style.display = 'block';
   document.getElementById('logo-small').style.display = 'block';
   document.getElementById('contentLYR-ar').style.width = '600px';
   //document.getElementById('download').style.display = 'none';
}

function loadNews()
{
	commonActions();   
   javascript:xmlhttpPost('news.htm');
}

function loadAbout()
{
	commonActions();   
	
	javascript:xmlhttpPost('about.htm');
}

function loadProjects()
{
	commonActions();   
	
	javascript:xmlhttpPost('projects.htm');
}

function loadInvestments()
{
	commonActions();
	
   javascript:xmlhttpPost('investments.htm');
}

function loadContact()
{
	commonActions();
   javascript:xmlhttpPost('contact.htm');
}

function loadCareers()
{
	commonActions();
   javascript:xmlhttpPost('career_form.htm');
}

function loadCareerForm()
{
	commonActions();
   javascript:xmlhttpPost('career_form.htm');
}


function loadTowers()
{
	commonActions();

   javascript:xmlhttpPost('towers.php');
}

function loadSearch()
{
	commonActions();
   javascript:xmlhttpPost('search.htm');
}

function loadSearchResults()

{
	commonActions();

   javascript:xmlhttpPost('search_news.php');
}

function loadRealestate()
{
	commonActions();

   javascript:xmlhttpPost('realestate.htm');
}

function loadRealestates()
{
	commonActions();

   javascript:xmlhttpPost('realestates.htm');
}


function loadLive()
{
	commonActions();
   javascript:xmlhttpPost('live.htm');
}

function loadMedia()
{
	commonActions();

   javascript:xmlhttpPost('media.htm');
}

function loadMediaCenter()
{
	commonActions();

   javascript:xmlhttpPost('media_new.htm');
}


function loadSiteMap()
{
	commonActions();

   javascript:xmlhttpPost('site_map.htm');
}

