$(document).ready(function() {
            $('#iWantTo ul').hide();
			$('#content p a img').parent().addClass('img');
	   		$("tr:even").addClass("odd");
			$("table table tr").removeClass("odd");
			$("#container a[href$='pdf']").append(' <img class="ext" src="/SandySprings/media/layout/pdf.png" alt="PDF Document | Download Viewer Below"/>');
			$("#container a[href$='doc'],#container a[href$='aspx.doc'],#container a[href$='docx'],#container a[href$='aspx.docx']").append(' <img class="ext" src="/SandySprings/media/layout/doc.png" alt="DOC Document | Download Viewer Below"/>');
			$("#container a[href$='rtf']").append(' <img class="ext" src="/SandySprings/media/layout/rtf.png" alt="RTF Document | Download Viewer Below"/>');
			$("#container a[href$='txt']").append(' <img class="ext" src="/SandySprings/media/layout/txt.png" alt="TXT Document | Download Viewer Below"/>');
			$("#container a[href$='xls'],#container a[href$='aspx.xls'],#container a[href$='xlsx'],#container a[href$='aspx.xlsx']").append(' <img class="ext" src="/SandySprings/media/layout/xls.png" alt="XLS Document | Download Viewer Below"/>');
			$("#container a[href$='ppt'],#container a[href$='aspx.ppt'],#container a[href$='pptx'],#container a[href$='aspx.pptx']").append(' <img class="ext" src="/SandySprings/media/layout/ppt.png" alt="PPT Document | Download Viewer Below"/>');
			$("#container a[href^='mailto:']").append(' <img class="ext" src="/SandySprings/media/layout/email.png" alt="E-Mail"/>');
			$('.accordionForm div').hide();
			$('.accordionForm h3 a').click(function(){
			$('.accordionForm div').slideUp();
			$(this).parent().next().slideDown();
			return false;
		});

	   });

/*$(document).ready(function() {
   $('#content h2 a, #contentWide h2 a, #content h3 a, #contentWide h3 a, #content h4 a, #contentWide h4 a, #content p a, #contentWide p a').filter(function() {
     return this.hostname && this.hostname !== location.hostname;
   }).after(' <img class="ext" src="/SandySprings/media/layout/external.png" alt="external link"/>'); });*/

$(function(){
     $("#iWantTo li:first").hover(function(){
			$('ul:first',this).slideDown('slow');
		}, function(){
			$('ul:first',this).slideUp('slow');
		});
     $("#iWantTo li ul li:has(ul)").find("a:first").append("...");
	$("#iWantTo li:first li").hover(function(){
			$('ul:first',this).fadeIn();
		}, function(){
			$('ul:first',this).fadeOut();
			});
	});

$(document).ready(function(){

	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	 
});

$(document).ready(function() {

	 var j = 0;
	 var delay = 2000; //millisecond delay between cycles
	 function cycleThru(){
	         var jmax = $("ul#cyclelist li").length -1;
	         $("ul#cyclelist li:eq(" + j + ")")
	                 .animate({"opacity" : "1"} ,400)
	                 .animate({"opacity" : "1"}, delay)
	                 .animate({"opacity" : "0"}, 400, function(){
	                         (j == jmax) ? j=0 : j++;
	                         cycleThru();
	                 });
	         };

	 cycleThru();

 });

/*$(document).ready(function(){
	$('.accordion h3').click(function() {
		$(this).next().toggle('slow');
		return false;
	}).next().hide();
});*/

$(function() {
		$(".accordion").accordion({
			active: false, autoHeight: false, collapsible: true
		});
	});

