img_tmp='';

function hoverearImagenesMenu() {
	$("li", "#header ul").hover(
			function(e) {
				$img = $("img", $(this));
				img_tmp=$img.attr('src');
				
				var temp = img_tmp.replace(/\.png$/, "_hover.png");
				$img.attr('src', temp);

			}, 
			function(e) {
				$img = $("img", $(this));
				
				img_tmp=$img.attr('src');
				
				var temp = img_tmp.replace(/\_hover/, "");
				$img.attr('src', temp);
				
				//$img.attr('src', img_tmp);
			}
	);
}

function hoverearSubmitsFormularios() {
	$("input.boton").hover(
		function() { 
			$(this).css('font-style', 'italic'); 
		}, 
		function() { 
			$(this).css('font-style', 'normal'); 
		});
}

function hoverearImagenesCerrar() {
	$("div.cerrar").hover(
			function(e) {
				$(this).find("span.cierra img").attr('src', 'img/cerrar_sesion_hover.png');

			}, 
			function(e) {
				$(this).find("span.cierra img").attr('src', 'img/cerrar_sesion.png');
			}
	);
}

function hoverearImagenesStreaming() {
	$("div.clase").hover(
			function(e) {
				$(this).find("img").attr('src', 'img/acceso_clase_vivo_hover.png');

			}, 
			function(e) {
				$(this).find("img").attr('src', 'img/acceso_clase_vivo.png');
			}
	);
}

function pruebas() {
	$("div.error").jqm();  //{modal: true, overlay: 0}
	//$("div.error").jqmAddClose("a");
	$("div.error").jqmShow();
	
	$("div#contenedorModal").jqm({modal: false, overlay: 0, ajax: '@href',  trigger: 'li.verClase a'}); //target: 'div#divParaClase', , onTop: true
	
	$("input:text:first").focus();
	$(".jqmClose", "div.error").hover(
			function(e) {
				$(this).find("img").attr('src', 'img/ok_hover.png');

			}, 
			function(e) {
				$(this).find("img").attr('src', 'img/ok.png');
			}	
	);
	
	//hoverearImagenesStreaming();
	
}

