function sendRequest(url,async,postData,callback) {
	var req = createXMLHTTPObject();var method;if(!req){return;}if(postData){method="POST";}else{method="GET";}req.open(method,url+'?rand='+Math.random(),async);req.setRequestHeader('User-Agent','XMLHTTP/1.0');if(req.overrideMimeType){req.overrideMimeType('text/xml');}if (postData){req.setRequestHeader('Content-type','application/x-www-form-urlencoded');}req.onreadystatechange = function () {
	if (req.readyState != 4){return;} if (req.status != 200 && req.status != 204){return;} if(callback) {callback(req);}}
	if (req.readyState == 4){return;} req.send(postData);}
	var XMLHttpFactories = [
		function () {return new XMLHttpRequest()},
		function () {return new ActiveXObject("Msxml2.XMLHTTP")},
		function () {return new ActiveXObject("Msxml3.XMLHTTP")},
		function () {return new ActiveXObject("Microsoft.XMLHTTP")}];
	function createXMLHTTPObject() {
		var xmlhttp = false;
		for (var i=0;i<XMLHttpFactories.length;i++) {
		try {xmlhttp = XMLHttpFactories[i]();}
		catch (e) {continue;}
		break; }
	return xmlhttp; }


function submenu(which,toDo,ie6) {
	var whichButton = document.getElementById(which+'_button');
	var whichDiv = document.getElementById(which+'_submenu');
	whichDiv.style.marginLeft = '-'+whichButton.offsetWidth+'px';
	if (toDo == 'on') {
		whichDiv.style.display = 'block';
		whichDiv.style.marginBottom = '-'+whichDiv.offsetHeight+'px';
  	whichDiv.style.marginRight = '-'+whichDiv.offsetWidth+'px';
		if (ie6) {
			whichButton.style.background = 'url(\'/images/button_bg_ie6.png\') repeat-x'; }
		else {
    	whichButton.style.background = 'url(\'/images/button_bg.png\') repeat-x'; }
		whichButton.style.color = '#526011'; }
	else if (toDo == 'off') {
		whichDiv.style.display = 'none';
		whichButton.style.background = '';
		whichButton.style.color = '#f7f8f4'; }}

