$(document).ready(function() {

// Fix from John 6th May 09 to correct issue with left grass forcing the page to be too wide on 1024 screens..
//if (screen.width>=1024)
//{
//$("body").css("overflow-x", "hidden");
//}

// Fix from John added 8th May 09 to stop the grass growing too long down the bottom of the page
// Commented out 11th May 09 as JOhn now worked out a oure CSS solution.
//$(resizeGrass());
//$(window).bind("resize", resizeGrass);

//function resizeGrass() {
//if ($("body").height()<$("#grassy-edge-wrapper").height())
//{
//$("#footer-outside").css("height", "auto");
//}
//else if ($("body").height()>$("#grassy-edge-wrapper").height()) {
//$("#footer-outside").height($("body").height()-$("#grassy-edge-wrapper").height())
//}
//};
//    End of 8th May 09 Fix





//this adds the background gradient - I have disabled it due to bugs. Using a png graphic instead.
//$("body").gradient({ topcolor: '#3c7faf', bottomcolor: '#ededed', horizontal: false});


//this adds the rounded corner effects
$('.column-info-shaded').corner("round bottom 15px").parent().corner("round bottom 15px");
$('#footer-info').corner("round bottom 15px");


//If an article in the middle column doesn't have a photo, this widens the paragraph text to compensate
$("#left-column img").addClass("news-photo");
$(".news-photo").prev("p").addClass("newstext-with-photo");


//give zebra striping to the results table
//$('.column-box table').colorize({bgColor:'#dcebf2', hiliteColor:'none', altColor: '#e8f1f8' });



//This fixes the PNG transparency issue in IE6
$('img[@src$=.png]').ifixpng();
$('#menubar li').ifixpng();
$('#header-photo').ifixpng();





//This is the photo scroller on the homepage
    $(".photo-wrapper").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
		auto: 2000,
		speed: 800,
		visible: 7
    });


$(".lightbox").lightbox({fitToScreen: true});


});