$(document).ready(function(){
	$("ul.idTabs li a").click(function(){
		$("ul.idTabs li").removeClass("selected");
		$(this).parent().addClass("selected");
		// Tony: Removed this because not working in IE.
//		$.address.value($(this).attr("id"));
	});
	$("ul.faq p.question").click(function(){
		$(this).next(".answer").toggle();
	});
	$("#div03").accordion({
		header: "h3",collapsible: true,autoHeight: false
	});
	$("#div04").accordion({
		header: "h3",collapsible: true,autoHeight: false
	});
	
//	var window_title = document.title;

// Tony: Removed this because not working in IE.
//	
//  $.address.init(function(event) {
////   log.writeLine('init: ' + log.formatObject({ value: $.address.value(), path: $.address.path(), pathNames: $.address.pathNames(), parameterNames: $.address.parameterNames(), queryString: $.address.queryString() }));
//  }).change(function(event) {
////		log.writeLine('change: ' + log.formatObject(event, /parameters|parametersNames|path|pathNames|queryString|value/));
////    var names = $.map(event.pathNames, function(n) {
////      return n.substr(0, 1).toUpperCase() + n.substr(1);
////    }).concat(event.parameters.id ? event.parameters.id.split('.') : []);
//    var address = (event.pathNames) ? event.pathNames[0] : null;
//    if (address) {
//      $.address.title( window_title + " - " + address );
//        $("#" + address).click()
//    }
//    else {
//      $.address.title(window_title);
//    }
//  });	
  
});

