// JavaScript Document

$(document).ready(function(){
  
  $('#blog-column').cycle({
    fx: 'scrollUp',
	timeout: 8000,
	pause: 1,
	easing: 'backinout'
  });
  
  $('.showcase-index').cycle({
	fx: 'fade',
	speed: 2000,
	timeout: 8000,
	pause: 1
  });
  
  $('#showcase-web').cycle({
	fx: 'scrollHorz',
	speed: 1000,
	timeout: 0,
	next: '#showcase-web-nav-next',
	prev: '#showcase-web-nav-previous',
	easing: 'backinout'
  });
  
  $('.portfolio-web').cycle({
	fx: 'fade',
	speed: 2000,
	timeout: 8000
  });
  
  $('#showcase-graphic').cycle({
	fx: 'scrollHorz',
	speed: 1000,
	timeout: 0,
	next: '#showcase-graphic-nav-next',
	prev: '#showcase-graphic-nav-previous',
	easing: 'backinout'
  });
  
  $('.portfolio-graphic').cycle({
	fx: 'fade',
	speed: 2000,
	timeout: 8000
  });
  
  $('#showcase-flash').cycle({
	fx: 'scrollHorz',
	speed: 1000,
	timeout: 0,
	next: '#showcase-flash-nav-next',
	prev: '#showcase-flash-nav-previous',
	easing: 'backinout'
  });
  
  $('.portfolio-flash').cycle({
	fx: 'fade',
	speed: 2000,
	timeout: 8000
  });
  
  $('#showcase-marketing').cycle({
	fx: 'scrollHorz',
	speed: 1000,
	timeout: 0,
	next: '#showcase-marketing-nav-next',
	prev: '#showcase-marketing-nav-previous',
	easing: 'backinout'
  });
  
  $('.portfolio-marketing').cycle({
	fx: 'fade',
	speed: 2000,
	timeout: 8000
  });
	
  $('a.nudge').hover(function() { //mouse in
	$(this).animate({ paddingLeft: '20px' }, 400);  
  }, function() { //mouse out  
	$(this).animate({ paddingLeft: 0 }, 400);  
  });
  
});


	
function jumble(){
  var a,b,c,d,e,f,g,h,i
  a='<a href=\"mai'
  b='hello'
  c='\">'
  a+='lto:'
  b+='@'
  e='</a>'
  f=''
  b+='designstudio51.com'
  g='<img src=\"'
  h=''
  i='\" alt="Email us." border="0">'
  
  if (f) d=f
  else if (h) d=g+h+i
  else d=b
  
  document.write(a+b+c+d+e)
}