jQuery.noConflict();

jQuery(document).ready(function() {			jQuery('<p class="smallTick" />').insertBefore('div#left-col ul li a, div#left-col ul li.currentpage span');			//jQuery('<p class="smallTick" /><p class="smallTick" />').insertBefore('div#left-col ul li ul li a');
			setTimeout("animatebird()",300);
			
			jQuery('#ajaxSwitch span').click(function() {
			var thisId = jQuery(this).attr('id');
			
			jQuery('#ajaxContainer').hide();
			jQuery('#ajaxContainer').html(GetContent('index.php?page=' + thisId));
			jQuery('#ajaxContainer').fadeIn();
			
			jQuery('#ajaxSwitch span').each(function() {
			if(thisId == jQuery(this).attr('id'))
			{ jQuery(this).addClass('active'); }
			else
			{ jQuery(this).removeClass('active'); }
			});
});
		});
		
		function animatebird(){
			jQuery("#bird div").animate({top:"-=50px"},2000).animate({top:"+=50px"}, 2000);
			setTimeout("animatebird()",4000);
		}
		
		
function GetContent(dataPage) {

    var html;

    jQuery.ajax({
        type: "POST",
        contentType: "text/html; charset=utf-8",
        url: dataPage,
        dataType: "text/html",
        async: false,
        success: function(msg) {
            html = msg;
        }
    });

    return html;
}

