	$(document).ready(function(){
		$("tr:nth-child(odd)").addClass("odd");
		$("a[href$='.pdf']").addClass("pdf");
		$(".faq_body").hide();
		$(".faq_head").click(function(){
		$(this).parent("#panel2 li").toggleClass("active");
		$(this).parent("#panel3 li").toggleClass("active");	
		$(this).next(".faq_body").slideToggle(200);
		return false;
	});
		
	$(".close_all_faq").click(function(){
		$(".faq_body").slideUp(500);
		$(".faq_head").parent("#panel2 li").removeClass("active");
		$(".faq_head").parent("#panel3 li").removeClass("active");
		return false;
	});
	
	$(".open_all_faq").click(function(){
		$(".faq_body").slideDown(500);
		$(".faq_head").parent("#panel2 li").addClass("active");
		$(".faq_head").parent("#panel3 li").addClass("active");
		return false;
	});
		
	$(".faq_head").hover(function() {
		$(this).addClass("faq_hover");
		}, function() {
		$(this).removeClass("faq_hover");
	});

	$('span.pull-right').each(function(index) { 
		var $parentParagraph = $('p:eq(1)'); 
		$parentParagraph.css('position', 'relative'); 
		$(this).clone() 
		.addClass('pulled-right') 
		.prependTo($parentParagraph); 
	}); 
	
	$('span.pull-left').each(function(index) { 
		var $parentParagraph = $(this).parent('p'); 
		$parentParagraph.css('position', 'relative'); 
		$(this).clone() 
		.addClass('pulled-left') 
		.prependTo($parentParagraph); 
	});
	
    $('.slideshow').cycle({
		fx: 'fade',
		timeout:  10000,
    	pause:  1,
		next:   '.btn_next'
	});	
	
	    $('.testimonial_cycle').cycle({
		fx: 'fade',
		timeout:  12500,
    	pause:  1,
		next:   '.btn_next'
	});	
	
    $('.two_col_pics_cycle').cycle({
		fx:         'scrollLeft',
        timeout:     9000,
		pause:	1,
        pager:      '.nav_two_col_pics_cycle',
        pagerEvent: 'mouseover',
        fastOnEvent: true,
    	pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '.nav_two_col_pics_cycle li:eq(' + idx + ') a'; 
		}
    });
		
		$(".panel-list li").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});	
	
});
