// JavaScript Document
$(function(){


//Manu
/*
$(".manuhoverh").mouseover(function() { $(".k", this).stop().animate({"opacity": "0"}, 300);});
$(".manuhoverh").mouseout(function() { $(".k", this).stop().animate({"opacity": "1"}, 300);});
*/



$(".buttonm").mouseover(function() { $("img", this).animate({left:"-10px"},200); });
$(".buttonm").mouseout(function() { $("img", this).animate({ left:"-1px" },200); }); 
$("#hoverl").mouseover(function(){ $("#bokche").css({"background-position":"254px 0px"});});
$("#hoverr").mouseover(function(){ $("#bokche").css({"background-position":"0px 0px"});});
 

//social
$(".twitb").mouseover(function() { $(".twit").show("fast"); });
$(".twitb").mouseout(function() { $(".twit").hide("fast"); });

$(".faceb").mouseover(function() { $(".face").show("fast"); });
$(".faceb").mouseout(function() { $(".face").hide("fast"); });

$(".linkeb").mouseover(function() { $(".linke").show("fast"); });
$(".linkeb").mouseout(function() { $(".linke").hide("fast"); });

$(".tubeyb").mouseover(function() { $(".tubey").show("fast"); });
$(".tubeyb").mouseout(function() { $(".tubey").hide("fast"); }); 

// Contact
$(".downclick").click(function () {
    $(".businessdown").toggle("fast");
});




//Nastavak

$(".manuhover").hover(
function() { $("img.c:hidden:first", this).stop().fadeIn(50);},
function() { $("img.c", this).stop().fadeOut(50);}
);

$(".manuhover3").hover(
function() { $("img.c:hidden:first", this).animate({"opacity": "1"}, 300);},
function() { $("img.c", this).stop().animate({"opacity": "0"}, 300);}
);


// Hover za sve klasic
$(".hoverpicture").hover(
function() {
$("img.a", this).stop().animate({"opacity": "0"}, 300);
},
function() {
$("img.a", this).stop().animate({"opacity": "1"}, 300);
});

// Hover effect na service
$(".hoverd").hover(
function() {
$("img.a", this).stop().animate({"opacity": "0"}, 300);
},
function() {
$("img.a", this).stop().animate({"opacity": "1"}, 300);
});

$(".hoverw").hover(
function() {
$("img.a", this).stop().animate({"opacity": "0"}, 300);
},
function() {
$("img.a", this).stop().animate({"opacity": "1"}, 300);
});

$(".hoverg").hover(
function() {
$("img.a", this).stop().animate({"opacity": "0"}, 300);
},
function() {
$("img.a", this).stop().animate({"opacity": "1"}, 300);
});

$(".hovers").hover(
function() {
$("img.a", this).stop().animate({"opacity": "0"}, 300);
},
function() {
$("img.a", this).stop().animate({"opacity": "1"}, 300);
});



// Skrivanje i pokazivanje za portfolio
$(".webdesign_btn").click(function () {
	$(".branding_t").each(function (index, domEle) {
		$(domEle).hide("slow");
	});
	$(".webdesign_t").show("slow");
	$(".print_t").hide("slow");
	$(".video_t").hide("slow");
});
$(".all_btn").click(function () {
	$(".branding_t").show("slow");
	$(".webdesign_t").show("slow");
	$(".print_t").show("slow");
	$(".video_t").show("slow");
});
$(".branding_btn").click(function () {
	$(".branding_t").show("slow");
	$(".webdesign_t").each(function () {
		$(this).hide("slow");
	});
	$(".print_t").hide("slow");
	$(".video_t").hide("slow");
});	
$(".print_btn").click(function () {
	$(".branding_t").hide("slow");
	$(".webdesign_t").hide("slow");
	$(".print_t").show("slow");
	$(".video_t").hide("slow");
});
$(".video_btn").click(function () {
	$(".branding_t").hide("slow");
	$(".webdesign_t").hide("slow");
	$(".print_t").hide("slow");
	$(".video_t").show("slow")
});




$(".fade").dwFadingLinks({
	color: "#73C7D2",
	duration: 700
});
	

});

