(function($){
	$.fn.clearDefault = function(){
		return this.each(function(){
			var default_value = $(this).val();
			$(this).focus(function(){
				if ($(this).val() == default_value) $(this).val("");
			});
			$(this).blur(function(){
				if ($(this).val() == "") $(this).val(default_value);
			});
		});
	};
	})(jQuery);


$(document).ready(function() {



	/* 	EXTERNAL LINKS
		-------------------------------------------------------------*/

		$('a.external').click( function() {
			window.open( $(this).attr('href') );
			return false;
		});
 
	

	/* 	SHOW/HIDE
		----------------------------------------------------------*/

		$(".faq_answer").hide();
	   
		$("p.faq_question").click(function () {
			$(this).next(".faq_answer").toggle();
			return false;
		});
	
	

	/* 	CYCLE EFFECT
		----------------------------------------------------------*/

		$('.s2').cycle({ 
		    fx:     'fade', 
		    speed:  'fast', 
		    timeout: 0, 
		    cleartype: true,
		    cleartypeNoBg: true,
		    next:   '#news-prev', 
		    prev:   '#news-next'   
		});



	/*	CLEAR INPUT FIELDS ONFOCUS
		-------------------------------------------------------------*/
		
	    $('input.clear').clearDefault();

});