

function getPage(theRel){
		$.ajax({
			url: url,
			cache: false,
			success: function(html){
					$("#content").html(html);
			}
		});
	}



function letsgo(val){
	switch(val){
		case "about":
		doAbout();
		SWFAddress.setTitle("Lele - About Us");
			break;
		case "directions":
		doDirections();
		SWFAddress.setTitle("Lele - Directions");
			break;
		case "decor":
		doDecor();
		SWFAddress.setTitle("Lele - Decor");
			break;
		case "calendar":
		doCalendar();
		SWFAddress.setTitle("Lele - Calendar");
			break;
		case "lmenu":
		dolMenu();
		SWFAddress.setTitle("Lele - Menu");
			break;
		case "dmenu":
		dodMenu();
		SWFAddress.setTitle("Lele - Menu");
			break;
		case "feedback":
		doFeedback();
		SWFAddress.setTitle("Lele - Contact Us");
			break;
		default:
			doHome();
		SWFAddress.setTitle("Lele - About Us");
	}
}

function doAbout(){
	$("#page").animate({"opacity": 0}, 200, 'linear', function(){
		$("#page").css({"width":887,"height":430, "left":-35, "top":27});
		$.ajax({
			url: "about.php",
			cache: false,
			success: function(html){
		$("#htmler").html(html);
		$("#page").animate({opacity:1}, 500, 'linear');

			}
		});
	});

}

function doDirections(){
	$("#page").animate({"opacity": 0}, 200, 'linear', function(){
		$("#page").css({"width":887,"height":430, "left":-35, "top":27});
		$.ajax({
			url: "directions.php",
			cache: false,
			success: function(html){
		$("#htmler").html(html);
		$("#page").animate({opacity:1}, 500);
			}
		});
	});

}

function doDecor(){
	$("#page").animate({"opacity": 0}, 200, 'linear', function(){
		$("#page").css({"width":887,"height":430, "left":-35, "top":27});
		$.ajax({
			url: "decor.php",
			cache: false,
			success: function(html){
		$("#htmler").html(html);
		$("#page").animate({opacity:1}, 500);
			}
		});
	});

}

function doCalendar(){
	$("#page").animate({"opacity": 0}, 200, 'linear', function(){
		$("#page").css({"width":887,"height":430, "left":-35, "top":27});
		$.ajax({
			url: "calendar.php",
			cache: false,
			success: function(html){
		$("#htmler").html(html);
		$("#page").animate({opacity:1}, 500);
			}
		});
	});

}

function dolMenu(){
	$("#page").animate({"opacity": 0}, 200, 'linear', function(){
		$("#page").css({"width":795,"height":1400, "left":2, "top":27});
		$.ajax({
			url: "lmenu.php",
			cache: false,
			success: function(html){
		$("#htmler").html(html);
		$("#page").animate({opacity:1}, 500);
			}
		});
	});

}

function dodMenu(){
	$("#page").animate({"opacity": 0}, 200, 'linear', function(){
		$("#page").css({"width":795,"height":1400, "left":2, "top":27});
		$.ajax({
			url: "dmenu.php",
			cache: false,
			success: function(html){
		$("#htmler").html(html);
		$("#page").animate({opacity:1}, 500);
			}
		});
	});

}

function doFeedback(){
	$("#page").animate({"opacity": 0}, 200, 'linear', function(){
		$("#page").css({"width":860,"height":570, "left":-35, "top":27});
		$.ajax({
			url: "feedback.php",
			cache: false,
			success: function(html){
		$("#htmler").html(html);
		$("#page").animate({opacity:1}, 500);
			}
		});
	});

}
	
function doHome(){
	$("#page").animate({"opacity": 0}, 200, 'linear', function(){
		$("#page").css({"width":795,"height":570, "left":-35, "top":27});
		$.ajax({
			url: "home.php",
			cache: false,
			success: function(html){
		$("#htmler").html(html);
		$("#page").animate({opacity:1}, 500);
			}
		});
	});

}

function showms(doit){
	if (doit){
		$("#ldmens").animate({opacity:1}, {queue:false, duration:350});
	}else{
		$("#ldmens").animate({opacity:.01}, {queue:false, duration:350});
	}
}