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

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

$(document).ready(function(){

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

});

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

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

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

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

$('#radio4').click(function() {  
    $('#container').cycle(4);  
    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");
 });  

  $(".close").click(function(close){
	close.preventDefault();
	$(".slide01, .slide02, .slide03, .slide04, .slide05, .slide06").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);}
		});

});