$(document).ready(function(){

	$('.changemo').swapit('_over');
	
	$('a').DZEmailDecryptomatic();


    /* Contact Forms */
    
	    var contactContainer = $('div#contactForms > div'); /* var = all divs within #contactForms */
	    	contactContainer.hide();/* hide the divs */
	    	$('#conPrayers').show();
	    	$('#PrayerLink').addClass('selected-over');
	    $('div#contactForms ul.conTabs a').click(function () {
	    	contactContainer.hide(); /* hide all divs */
	    	$('div#contactForms ul.conTabs a').removeClass('selected-over');
	    	$(this).addClass('selected-over');
	    	contactContainer.filter(this.hash).show();
	    	return false; /* stops browser from scrolling down to #whatever */
	    });

	// so you can auto show a form through a link from elsewhere
	if ($('div#contactForms').length) {
		var _tmp = String(window.location).split('?');
		var b = _tmp[1].split('&');
		var final ={};
		$.each(b, function(x,y){
			var temp = y.split('=');
			final[temp[0]] = temp[1];
		});
		if (final.show != undefined) {
			$('ul.conTabs li a[href="#'+final.show+'"]').trigger('click');
		}
    }
	/* END Contact Forms IS THIS BEING USED? */


	if ($('div#homePics').length) {
		$('div#homePics div').each(function () { $(this).hide(); });
		$('div#homePics div').eq($.rand(0, $('div#homePics div').length-1)).show();
	}
    
    
});
