function OL_elementSupportsAttribute(element,attribute){	
	return attribute in document.createElement(element);
}

this.OL_eventInputFocus=function(event){
	if ($(this).attr('value')==$(this).attr('placeholder')){
		$(this).attr('value','');
	}
}

this.OL_eventInputBlur=function(event){
	if ($(this).attr('value')==''){
		$(this).attr('value',$(this).attr('placeholder'));
	}
}

function checkUser()
{
	alert("Username ou password inválidos");
	return false;
}

$(document).ready(function(){
	
	if (document.location.pathname.toLowerCase()=="/carreira.html"){
		$('#carreiraNavLink').addClass('select');
	}else{
		$('#main-nav li').each(function(i){				
			if ("/"+$(this).children('a').attr('href').toLowerCase()==document.location.pathname.toLowerCase()){
				$(this).addClass('select');
				return false;
			}
		});
	}
	if (!OL_elementSupportsAttribute('input','placeholder')){
		$('input').each(function(i){
			if ($(this).attr('placeholder')!=null){
				$(this).attr('value',$(this).attr('placeholder'));
				$(this).focus(OL_eventInputFocus);
				$(this).blur(OL_eventInputBlur);
			}
		});
	}
});

