function updateOrientation() { 
    switch(window.orientation) { 
    case 0: 
        orient = "portrait"; 
		$("body").removeClass("landscape"); 
        break; 
    case -90: 
        orient = "landscape";
		$("body").addClass("landscape");  
        break; 
    case 90: 
        orient = "landscape"; 
		$("body").addClass("landscape"); 
        break; 
    case 180: 
        orient = "portrait";
		$("body").removeClass("landscape"); 
        break; 
    } 
    document.body.setAttribute("orient", orient);
}



$(document).ready(function() {

	$("#menu ul").slideToggle();
	$("#menu .main").click( function () {
		$("#menu ul").slideToggle();
		return false;
	});

	updateOrientation();

});
