﻿$(document).ready(function() {
	html.links();
	html.inputs();
});

html = {
	links: function() {
		$("a[rel=external]").attr({target:"_blank"}).addClass("external");
	},
	inputs: function() {
		$("#login").focus(function(event) { if ($(this).val()=="логин") $(this).val(""); }).blur(function(event) { if ($(this).val()=="") $(this).val("логин")});
		$("#password").focus(function(event) { if ($(this).val()=="пароль") $(this).val(""); }).blur(function(event) { if ($(this).val()=="") $(this).val("пароль")});
	}
}
