// JavaScript Document


$(document).ready(function(){
	$('.border_white').wrapInner('<div class="inner-border" />');
	$('.border_grey').wrapInner('<div class="inner-border" />');
});

//FORM lable/value animation
$(document).ready(function(){
	$("#page_bottom_content .wpcf7-form-control-wrap input").each(function(){
		$(this).click(function () {
			if (this.value == this.defaultValue) {this.value = '';}
		});
		$(this).blur(function () {
			if (this.value === '') {this.value = this.defaultValue;}
		});
	});
	$("#page_bottom_content .wpcf7-form-control-wrap textarea").each(function(){
		$(this).click(function () {
			if (this.value == this.defaultValue) {this.value = '';}
		});
		$(this).blur(function () {
			if (this.value === '') {this.value = this.defaultValue;}
		});
	});
});

// IE6 fix
$(document).ready(function(){
	$("*").hover(
		function(){$(this).addClass("hover");}, 
		function(){$(this).removeClass("hover");}
	);
});
// Crap browser
$(document).ready(function(){
	if($.browser.msie && $.browser.version.substr(0,1)<="6") {
		$("body").prepend('<div class="old_browser_warning" style="width:100%;padding:5px;background-color:#F00;color:#FFF;font-family:Arial,Helvetica, sans-serif;font-size:12px;z-index:999;"><p class="center"><strong>You are using a old and buggy browser. Switch to a <a style="color:#FFF;" href="http://www.mozilla.com/firefox/">normal browser</a> or consider <a style="color:#FFF;" href="http://www.microsoft.com/windows/internet-explorer">upgrading your Internet Explorer</a> to the latest version</strong></p></div>');
	}
});

