﻿// html5 for ie

function html5forIE() {
	document.createElement('header');
	document.createElement('nav');
	document.createElement('section');
	document.createElement('article');
	document.createElement('aside');
	document.createElement('footer');
}

jQuery(document).ready(function() {


	jQuery.fn.exists = function() { return jQuery(this).length>0; }


	// Focus border remove

	jQuery("a").focus(function() {
		jQuery(this).blur();
	});
	


	// Clear input
	
	var startValue = '';
	jQuery('input[type="text"]').focus(function() {
		startValue = this.value;
		if (this.value == startValue) {this.value='';}
	})
	jQuery('input[type="text"]').blur(function() {
		if (this.value=='') {this.value = startValue;}
	})


});

