$(function() {
	$("ul#templates").buttonset();
});

$(function() {
	$("ul#colors").buttonset();
});

$(document).ready(function(){

  	$('div#testimonial-slide').cycle({ 
    fx: 'fade',
    delay: -4000

});

$('#bookmarks a').smoothScroll({excludeWithin: ['.exclude-sign-up']});
$('#bookmarks').stickySidebar({padding: 100});

$('#container').cycle({
	fx: 'scrollDown',
    timeout: 0, 
    speed:   1800, 
    startingSlide: 0,
    easing:  'easeOutElastic'
});

$().click(function() { 
    $('#container').cycle(0); 
    return false; 
}); 

$('#radio0').click(function() { 
    $('#container').cycle(1); 
    return false; 
}); 

$('#radio1').click(function() { 
    $('#container').cycle(2); 
    return false; 
}); 
 
$('#radio2').click(function() {  
    $('#container').cycle(3);  
    return false;
}); 

$('#radio3').click(function() {  
    $('#container').cycle(4);  
    return false;  
}); 

$('#radio4').click(function() {  
    $('#container').cycle(5);  
    return false;  
});

$('#radio5').click(function() {  
    $('#container').cycle(6);  
    return false;  
});

$('#radio6').click(function() {  
    $('#container').cycle(7);  
    return false;  
});

$('#radio7').click(function() {  
    $('#container').cycle(8);  
    return false;  
});

 

// Custom 
	
 $("a.feature01").click(function(event){
   event.preventDefault();
   $(".slide01").slideDown("fast");
 });
 
 $("a.feature02").click(function(event){
   event.preventDefault();
   $(".slide02").slideDown("fast");
 });
 
 $("a.feature03").click(function(event){
   event.preventDefault();
   $(".slide03").slideDown("fast");
 });
 
 $("a.feature04").click(function(event){
   event.preventDefault();
   $(".slide04").slideDown("fast");
 });
 
 $("a.feature05").click(function(event){
   event.preventDefault();
   $(".slide05").slideDown("fast");
 });
 
 $("a.feature06").click(function(event){
   event.preventDefault();
   $(".slide06").slideDown("fast");
 });
 
  $("a.feature07").click(function(event){
    event.preventDefault();
    $(".slide07").slideDown("fast");
 });

  $(".close").click(function(close){
	close.preventDefault();
	$(".slide01, .slide02, .slide03, .slide04, .slide05, .slide06, .slide07").fadeOut("fast");
  });

/* Clear Forms */

/*		$('input').focus(function() {
			value=$(this).val();
			$(this).attr("value","");
		});
		$('input').blur(function() {
			if($(this).val()=="") {$(this).val(value);}
		});
*/		
		$('textarea').focus(function() {
			value=$(this).val();
			$(this).attr("value","");
		});
		$('textarea').blur(function() {
			if($(this).val()=="") {$(this).val(value);}
		});

});
