var setOfRandomClassNames = new Array("home", "birth-injuries", "symptoms", "treatment", "risk-factors", "prevention" , "about-us", "claim", "choose", "resources", "questions", "contact", "legal");
var randomCSS = "#mast"; 



$(document).ready(function(){
	
	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	// Show and Hide
	jQuery('.text').hide();
	jQuery('a.toggle-text').click(function() {
	  jQuery('.text').toggle(400); 
	  return false;
	});
	
	$('a.external').click(function(){
	window.open(this.href);
	return false;
    });
	
$.fn.randomImage = function (){
var $imageNumber = 15, 
// Set the amount of images in the Sprite
$height = $('> div', this).innerHeight(),
$random_num = Math.random() * $imageNumber - 1,
$multiple = Math.round($random_num),
$random = $height * $multiple
jQuery('.image').css( 
{'background-position' : '0px -' + $random + 'px',  'display' : 'block' } 
)};


});


