function ShowBImg(_ele_id, _location_name, _count, _uri) {
	var div_id = document.getElementById(_ele_id);

	/* Jquery */
	$.ajax({
        type: "POST",
        url: '/ajax/banner/',     // this is the path from above
        data: 'location_name=' + _location_name + '&count=' + _count + '&uri=' + encodeURIComponent(_uri),
        success: function(s) {
            /*var result = $(s.getElementsByTagName('content')[0].firstChild.nodeValue).get(0);
            alert(result);
            if(
                $(s.getElementsByTagName('content')[0].firstChild.nodeValue).find('object').length
            ) {
            } else {*/
                div_id.innerHTML = s.getElementsByTagName('content')[0].firstChild.nodeValue;
            /*}*/
	    }
	});

}

function SwitchBanner(_ele_id, _without_id, _location) {
	var div_id = document.getElementById(_ele_id);

	$.ajax({
	   type: "POST",
	   url: '/ajax/banner/',     // this is the path from above
	   data: 'without=' + _without_id + '&location=' + _location,
	   success: function(s) {
	     div_id.innerHTML = s.getElementsByTagName('content')[0].firstChild.nodeValue;

			setTimeout("SwitchBanner('" + _ele_id + "', '" + s.getElementsByTagName('id')[0].firstChild.nodeValue + "', '" + _location + "')", delay);
	   }
	});
}

