// JavaScript Document
$(function() {
	if(!$.support.placeholder) { 
		var active = document.activeElement;
		$(':text, textarea').focus(function () {
			if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) {
				$(this).val('').removeClass('hasPlaceholder');
			}
		}).blur(function () {
			if ($(this).attr('placeholder') != '' && ($(this).val() == '' || $(this).val() == $(this).attr('placeholder'))) {
				$(this).val($(this).attr('placeholder')).addClass('hasPlaceholder');
			}
		});
		$(':text').blur();
		$(active).focus();
		$('form').submit(function () {
			$(this).find('.hasPlaceholder').each(function() { $(this).val(''); });
		});
	}
});


var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17597409-1']);
_gaq.push(['_setDomainName', 'nearpod.com']);
_gaq.push(['_setAllowHash', 'false']);
_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);
})();

$(document).ready(function(){
	$("#menuPrincipal .subMenu li").hover(function(){
			switch($("#menuPrincipal .subMenu li").index($(this)[0])){
				case 0:
					$("#menuPrincipal .subMenu .txt").html("NearEducation");
				break;
				case 1:
					$("#menuPrincipal .subMenu .txt").html("NearRecruiting");
				break;
				case 2:
					$("#menuPrincipal .subMenu .txt").html("NearPresentations");
				break;
				case 3:
					$("#menuPrincipal .subMenu .txt").html("NearEvents");
				break;
				/*case 4:
					$("#menuPrincipal .subMenu .txt").html("NearFashion");
				break;
				case 5:
					$("#menuPrincipal .subMenu .txt").html("NearTab");*/
				break;
				
			}
	}, function(){
			$("#menuPrincipal .subMenu .txt").html("");
	});
	//
	
});
