
$(document).ready(function(){
	if($('.wp-post-image').length > 0) {
		$('.wp-post-image').each(function() {
			var img = $(this).parent('.BlogDetail').siblings('.BlogImage').children('a');
			$(img).empty();
			$(this).appendTo($(img));
			
		});
		
	}
$('input[type=text]').each(function() {
			var default_value = this.value;
			$(this).focus(function() {
				if(this.value == default_value) {
					this.value = '';
				}
			});
			$(this).blur(function() {
				if(this.value == '') {
					this.value = default_value;
				}
			});
		});
$('input[type=password]').each(function() {
			var default_value = this.value;
			$(this).focus(function() {
				if(this.value == default_value) {
					this.value = '';
				}
			});
			$(this).blur(function() {
				if(this.value == '') {
					this.value = default_value;
				}
			});
		});
$('textarea').each(function() {
			var default_value = this.value;
			$(this).focus(function() {
				if(this.value == default_value) {
					this.value = '';
				}
			});
			$(this).blur(function() {
				if(this.value == '') {
					this.value = default_value;
				}
			});
		});



	/* table classes */
	$("table tr:first-child").addClass('first');
	$("table tr:last-child").addClass('last');
	$("table th:first-child").addClass('first');
	$("table th:last-child").addClass('last');
	$("table td:first-child").addClass('first');
	$("table td:last-child").addClass('last');
      
	
var bC = $(".Breadcrumb").size();
if(bC != 0) {
	$(".Left").addClass('hasBc');
}
else {
	$(".Left").removeClass('hasBc');
	}

$("select").each(function() {
			$(this).selectbox();
});

       
     
});
$(window).load(function () {
					 
});
