/* = jQuery Featured Posts Animation
-------------------------------------------------------------------------------------------- */
$(document).ready(function() {
	$('#slider') 
	.cycle({
		fx:     'fade',
		speed:   900, 
		timeout: 10000, 
		startingSlide: 0,
		pause:   1,
		pagerEvent:   'mouseover',
		pager:  '#nav', 
	});
});

/* = Jquery Dropdown Menu
-------------------------------------------------------------------------------------------- */
$(document).ready(function() {
$("#menu-ust .menu-item").hover(
  function () {
    $(this).find('.menu_child').show();
  }, 
  function () {
    $(this).find('.menu_child').hide();
  }
);
});

/* = 
-------------------------------------------------------------------------------------------- */
$(document).ready(function() {
	$('div.sw-accordion:eq(0) > div:gt(0)').hide();
	$('div.sw-accordion:eq(0) > h3').click(function() {
		$(this).next('div').slideToggle('fast')
		.siblings('div:visible').slideUp('fast');
	});
});

$(document).ready(function() {
	$('div.sw-accordion-2:eq(0) > div:gt(0)').hide();
	$('div.sw-accordion-2:eq(0) > h3').click(function() {
		$(this).next('div').slideToggle('fast')
		.siblings('div:visible').slideUp('fast');
	});
});

/* = 
-------------------------------------------------------------------------------------------- */
$(document).ready(function(){
	$("a.swtab").click(function () {
		$(".swtab-active").removeClass("swtab-active");
		$(this).addClass("swtab-active");
		$(".swtab-content").hide();
		var content_show = $(this).attr("title");
		$("#"+content_show).show();
	});
});


/* = jQuery lightbox for fancy_group
-------------------------------------------------------------------------------------------- */
$(document).ready(function() {
	$(".popup-form").fancybox({
		'titleShow'		: false,
		'width'			: 900,
		'height'		: 520,
		'autoScale'		: false,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'type'			: 'iframe'
	});
});

/* = Jquery Target Blank
-------------------------------------------------------------------------------------------- */
	$('.vevent .title a').attr('target','_blank');
	$('.sw-left h3 a').attr('target','_blank');
