		$(function() {
			
			Cufon.replace('h3');
			
			$(".portfolio").cycle();
			
			$(".connectb").click(function() {
				
				$('html, body').animate({scrollTop:0}, 'fast');
				$("#connect").slideToggle();
				$("h2,h1").fadeToggle();
				
				return false;
				
			});
			

			var productWidth = 631;

				
		    $(".products li").click(function() {
	
		    	var difference = (productWidth*$(this).attr("rel")-productWidth);
		    	
				$(".productslide a img").css({
					left: '-' + difference + 'px'
				});
				
				$(".products .current").removeClass("current");
				$(".products li[rel='" + $(this).attr("rel") + "']").addClass("current");		

				$(".productslide .url").attr("href", $(".products .current a").attr("href"));		
	
				$(".products li a.selected").removeClass("selected");

				return false;
				
		    });		

		    $("#headlines li").mouseenter(function() {

		    	$("h6", this).animate({
		    	    bottom: 0
		    	}, 300);

		    }).mouseleave(function() {

		    	$("h6", this).animate({
		    	    bottom: -25
		    	}, 200);
	    		

	    	});

		    $('#headlines ul .img').cycle({ 
		        fx: 'scrollDown' 
		    });			
    			
			
		});
