function article() {
if(!$("#thecontent").find(".postbox").length) {
$.get("article.php", function(d) { $("#thecontent").html(d)
 });
 }
}

$(document).ready(function() {


$("#leftnav ul.mainleft li a img").each(function() {
var srcurl = $(this).attr("src");
var thebutton = srcurl.split("buttons/");
var namebtn = thebutton[1].split("Stat");
$(this).hover(
      function () {
        $(this).attr("src","images/buttons/"+namebtn[0]+"Hov.png");
      },
      function () {
        $(this).attr("src",srcurl);
       });
	  });


$("p.question").click(function() {
$(this).each(function() {
$(this).next().slideToggle();
});
});
	 });

$(function () {
    if (/^\/(?:helena\/)?$/.test(location.pathname)) {
		$('ul.mainleft li a:eq(0)').remove();
		$('ul.mainleft').prepend('<li><img src="images/WelcomeTransp.png" alt="Welcome" /></li>');
	}
});

$(function () {
if ($.browser.mozilla) {
$('body').addClass('mozilla');
}
if ($.browser.safari) {
$('body').addClass('webkit');
}
if ($.browser.msie) {
$('body').addClass('ie');
}
if ($.browser.opera) {
$('body').addClass('opera');
}
});
