/* * js/network-listing.js 21/10/2007 06:10am */

var globs = "apikey=nicowebv3";
var map = null;
var uriBase = document.getElementById("urlIdentifier").getAttribute("content");
var uriWs = uriBase+"ws/";
var urlImg = uriBase+"images/";
var urls = new Array();
urls['gpfn'] = uriWs+"fre/gpfn-0.1.php";
urls['glfn'] = uriWs+"fre/glfn-0.1.php";

/* * initBoxes () */
function initBoxes() {
	getHSPays();
	
	return true;
}

/* * loadMapPlans ( string domID2Update , int NID ) */
function loadMapPlans (zoneToUpdate,nid) {
	
	// # enclenchement de img load
	//$('boxTPLoad').style.display='inline';
	// # byTP
	var opts = { method : 'post' , parameters : globs+"&nid="+nid,
		onSuccess : function (r) { 
			//$('boxTPLoad').style.display='none'; 
			}
		/*onFailure : function (r) { alert(r.responseText); }, 
		onComplete : function (r) { alert(r.responseText); }*/
	}
	new Ajax.Updater(zoneToUpdate,urls['gpfn'],opts);
}

/* * loadLines ( string domID2Update , int NID ) */
function loadLines (zoneToUpdate,nid) {
	
	// # enclenchement de img load
	//$('boxTPLoad').style.display='inline';
	// # byTP
	var opts = { method : 'post' , parameters : globs+"&nid="+nid,
		onSuccess : function (r) { 
			//$('boxTPLoad').style.display='none'; 
			}
		/*onFailure : function (r) { alert(r.responseText); }, 
		onComplete : function (r) { alert(r.responseText); }*/
	}
	new Ajax.Updater(zoneToUpdate,urls['glfn'],opts);
}