jQuery(document).ready(function($){
	

	$('#newsletter').validate();
	
	$('#newsletter #name').focus(function(){
       if($(this).val() == "Name"){ $(this).val(''); }
    });
    $('#newsletter #kkhtih-kkhtih').focus(function(){
       if($(this).val() == "Email"){ $(this).val(''); }
    });

    $('#newsletter #name').blur(function(){
        if($(this).val() == ""){
            $(this).val('Name');
        }
    });
    $('#newsletter #kkhtih-kkhtih').blur(function(){
        if($(this).val() == ""){
            $(this).val('Email');
        }
    });	
	
	$('#slideshow').cycle({ 
		fx:     'fade', 
		speed:  900, 
		timeout: 7000,
		pager: '#slideshow-nav',
		pauseOnPagerHover: true,
        // callback fn that creates a thumbnail to use as pager anchor
        pagerAnchorBuilder: function(idx, slide) {
        return '<a href="#" class="pager-'+(idx+1)+'"><span>'+(idx+1)+'</span></a>';
        }
      });	

});
