    function sendAlert(pagename) {
				pageTracker._trackPageview(""+pagename); 

	}



function eventview(eventurl) {
var sPath = window.location.pathname;
	var expires = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_expires');
	var session_key = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_session_key');
	var ss = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_ss');
	var user = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_user');
	var sig = $.cookie('39c2c19c5a182ae1e9753a75cba083ad');
$.ajax({
		  url: "pages.php?page=events&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig+"&uaction=view"+"&eventlink="+eventurl,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				$.getScript("media/fbshareevent.js");
				sendAlert("e"+eventurl);
			  done = 1;
			  }
		  }
		});
		return false;

    }

function minuteview(minuteurl) {
var sPath = window.location.pathname;
	var expires = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_expires');
	var session_key = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_session_key');
	var ss = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_ss');
	var user = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_user');
	var sig = $.cookie('39c2c19c5a182ae1e9753a75cba083ad');
$.ajax({
		  url: "pages.php?page=minutes&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig+"&uaction=view"+"&minutelink="+minuteurl,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				sendAlert("m"+minuteurl);
			  done = 1;
			  }
		  }
		});
		return false;

    }

function newsview(newsurl) {
var sPath = window.location.pathname;
	var expires = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_expires');
	var session_key = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_session_key');
	var ss = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_ss');
	var user = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_user');
	var sig = $.cookie('39c2c19c5a182ae1e9753a75cba083ad');
$.ajax({
		  url: "pages.php?page=index&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig+"&uaction=viewnews"+"&newslink="+newsurl,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
			$.getScript("media/fbsharenews.js");
			sendAlert("n"+newsurl);
			  done = 1;
			  }
		  }
		});
		return false;

    }

$(function() {
	var sPath = window.location.pathname;
	var expires = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_expires');
	var session_key = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_session_key');
	var ss = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_ss');
	var user = $.cookie('39c2c19c5a182ae1e9753a75cba083ad_user');
	var sig = $.cookie('39c2c19c5a182ae1e9753a75cba083ad');


    $('#boardlink').click(function(){

$.ajax({
		  url: "pages.php?page=board&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
			$(function(){
			$("#boardtimeline").idTabs();
			});
			sendAlert("board");
			  done = 1;
			  }
		  }
		});

    });


    $('#downloadlink').click(function(){

$.ajax({
		  url: "pages.php?page=downloads&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				sendAlert("download");
			  done = 1;
			  }
		  }
		});

    });


    $('#photolink').click(function(){

$.ajax({
		  url: "pages.php?page=photos&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
			  done = 1;
			  }
		  }
		});

    });

    $('#minutelink').click(function(){

$.ajax({
		  url: "pages.php?page=minutes&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				sendAlert("minute");
			  done = 1;
			  }
		  }
		});

    });

    $('#afflink').click(function(){

$.ajax({
		  url: "pages.php?page=aff&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				sendAlert("afflink");
			  done = 1;
			  }
		  }
		});

    });

    $('#constlink').click(function(){

$.ajax({
		  url: "pages.php?page=const&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				sendAlert("const");
			  done = 1;
			  }
		  }
		});

    });

    $('#aboutlink').click(function(){

$.ajax({
		  url: "pages.php?page=about&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				sendAlert("about");
			  done = 1;
			  }
		  }
		});

    });

    $('#eventlink').click(function(){

$.ajax({
		  url: "pages.php?page=events&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				sendAlert("event");
			  done = 1;
			  }
		  }
		});

    });

    $('#calendarlink').click(function(){

$.ajax({
		  url: "pages.php?page=calendar&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
			  $.getScript("media/calendar.js");
			  sendAlert("calendar");
			  done = 1;
			  }
		  }
		});

    });
	$('#homelink').click(function(){
		$.ajax({
		  url: "pages.php?page=index&loc="+sPath+"&fexpires="+expires+"&fkey="+session_key+"&fss="+ss+"&fuser="+user+"&fsig="+sig,
		  cache: false,
		  success: function(html){
			  var done = 0;
			$(".contentbody").html(html);
			if (done == 0) {
				$.getScript("media/trigger.js");
				$.getScript("media/trigger2.js");
				$.getScript("media/slideshow.js");
			  $.getScript("media/adjust.js");
				$.getScript("media/fbsharenews.js");
				sendAlert("home");
			  done = 1;
			  }
		  }
		});

    });
});