window.addEvent('load', function() {
	if($('getLastCalls')) {
		new Request.HTML({
			url: '?page=lastcalls',
			method: 'get',
			update: 'getLastCalls',
			evalScripts: true,
			onComplete: function(){  }
			}).send();
	}
	if($('getLastMailBox')) {
		new Request.HTML({
			url: '?page=lastmailbox',
			method: 'get',
			update: 'getLastMailBox',
			evalScripts: true,
			onComplete: function(){  }
			}).send();
	}
	if($('getLastNews')) {		
		new Request.HTML({
			url: '?page=getlastnews',
			method: 'get',
			update: 'getLastNews',
			evalScripts: true,
			onComplete: function(){  }
			}).send();
	}
});

window.addEvent('load', function() {
	var xmlHttp = false;
	
	try {
	    xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
	} catch(e) {
	    try {
	        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
	    } catch(e) {
	        xmlHttp  = false;
	    }
	}
	
	if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {
	    xmlHttp = new XMLHttpRequest();
	}
		
	if (xmlHttp) {	
		   
	    xmlHttp.open('GET', '?page=contacts', true);
	    xmlHttp.onreadystatechange = function () {
			
			if($("contactBody")) {
			
				if (xmlHttp.readyState == 4) {
					$("contactBody").style.display = "block";
					
					if($("testremove")) {	        		
						var sp = $("testremove");
						sp.parentNode.removeChild(sp);
						}
					}
				}
			}
	    xmlHttp.send(null);	    
	}
});