jQuery(function() {
  jQuery(this).bind("contextmenu", function(e) {
    e.preventDefault();
  });
}); 

$(function(){	
   for(var i = 1; i<=31; i++){
     if(document.getElementById("pane"+i) != null){
     $('#pane'+i).jScrollPane({showArrows:true});
   }            
}
                       
});

function changeImage(url, id){
  if(url == "/assets/" || url == '')
    url = "/themes/blythbedlington/images/no_photo_news.jpg";
  document.getElementById("changeimage").src = url;
  $("p.bold").addClass("last_news_normal");
  $("#" + id).addClass("bold");
  $("#" + id).removeClass("last_news_normal");
}
/*
function last_news(){
  var flashvars = {};
         flashvars.newspath = '/api/v1/NewsItem/';
 var params = {};
 params.bgcolor = '#5bbdf0';
 var attributes = {};
 swfobject.embedSWF("/assets/Flash/ticker02.swf", "newsticker", "730", "25", "8.0.0", false, flashvars, params, attributes);
}
*/
function loadAjax(loadIntoElID, page) {
 var completeURL = jQuery('base').attr('href') + page; //NOTE THAT jQuery('base').attr('href') should work as the base tag should be included in your header.
 var imgHtml = '<img src="mysite/javascript/loading.gif" alt="loading . . ." />';
 jQuery("#" + loadIntoElID).html(imgHtml);
 jQuery("#" + loadIntoElID).load(URL, {}, function() {/* another function here that runs after content has been loaded */});
 return true;
}

 