jQuery(document).ready(function($) {
	
	$(".modal").colorbox({width:"720px", height:"520px", iframe:true, opacity:0.7});
	$('.colorbox').colorbox({scalePhotos:true, maxWidth:"90%", maxHeight:"90%", transition:"elastic", slideshow:"true", slideshowSpeed:4000, opacity:0.5});
	
	
	$("ul#menu-main").lavaLamp({
		fx: "backout", 
		speed: 700
	});	
	
	$("#slider").cycle({
		fx: 'fade',
		next: '#slider',
		pager: '#slider_nav',
		cleartype: 0,
		speed: 800,
		timeout: 4000
	});
	
	$("#testimonials").cycle({
		fx: 'scrollHorz',
		prev: '#arrow_left',
		next: '#arrow_right',
		cleartype: 0,
		speed: 600,
		pause: 1,
		timeout: 8500
	});
	
	
	$('#header .rss a').hover(function(){ 
			$(this).stop().animate({top: '-4'}, 200);
       },function(){ 
        $(this).stop().animate({top: '-11'}, 300);
	});
	
	$('#footer_logo_front a').hover(function(){ 
			$(this).stop().animate({right: '7'}, 200);
       },function(){ 
        $(this).stop().animate({right: '0'}, 300);
	});
	
	$('#arrow_left').hover(function(){ 
			$(this).stop().animate({left: '11'}, 200);
       },function(){ 
        $(this).stop().animate({left: '15'}, 300);
	});
	
	$('#arrow_right').hover(function(){ 
			$(this).stop().animate({right: '11'}, 200);
       },function(){ 
        $(this).stop().animate({right: '15'}, 300);
	});
	
	$('.prev_single a, .prev_posts a').hover(function(){ 
			$(this).stop().animate({left: '0'}, 100);
       },function(){ 
        $(this).stop().animate({left: '8'}, 200);
	});
	
	$('.next_single a, .next_posts').hover(function(){ 
			$(this).stop().animate({right: '0'}, 100);
       },function(){ 
        $(this).stop().animate({right: '8'}, 200);
	});
	
	$('.ngg-gallery-thumbnail, .featured_thumbnail').hover(function(){ 
			$(this).stop().animate({top: '6'}, 100);
       },function(){ 
        $(this).stop().animate({top: '0'}, 300);
	});
	
	$('input[type="text"], textarea').focus(function() {  
		$(this).removeClass("idleField").addClass("focusField");  
		if (this.value == this.defaultValue){  
			this.value = '';  
		}  

		if(this.value != this.defaultValue){  
			this.select();  
		}  
	});  

	$('input[type="text"], textarea').blur(function() {  
		$(this).removeClass("focusField").addClass("idleField");  
		if (this.value == ''){  
			this.value = this.defaultValue;  
		}
	});		

});


	
	

