$(document).ready(function(){
	var windowHeight = $(window).height();
	windowHeight = windowHeight + 1;
	$("#outerwrapper").css({'height':windowHeight+'px'})
});

$(document).ready(function(){
			$(".nav")
			.superfish({
				animation : { opacity:"show",height:"show"}
			});
});

$(function() {
		    $(".jMyCarousel").jMyCarousel({
		        visible: '90%'
		    });
});


$(document).ready(function(){
	//$(".nav li a:last, .nav li li a:last").addClass("noborder");
	$(".nav li:last, .nav li li a:last").css({'border':'none'})
	
});

$(document).ready(function() {
	if ($("#gallery").is(":hidden")) 
	{
		$('#gallery').show();
	}
});



$(document).ready(function() {
$('#gallery') 
.after('<div id="galleryimages">') 
.cycle({ 

     fx:    'scrollLeft',
     speed: 500, 
     timeout:0,
     pager:  '#galleryimages',
     pagerEvent:'mouseover'
	  
});
});

/*
$(document).ready(function(){
    $("a.readYes1").click(function () {
      if ($(".optional1").is(":hidden")) {
        $(".optional1").slideDown("slow");
      } else {
        $(".optional1").hide();
      }
      return false;
    });
    $("a.readNo").click(function () {
    	if ($(".optional1").is(":visible")) {
        $(".optional1").slideUp("slow");
      } else {
        $(".optional1").show();
      }
      return false;
    });  
  });
 */

/*

$(document).ready(function() { 
    $("table#searchResults") 
    .tablesorter({
    	headers: {0: {sorter: false}},
    	widthFixed: true, 
    	widgets: ['zebra']
    }) 
    .tablesorterPager({
    	container: $("#pager"),
    	positionFixed: false
    }); 
}); 




$(document).ready(function() {
	$('#gallery a').click(function() {
		var pic = this;
		$("img#placeholder").fadeTo(500,0,function () {
			$("img#placeholder").attr("src",pic).fadeTo(500,1)
		});
		return false;
	});
});

$(document).ready(function() {
	$('#gallery a').hover(function(){
		var pic = this;
		$('img#placeholder').fadeTo(200,0,function(){
			$('img#placeholder').attr("src",pic).fadeTo(200,1)
		});
	},function() {
		
	});
});
*/

$(document).ready(function() {
	$('ul.managementList li:last').css({margin:'0px'});
});



$(document).ready(function() {
	$('ul.managementList li img').hover(function(){	$('.showManagementDetails').hide().load('http://www.shere.com/ajax/showManagementDetails.php',{'name':$(this).attr('class')},function() {
	$(this).fadeIn("slow");	
	});
	});
});

$(document).ready(function() {
  $('#loading').ajaxStart(function() {
    $(this).show();
  }).ajaxStop(function() {
    $(this).hide();
  });
});