

$(document).ready(function(){

 //Seearch for link with REL set to ajax
$('a.ajax').click(function () {

		data = this.getAttribute('href');

		$.ajax({
        url:  data,
        type: "GET",
        cache: false,
		success: function (html) {

			//add the content retrieved from ajax and put it in the #ajax_content div
			$('#ajax_content').html(html);//.appendTo("body");

			//display the #videocontent with fadeIn transition
			$('#ajax_content').show();
		}

    	});  // end ajax function

	return false;
	});  // end click function

}); // end ready function
