$(document).ready(function() {

// hide then show function	
  	$('div.showhide > div').hide();
	$('div.showhide > h3').css("cursor","pointer");
  	$('div.showhide > h3').click(function() { 
		$(this).next().toggle();		
	});

// add + toggle for hide then show function	
	$('div.showhide > h3').css({"background" : "url(images/expand.png) no-repeat top right"});
	$('div.showhide > h3').toggle(
		function() {
			$(this).css({"background" : "url(images/collapse.png) no-repeat top right"}); 
		},
		function() {
			$(this).css({"background" : "url(images/expand.png) no-repeat top right"}); 
		}
	);
	
// show then hide function	
	$('div.hideshow > h3').css("cursor","pointer");
  	$('div.hideshow > h3').click(function() { 
		$(this).next().toggle();		
	});

// add + toggle for show then hide function
	$('div.hideshow > h3').css({"background" : "url(images/collapse.png) no-repeat top right"});
	$('div.hideshow > h3').toggle(
		function() {
			$(this).css({"background" : "url(images/expand.png) no-repeat top right"}); 
		},
		function() {
			$(this).css({"background" : "url(images/collapse.png) no-repeat top right"}); 
		}
	);

						   
//Make List Of Items Clickable
// This interferes with links INSIDE the li's found. please find a better solution
//	$(".reviews li").click(function(){
//	  window.location=$(this).find("a").attr("href"); return false;});
//	$("li.vcard").click(function(){
//	  window.location=$(this).find("a").attr("href"); return false;});
	
//If Making List Of Items Clickable Add Pointer CSS	
//	$(".reviews li").css("cursor","pointer");
//	$("li.vcard").css("cursor","pointer");


// Run Open/Close Function			
//	$('.myfaq').makefaq();


//Run lightbox function
	$("#gallery a").lightBox();
	
});


