$(document).ready(function() {

var $div = $(".answer");
var divHeight = $div.height();
$div.hide();

$("h2").toggle(function() {
    $(this).next(".answer").slideDown('slow');  $(this).addClass("close"); }, 
function() {
    $(this).next(".answer").slideUp();  $(this).removeClass("close");
});

//$(".answer").hide();
//$("h2").toggle(function() { $(this).next(".answer").fadeIn();  $(this).addClass("close"); }, 
//function() {  $(this).next(".answer").fadeOut();  $(this).removeClass("close");
//});


//HIDING TEXT SELECTION

$.extend($.fn.disableTextSelect = function() {
    return this.each(function(){
        if($.browser.mozilla){//Firefox
            $(this).css('MozUserSelect','none');
        }else if($.browser.msie){//IE
            $(this).bind('selectstart',function(){return false;});
        }else{//Opera, etc.
            $(this).mousedown(function(){return false;});
        }
    });
});
$('h2').disableTextSelect();//No text selection on elements with a class of 'noSelect'


// SLLIDESHOW PARAMETERS
$('#slideshow').crossSlide({
          sleep: 5,
          fade: 2,
          shuffle: true
        }, [
          { src: 'http://www.the-harbour.co.uk/harbourpress/wp-content/themes/harbour/images/image1.jpg' },
          { src: 'http://www.the-harbour.co.uk/harbourpress/wp-content/themes/harbour/images/image2.jpg' },
          { src: 'http://www.the-harbour.co.uk/harbourpress/wp-content/themes/harbour/images/image3.jpg' },
          { src: 'http://www.the-harbour.co.uk/harbourpress/wp-content/themes/harbour/images/image4.jpg' },
          { src: 'http://www.the-harbour.co.uk/harbourpress/wp-content/themes/harbour/images/image5.jpg' },
          { src: 'http://www.the-harbour.co.uk/harbourpress/wp-content/themes/harbour/images/image6.jpg' },
          { src: 'http://www.the-harbour.co.uk/harbourpress/wp-content/themes/harbour/images/image7.jpg' }
]);




}); //END JQUERY
