// the document initilization function
$(document).ready(function () {
	//
	// display the default service when the page loads
	var d = get_divname(String(window.location));
	if (d) {
		$('.service').hide();
		$('#'+d).fadeIn('fast');
	} else {
		$('#serviceswrapper .default').fadeIn('fast');
	}

	$('#leftnav a').click(function(e) {
		servicesRequest(this.name);
		 $.urlrewrite(/this.href/, this.title);
		//window.location.replace(this.title);
	});

});


function servicesRequest(link) {
 $.ajax({
   type: "POST",
   url: link,
   success: function(msg){
   		$('#serviceswrapper').html(msg);
   		$('#serviceswrapper .default').fadeIn('fast');
		}
 });
}

