$(document).ready(function(){
	/*
	(function(){
		Slider.setup( $("#ds-image-slider") );
	})();
	*/
	
	(function(){
	    $("#logo_arrow").everyTime(5000, function(){
	        $(this).fadeIn().fadeOut();
	    });
	})();

	/* Menu */
	if ( $.browser.mozilla || $.browser.safari || $.browser.opera || ($.browser.msie && $.browser.version >= 7) ) {
		$("#menu").css({ top: "-100px" }).animate({ top: "0px" }, 1000);
	}
	
	$("#menu li").hover(
		function() {
			$(this).css({ background : "url(http://www.dsigner.ro/images/ds_menu.png) no-repeat -" + ($("li").index(this) * 133) + "px 0px"});
		},
		function() {
			if ( !$(this).hasClass("current") )
				$(this).css({ background : "url(http://www.dsigner.ro/images/ds_menu.png) no-repeat -" + ($("li").index(this) * 133) + "px -20px"  });
		}
	);
	
	/* Portofolio arrows */
	$("#ds-left-arrow").hover(
		function(){
			$(this).css({ left: "-65px", cursor: "pointer" });
		},
		function(){
			$(this).css({ left: "-60px" });
		}
	).click(function(){
		Slider.slideLeft();
	});
	
	$("#ds-right-arrow").hover(
		function(){
			$(this).css({ right: "-65px", cursor: "pointer" });
		},
		function(){
			$(this).css({ right: "-60px" });
		}
	).click(function(){
		Slider.slideRight();
	});;
	
	$("#ds-portofolio-container").hover(
		function(){
			var TOP = 333 - $("#ds-image-desc").height();
			$("#ds-image-desc").animate({ top: TOP + "px" });
		}, 
		function(){
			$("#ds-image-desc").animate({ top: "333px" });
		}
	);

});