$(document).ready(function(){
						   
 $("#wnLst").idTabs(); 

jQuery.fn.fadeToggle = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle'}, speed, easing, callback);  
};

/*LAZY LOAD*/
jQuery(".post img").lazyload({
    effect:"fadeIn",
    placeholder: "http://infectedfx.net/wp-content/themes/v3/pix/default/grey.gif"
	});

/*SLIDE SUBMIT*/
$("#btnAddResource").click(function(){
		$("#formSlide").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
$(".closeAddResource").click(function(){
		$("#formSlide").fadeOut("slow");
		$(this).toggleClass(""); return false;
	});


/*SLIDE Trackbacks*/
$("#displayTracks").click(function(){
		$("#pingslist").slideToggle("fast");
		$(this).toggleClass("btnDownup"); return false;
	});


/* BOX SLIDE TOGGLE INFO */
$('.boxgrid.caption').hover(function(){
	$(".cover", this).stop().animate({top:'110px'},{queue:false,duration:160});
		}, function() {
	$(".cover", this).stop().animate({top:'150px'},{queue:false,duration:160});
		});

$("#slider").easySlider({
		auto: false,
		continuous: false,
		vertical: false,
		speed: 300

	});
$("#ftdClose").fadeOut("fast");
$("#ftdOpen").click(function(){
		$("#ftdPost").slideDown("slow");
		$("#ftdClose").fadeIn("fast");
		$(this).fadeOut("slow");
		$("#ftdClose").click(function(){ 
			$(this).fadeOut("slow");
			$("#ftdOpen").fadeIn("fast");
			$("#ftdPost").slideUp("normal");
			});
		 return false;
	});
	/* MESSAGE :: COOKIE */
	var COOKIE_NAME = 'ifx_cookie';
	$("#message")[$.cookie(COOKIE_NAME)==null?'show':'hide']();
	var options = { path: '/', expires: 10 };
	$('#close_message').click(function() {
		$("#message").fadeTo(500, 0, function() {
			$("#message").slideUp(300);
			$.cookie(COOKIE_NAME, 'ifx', options);
			return false;
			//alert($.cookie(COOKIE_NAME));
		});
	});

});
