	//clear text on input text
	function clearText(field){

	    if (field.defaultValue == field.value) field.value = '';
	    else if (field.value == '') field.value = field.defaultValue;

	}
	
	// superfish
	jQuery(function(){
		jQuery('ul.sf-menu').superfish();
	});
	
	//jquery cycle
	$(document).ready(function(){
		$('#s1').cycle({
			fx:'fade'
		});
			
		$('#jejaring').cycle({
			fx:'fade'
		});
			
		$('#galeryfoto').cycle({
			fx:'zoom'
		});
			
		$('#bankacc').cycle({
			fx:'scrollDown'
		});
	});
		
	//Jquery tab
	$(function () {
	    var tabContainers = $('div.tabs > div');
		
		$('div.tabs ul.tabNavigation a').click(function () {
		tabContainers.hide().filter(this.hash).show();
	    
		$('div.tabs ul.tabNavigation a').removeClass('selected');
	    $(this).addClass('selected');
	    
		return false;
	    }).filter(':first').click();
	});
	
	//Jquery ui datepicker
	$(document).ready(function(){
		$('#tanggal_lahir').datepicker({yearRange: '-50:-16'});
	});
	
	$(document).ready(function(){
             $('#donasi').datepicker({yearRange: '-8:0'});
        })
	
	//Jquery Slideshow
	hs.graphicsDir = '/js/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.numberPosition = 'caption';
	hs.dimmingOpacity = 0.75;

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: true,
		overlayOptions: {
			opacity: .75,
			position: 'top center',
			hideOnMouseOut: true
		}
	});
	