jQuery.noConflict();
var topYloc = null;

	jQuery(window).scroll(function () { 
		var scrollTop = jQuery(document).scrollTop();
		scrollTop = parseInt(scrollTop);
		
		var offset = topYloc+scrollTop+"px";  
		jQuery("#toplink").animate({top:offset},{duration:500,queue:false});
	});

	jQuery(document).ready(function(){
		jQuery('.portfolio').cycle({ 
			fx: 'scrollUp', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
			speed:   1000, 
			timeout: 1000
	}); 
	
	  topYloc = parseInt(jQuery("#toplink").css("top").substring(0,jQuery("#toplink").css("top").indexOf("px")));
	  
	});
	
	/*jQuery(function(){
        jQuery('.slide-out-div').tabSlideOut({
            tabHandle: '.handle',                     //class of the element that will become your tab
            //pathToTabImage: 'images/form-button.jpg', //path to the image for the tab //Optionally can be set using css
            imageHeight: '112px',                     //height of tab image           //Optionally can be set using css
            imageWidth: '45px',                       //width of tab image            //Optionally can be set using css
            tabLocation: 'right',                      //side of screen where tab lives, top, right, bottom, or left
            speed: 300,                               //speed of animation
            action: 'click',                          //options: 'click' or 'hover', action to trigger animation
            topPos: '160px',                          //position from the top/ use if tabLocation is left or right
            leftPos: '0px',                          //position from left/ use if tabLocation is bottom or top
            fixedPosition: false                      //options: true makes it stick(fixed position) on scroll
        });

    });*/
