/*--------------------------------------------------------------------------
 *  Funçõeses javascript para o frontend
 *  author: Timoteo Bandeira - timoteo@agenciaplayers.com.br
 *--------------------------------------------------------------------------*/

/** SCRIPT PARA O MENU **/

jQuery.noConflict();

jQuery(document).ready(function() {
	jQuery("#menu li").prepend("<span></span>"); //Throws an empty span tag right before the a tag
	jQuery("#menu li").each(function() { //For each list item...
		var linkText = jQuery(this).find("a").html(); //Find the text inside of the a tag
		jQuery(this).find("span").show().html(linkText); //Add the text in the span tag
	});
	jQuery("#menu li").hover(function() {	//On hover...
		jQuery(this).find("span").stop().animate({
			marginTop: "-40" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		jQuery(this).find("span").stop().animate({
			marginTop: "0" //Move the span back to its original state (0px)
		}, 250);
	});
});

	/*	Muda a cor dos inputs */
	function corInput(idInput)
	{
		$(idInput).style.border = "1px solid #8c623a";
		$(idInput).style.background = "#fff";
	}
	/*	Volta à cor normal dos inputs */
	function voltaCorInput(idInput)
	{
		$(idInput).style.border = "1px solid #ADAA86";
		$(idInput).style.background = "#fff";
	}

	/*	Exibe texto no input */
	function limparTexto(idInput)
	{
		$(idInput).value = "";
	}

	/*	Some o texto do input */
	function voltarTexto(idInput,texto)
	{
		if($(idInput).value == "")
		{
			$(idInput).value = texto;
		}
	}


