

$(document).ready(function() { palladio.initialize(); });

palladio ={

changeText: function(larger)
{
  this.text.size += larger?(1):(-1);
  this.text.height += larger?(20):(-20);
  var textSizeUnit = Number(this.text.size/10);
  $('#content').css('fontSize',textSizeUnit+ 'em');
  $('#content').css('lineHeight',this.text.height + '%');
},

makeTextControl : function()
{
return "<div id=\"textControl\" class=\"textControl\">"+
    "<a href=\"javascript:palladio.changeText(true)\" class=\"control\">text +</a>"+
    "<a href=\"javascript:palladio.changeText(false)\" class=\"control\">text -</a>"+
    "<a href=\"javascript:palladio.setTheme(1)\" class=\"control\">textColour</a></div>";
},

debug:function(obj)
{
  var str = "\n: "+ obj.toString();
  for (var i in obj)
  {
    str += this.debug(i);
  }
  return str;
},

content:function(name)
{
    if (name == null) return;
	var jid="#menu_"+name;
	$("#title").html(name).show("slow");
	var filename = name+".html"
   	$("#content").load(filename);
},

initialize:function()
{
}

}// end palladio

