// JavaScript Document
$(function(){
	//-----------------------------------------------Tabs-----------------------------------------------
	$("ul.ultabs li").click(function(){
		$("ul.ultabs li").css("background","#ffffff");
		$("ul.ultabs li").css("border-bottom-color","#666666");
		$(this).css("background","#ededed");
		$(this).css("border-bottom-color","#cccccc");
		$("div.tabcont").hide()
		$("div#"+this.id).slideDown()
	})
	//-----------------------------------------------Acordeon-----------------------------------------------
	$("div.acordeondiv").click(function(){
		val = $("li#li"+this.id).css("display");

		if (val == 'none'){
			$("div.acordeondiv").css("background","#CCC");
			$("div.acordeondiv").css("color","#000");
			$(this).css("background","#ff0066");
			$(this).css("color","#ffffff");
			$("li.liacordeon").slideUp()
			$("li#li"+this.id).slideDown()
		}
		else{
			$(this).css("background","#CCC");
			$(this).css("color","#000");
			$("li#li"+this.id).slideUp()

		}
	})

	//-----------------------------------------------Animacion Inicio-----------------------------------------------



});


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-342216-3']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
