
jQuery(document).ready(function(){
	
	

	
	//FAQ
	jQuery('.listaFAQ').children('dd').css({display: "none"});
	var strHref = window.location.href;
	var strHrefparam=(strHref.split("="));
	var strHrefparamValor = "#" + strHrefparam[1];
	jQuery(strHrefparamValor).slideDown();
	jQuery('.listaFAQ').children('dt').hover(function (){
		$(this).find('span').css({backgroundColor: "#413F3C"})},
		function (){$(this).find('span').css({backgroundColor: "#0096C4"});});
	jQuery('.listaFAQ').find('dt').click(function() {
		var answer = $(this).next();
		if (answer.is(':visible')) {
			answer.slideUp();
			//answer.toggle("slow");
		} else {
			answer.slideDown();
		}
	});
	
	

	// Home IMG CLICK + capitulos
	 /*jQuery('.programas').find('img').click(function() {
		var answer =  jQuery(this).next().next().next();
		if (answer.is(':visible')) {
			answer.slideUp();
			//answer.toggle("slow");
			 jQuery(this).next().next().children('span').text("+");
			 jQuery(this).next().next().children('span').css({paddingLeft: "0"});
			 jQuery(this).next().next().children('span').css({paddingRight: "7px"})
		} else {
			answer.slideDown();
			 jQuery(this).next().next().children('span').text("-");
			 jQuery(this).next().next().children('span').css({paddingLeft: "2px"});
			 jQuery(this).next().next().children('span').css({paddingRight: "9px"});
		}
	});


	// Home H3 + capitulos
	 jQuery('.programas').find('h3').click(function() {
		var answer =  jQuery(this).next();
		if (answer.is(':visible')) {
			answer.slideUp();
			//answer.toggle("slow");
			 jQuery(this).children('span').text("+");
			 jQuery(this).children('span').css({paddingLeft: "0"});
			 jQuery(this).children('span').css({paddingRight: "7px"})
		} else {
			answer.slideDown();
			 jQuery(this).children('span').text("-");
			 jQuery(this).children('span').css({paddingLeft: "2px"});
			 jQuery(this).children('span').css({paddingRight: "9px"});
		}
	});*/
	
	
	/****** POP UP VideoTutorial *********/
	
   jQuery('#videoTutorial').children('a').click(function() {
     jQuery('#videoTutorial').children('a').attr("href");
		window.open('http://descargas.encuentro.gov.ar/pop/tutorial_video.html', 'newWin', "status,scrollbars,resizable,location,height=512,width=560");
		 return false; 
	});

	
});
