//BARTOSZ WOJCIECHOWSKI CUSTOM JS FILE

//CYCLE SLIDER 
$(document).ready(function() {
	$('.slider').cycle({ 
	fx:     'fade', 
	speed:  2000, 
	timeout: 3000
	});
//QUOTE SLIDER 
$('.quotes_slide li:first').fadeIn(1500, function(){
	$('.quotes_slide').cycle({ 
	fx: 'scrollDown' ,
	speed:  500, 
	timeout: 5000
	});
	});

//ARCHIVE HOVER WHOLE DIV CLICK
$(".home_post").click(function() {
window.location = $(this).find("a:first").attr("href");
});

$(".home_post").hover(
function() {
$(this).find("a:first").addClass("hover");
},
function() {
$(this).find("a:first").removeClass("hover");
}
);

//IMAGES HOVER FADE TO EFFECT
$('.thumb2, .thumb').hover(function() {
	$(this).stop().fadeTo("fast", 0.5); },
	function() {
	$(this).stop().fadeTo("fast", 1.0); });
	
//FIRST POST WORK DIFFRENT CSS
$("#work ul li:first").addClass("featured");
$("#work ul li:first").append('<div class="featured_new"></div>');


});

//WORK SLIDE DOWN POST

$(document).ready(function() {

$("#work ul li").toggle(function() {
$(this).find(".rest:first").slideDown(150);
}, function(){ $(this).find(".rest:first").slideUp(150);
});

//WORK HOVER

$("#work li").hover(
function() {
$(this).find("h2:first").addClass("hover");
},
function() {
$(this).find("h2:first").removeClass("hover");
}
);


});









