// JavaScript Document
	$(document).ready(function(){
		
		// gotop function				
		$('a.gotop').click(function(){
			$('html, body').animate({scrollTop:0}, 600);
			return false;				
		});
		
		// main overlay function
		$('.work-view').css({opacity : 0});
		$('.work-grid li').hover(function(){
			$('.work-view',this).stop().animate({ 'opacity' : 1},300);
		}, function(){
			$('.work-view',this).stop().animate({ 'opacity' : 0},200);
		});
		
		// main overlay function
		$('.work-view-sm').css({opacity : 0});
		$('.work-top li').hover(function(){
			$('.work-view-sm',this).stop().animate({ 'opacity' : 1},300);
		}, function(){
			$('.work-view-sm',this).stop().animate({ 'opacity' : 0},200);
		});
		
		// main overlay function
		$('.work-view-services').css({opacity : 0});
		$('.work-side li').hover(function(){
			$('.work-view-services',this).stop().animate({ 'opacity' : 1},300);
		}, function(){
			$('.work-view-services',this).stop().animate({ 'opacity' : 0},200);
		});
 	
	 	// portfolio scrollable content
	 	// $('.prj_block').scrollable({ vertical: true, size: 3, globalNav: true });
		// $('#scrollmask').scrollable({ size: 3, globalNav: true });
		
		// additional style for portfolio template if script enabled
		// $('.prj_block').css({ 'overflow' : 'hidden', 'height' : '392px' });
		// $('.prj_block .padd').css({ 'position' : 'absolute' });
		// $('span.tape-s_bottom').removeClass('tape-s_bottom').addClass('tape-s_bottom2');
		// $('.script').css( 'display' , 'inherit' );
	
});