stdfx = new Object();
stdfx.Init = function() {
	this.baseURL = document.getElementsByTagName('base')[0].href;
	this.baseJsURL = this.baseURL + 'js/';
	this.AjaxObj = this.AjaxInit();
	this.is_include = new Array();
}

stdfx.addEvent = function(node, evtType, func) {
	if (node.addEventListener) {
		node.addEventListener(evtType, func, false);
		return true;
	} else if (node.attachEvent ) {
		return node.attachEvent("on" + evtType, func);
	} else {
		return false;
	}
}


stdfx.AjaxInit = function() {
	var ajax_obj = false;
	/* Create a new XMLHttpRequest object to talk to the Web server */
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	try {
		ajax_obj = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			ajax_obj = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e2) {
			ajax_obj = false;
		}
	}
	@end @*/
	if (!ajax_obj && typeof XMLHttpRequest != 'undefined') {
		ajax_obj = new XMLHttpRequest();
	}
	return ajax_obj;
}

stdfx.Init();

ajax = new Object();

ajax.AjaxReq = function (url) {
	stdfx.AjaxObj.open("GET", stdfx.baseURL+url, false);
	stdfx.AjaxObj.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
	stdfx.AjaxObj.send(null);
	return stdfx.AjaxObj.responseText;
}

ajax.getToDiv = function (url, tObj) {
	text = this.AjaxReq (url);
	document.getElementById(tObj).innerHTML = text;
}
