/*
The following product is the intellectual property of Jerold Dodds and AWeb L.L.C.
Unauthorized usage of program code and files is strictly prohibited without the 
explicitly expressed written consent of its author. Usage is defined as the 
Copying, Modification, Inclusion and/or Distribution in part or as whole.
For more information regarding code Licensing please consult: http://www.a-webco.net/
*/
function ajaxManager(){
	var args = ajaxManager.arguments;
	switch (args[0]){
		case "load_page":
			if (document.getElementById){
				var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
//				var cover_div = document.getElementById("cover_overlay");
				
			}
			if (x){
				x.onreadystatechange = function(){
					if (x.readyState == 4 && x.status == 200){
							el = document.getElementById(args[2]);
							el.innerHTML = x.responseText;
						
							if(args[3]=="on")sIFR.replaceElement(named({sSelector:"h2", sFlashSrc:"swf/swiss721.swf", sColor:"#f5c47a", sLinkColor:"#f5c47a", sBgColor:"#741613", sHoverColor:"#c69057",sWmode:"transparent"}));
							if(args[4]=="print")window.print();
					}
				}
				x.open("GET", args[1], true);
				x.send(null);
			}
			break;
		case "start_up":
			//ajaxManager('load_page', 'showMe.xml', 'contentLYR');
			break;
	}
}


