jQuery(document).ready(function(){

						   

	jQuery('a[href^=#]').click(function(){return false;});



	if(jQuery("a[rel^='prettyPhoto']").length > 0)

		jQuery("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded'});



			swapValue = [];

			jQuery("form .input").each(function(i){

				swapValue[i] = jQuery(this).val();

				jQuery(this).focus(function(){

					if (jQuery(this).val() == swapValue[i]) {

						jQuery(this).val("");

					}

				}).blur(function(){

					if (jQuery.trim(jQuery(this).val()) == "") {

						jQuery(this).val(swapValue[i]);

					}

				});

			});

		

			if((typeof iniciaOutros) == 'function'){

				iniciaOutros();

			};

					

			//BUSCA

			jQuery("#prod").autocomplete('produto-search-auto.php', {

				width: 380,

				multiple: false,

				matchContains: false 

			});

			

			//VÍDEOS

			jQuery("a[rel^='video']").prettyPhoto({});

			

			//BANNER TOPO

			jQuery(window).load(function() 

			{



			jQuery('#featured').orbit({

					 animation: 'fade',      // fade, horizontal-slide, vertical-slide, horizontal-push

					 animationSpeed: 800,    // how fast animtions are

					 timer: true, 			 // true or false to have the timer

					 advanceSpeed: 4000, 	 // if timer is enabled, time between transitions 

					 pauseOnHover: true, 	 // if you hover pauses the slider

					 startClockOnMouseOut: true, 	 // if clock should start on MouseOut

					 startClockOnMouseOutAfter: 1000,	// how long after MouseOut should the timer start again

					 directionalNav: true, 		 // manual advancing directional navs

					 captions: false, 			 // do you want captions?

					 captionAnimation: 'fade', 	 // fade, slideOpen, none

					 captionAnimationSpeed: 800, // if so how quickly should they animate in

					 bullets: false,			 // true or false to activate the bullet navigation

					 bulletThumbs: false,		 // thumbnails for the bullets

					 bulletThumbLocation: '',	 // location from this file where thumbs will be

					 afterSlideChange: function(){} 	 // empty function 

			});

							



			});



	

});




