function loadRss()
{
	document.getElementById('contenucarte').innerHTML = "<b>Loading...</b>";
	document.getElementById('listeminiaturesphotos').innerHTML = "<b>Loading...</b>";
	//doAjaxGet('http://service01.soft4mobile.com/ParisZoomTV.Menu_SelectAll.rest?locid=467', 'outputRss(xmlResponse)');
	doAjaxGet('menus.aspx', 'outputRss(xmlResponse)');
}

function outputRss(xmlO)
{


	var row= xmlO.documentElement.getElementsByTagName("Row");
	var txt = '<table width="680px"><tr height="429px" valign="top"><td width="340px"><BR/>';
	var flag=0;

//affichage Formules
	for (i=0; i<row.length; i++)
	{          
		var MenuPos="";
        var CatName="";
        var MenuName="";
        var MenuPrice="";
        var IsPDJ="";
        var IsFormule="";
	    
	    try
	    {
	    	MenuPos = row[i].getAttribute("MenuPos");
			CatName = row[i].getAttribute("CatName");
			MenuName = row[i].getAttribute("MenuName");
			MenuPrice = row[i].getAttribute("MenuPrice");
			IsPDJ = row[i].getAttribute("IsPDJ");
			IsFormule = row[i].getAttribute("IsFormule");
		}
        catch (ex)  { };                                              

		if ((i>=((row.length)/2)) && flag==0 && MenuPos==1)
		{
			txt += '<BR/></td><td width="340px">';
			flag=1;
		}

		if (MenuPos==1 && IsFormule==1)
			txt += '<center class="titrecarte">'+'Nos Formules'+'</center>'+'<BR>';
		else if (MenuPos==1 && IsPDJ==1)
			txt += '<center class="titrecarte">'+'Nos Plats du Jour'+'</center>'+'<BR>';
		else if (MenuPos==1)
			txt += '<BR/><center class="titrecarte">'+CatName+'</center>'+'<BR>';
		
			
	    if (MenuPrice!=0)
			txt += '<center><table class="carte"><tr><td width="200px">'+MenuName+'</td><td width="50px" align="right">'+ (parseFloat(MenuPrice.replace(/,/g,"."))).toFixed(2) +' €</td></tr></table></center>';
		else
			txt += '<center><table class="carte"><tr><td width="250px">'+MenuName+'</td></tr></table></center>';
	
		
	}
	
	txt += '</td></tr></table>';
	
    document.getElementById("contenucarte").innerHTML=txt;

//Maintenant Charge le Reste (Miniatures Photos)
	doAjaxGet('photos.aspx', 'outputImg(xmlResponse)');
}

function outputImg(xmlO)
{
	var row= xmlO.documentElement.getElementsByTagName("Row");
	var txt ='<font size="1">';


//affichage miniatures
	for (i=0; i<row.length; i++)
	{          
		var BUUID="";
        var BW="";
        var BH="";
		var PhotoId="";
   	    
	    try
	    {
	    	BUUID = row[i].getAttribute("BUUID");
			BW = row[i].getAttribute("BW");
			BH = row[i].getAttribute("BH");
			PhotoId = row[i].getAttribute("PhotoId");
		}
        catch (ex)  { };                                              

		if (PhotoId!=0)
			txt += '<img class="photoslittle" src="http://www.pariszoomtv.com/img.php?ID='+BUUID+'" width="84px" onClick="document.getElementById(\'bigimg\').src=this.src" onMouseOver="this.style.border=\'3px solid #db9a0e\'" onMouseOut="this.style.border=\'3px solid #ffffff\'"/>';
			
		if ((i%2)==0)	
			txt += '&nbsp;&nbsp;';
		else
			txt += '<BR/><BR/>';

	}
	
			txt += '</font>';
    document.getElementById("listeminiaturesphotos").innerHTML=txt;
	
}