	   $(function(){
  
			$('#slider1').anythingSlider({
				startStopped    : false, // If autoPlay is on, this can force it to start stopped
				width           : 720,   // Override the default CSS width
				height			:  240,
				theme           : 'metallic',
				autoPlayLocked  : true,  // If true, user changing slides will not stop the slideshow
				resumeDelay     : 10000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
				onSlideComplete : function(slider){
					// alert('Welcome to Slide #' + slider.currentPage);
				}
			});
  
		});

	   $(function(){
  
			$('#slider-parceiros').anythingSlider({
				startStopped    : false, // If autoPlay is on, this can force it to start stopped
				width           : 115,   // Override the default CSS width
				height			: 115,
				theme           : 'parceiros',
				autoPlayLocked  : true,  // If true, user changing slides will not stop the slideshow
				resumeDelay     : 10000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
				
				 // Navigation
				 startPanel          : 1,         // This sets the initial panel
				 hashTags            : false,      // Should links change the hashtag in the URL?
				 buildArrows         : false,      // If true, builds the forwards and backwards buttons
				 buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
				 navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
				 forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
				 backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			});
  
		});

	   $(function(){
  
			$('#slider-marcas').anythingSlider({
				startStopped    : false, // If autoPlay is on, this can force it to start stopped
				width           : 520,   // Override the default CSS width
				height			: 55,
				theme           : 'parceiros',
				autoPlayLocked  : true,  // If true, user changing slides will not stop the slideshow
				resumeDelay     : 10000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
				animationTime   : 4000,
				
				 // Navigation
				 startPanel          : 1,         // This sets the initial panel
				 hashTags            : false,      // Should links change the hashtag in the URL?
				 buildArrows         : false,      // If true, builds the forwards and backwards buttons
				 buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
				 navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
				 forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
				 backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			});
  
		});
	   
		$(document).ready(function() {
			$('#btnAdd').click(function() {
				var num		= $('.clonedInput').length;	// how many "duplicatable" input fields we currently have
				var newNum	= new Number(num + 1);		// the numeric ID of the new input field being added

				// create the new element via clone(), and manipulate it's ID using newNum value
				var newElem = $('#input' + num).clone().attr('id', 'input' + newNum);

				// manipulate the name/id values of the input inside the new element
				newElem.children(':first').attr('id', 'name' + newNum).attr('name', 'name' + newNum);

				// insert the new element after the last "duplicatable" input field
				$('#input' + num).after(newElem);

				// enable the "remove" button
				$('#btnDel').attr('disabled','');

				// business rule: you can only add 5 names
				if (newNum == 5)
					$('#btnAdd').attr('disabled','disabled');
			});

			$('#btnDel').click(function() {
				var num	= $('.clonedInput').length;	// how many "duplicatable" input fields we currently have
				$('#input' + num).remove();		// remove the last element

				// enable the "add" button
				$('#btnAdd').attr('disabled','');

				// if only one element remains, disable the "remove" button
				if (num-1 == 1)
					$('#btnDel').attr('disabled','disabled');
			});

			$('#btnDel').attr('disabled','disabled');
		});

		function changeLine(name,opt){
			var lista = document.getElementsByName(name);
			for (i=0; i<lista.length; i++){
			  lista[i].style.background = opt;
			}
		}
