/* Author: 

*/


$(document).ready(function() {
	

	

	
    $("#newscyc").cycle({
      fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 12000,
        fx: 'scrollHorz',
        speed: 700,
		after: onAfter
    });

	$("#prodcyc").cycle({
      fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 12000,
        fx: 'fade',
        speed: 700,
		after: onAfter
    });

		function onAfter(curr, next, opts, fwd) {
		 var $ht = $(this).height();

		 //set the container's height to that of the current slide
		 $(this).parent().animate({height: $ht});
		}

		$("input[type=text], input[type=password], textarea").focus(function() {
			if( this.value == this.defaultValue ) {
				this.value = "";
			}
		}).blur(function() {
			if( !this.value.length ) {
				this.value = this.defaultValue;
			}
		});
	
});








