$(document).ready(function(){
	try{ $(".trgt-fancybox").fancybox({}); } catch(e) { }
});

function popUpContent(popper_id, target_id, anim, in_t, out_t){
	var popper = "#" + popper_id;
	var target = "#" + target_id;
	if(!anim){ anim = 'None'; }
	if(!in_t){ in_t = 400; }
	if(!out_t){ out_t = 400; }
	
	if ($(target).css("display") == "none"){
		switch(anim){
			case 'None':
				$(target).css("display", "block");		
			break;
			case 'Fade':
				$(target).fadeIn(parseInt(in_t));		
			break;
			case 'Slide':
				$(target).slideDown(parseInt(in_t));		
			break;
		}
		$(popper).removeClass('poppedDown');
		$(popper).addClass('poppedUp');		
	} else {
		switch(anim){
			case 'None':
				$(target).css("display", "none");		
			break;
			case 'Fade':
				$(target).fadeOut(parseInt(out_t));		
			break;
			case 'Slide':
				$(target).slideUp(parseInt(out_t));		
			break;
		}
		$(popper).removeClass('poppedUp');
		$(popper).addClass('poppedDown');
	}
}