$(document).ready(function(){

	/*$(".accordion h5:first").addClass("activeaccordion");*/
	/*$(".accordion p:not(:first)").hide();*/
	
	try{
	
		if($('.accordion').length > 0) {
		
			$(".accordion p").hide();
			$(".accordion .wp-caption").hide();
			
			$(".accordion h5").click(function(){
		
			  $(this).next("p").slideToggle("slow")
			  .siblings("p:visible").slideUp("slow");
			  $(this).toggleClass("activeaccordion");
			  $(this).siblings("h5").removeClass("activeaccordion");
		
			});
			
		}
		
		if($(".accordionfaq").length > 0) {
	
			$(".accordionfaq p").hide();
		
			$(".accordionfaq h5").click(function(){
		
			  $(this).next("p").slideToggle("slow")
			  .siblings("p:visible").slideUp("slow");
			  $(this).toggleClass("activeaccordion");
			  $(this).siblings("h5").removeClass("activeaccordion");
		
			});
		
		}
	
	} catch(e) {}

});


function popUpDemo(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=970,height=570,left = 160,top = 205');");
}
