$(document).ready(function() {
	
	//$('.home_content a img').wrap('<div class="img_box" />');
	
	/* Topnav corner */
	$('#topnav').corner('5px bottom');
	/* Content corner */
	$('#content').corner('10px top');
	/* Footer corner */
	$('#footer').corner('10px bottom');
	
	/* Column corner */
	$('#lcolumn .top').corner('5px top');
	$('#lcolumn .bottom').corner('5px bottom');
	$('#page').corner('5px');
	
	/* Newsletter corner */
	$('.clinic_box').corner('5px');
	//$('#newsletter_box').corner('5px');
	$('#mc_signup_container').corner('5px top');
	$('#keepintouch_box').corner('5px');
	
	/* Content corner */
	$('.content_box').corner('5px');
	//$('.img_box').corner('5px');
	$('.newsletter_archives').corner('5px bottom');
	
	/* Subpage corner */
	$('.lnav').corner('5px tl bl');
	$('.subnav li').corner('5px tl bl');
	$('#rcol').corner('5px');
	$('#colhead').corner('5px top');
	$('#colcontent').corner('5px bottom');
	$('#subtopic').corner('5px');
	
	/* Search form */
	$('input.input_search').focus(function() {
		if($(this).attr("value") == 'Search') {
			$(this).attr({value:''});
		}
	});
	$('input.input_search').blur(function() {
		if($(this).attr("value") == '') {
			$(this).attr({value:'Search'});
		}
	});
	
	/* Newsletter form */
	$('input#mc_mv_EMAIL').attr({value:'Email Address'});
	$('input#mc_mv_FNAME').attr({value:'First Name'});
	$('input#mc_mv_LNAME').attr({value:'Last Name'});
	$('input#mc_mv_EMAIL').focus(function() {
		if($(this).attr("value") == 'Email Address') {
			$(this).attr({value:''});
		}
	});
	$('input#mc_mv_EMAIL').blur(function() {
		if($(this).attr("value") == '') {
			$(this).attr({value:'Email Address'});
		}
	});
	$('input#mc_mv_FNAME').focus(function() {
		if($(this).attr("value") == 'First Name') {
			$(this).attr({value:''});
		}
	});
	$('input#mc_mv_FNAME').blur(function() {
		if($(this).attr("value") == '') {
			$(this).attr({value:'First Name'});
		}
	});
	$('input#mc_mv_LNAME').focus(function() {
		if($(this).attr("value") == 'Last Name') {
			$(this).attr({value:''});
		}
	});
	$('input#mc_mv_LNAME').blur(function() {
		if($(this).attr("value") == '') {
			$(this).attr({value:'Last Name'});
		}
	});
	
	/* Comment form */
	if($('textarea#comment').attr("value") == '') {
		$('textarea#comment').attr({value:'Comment...'});
	}
	$('textarea#comment').focus(function() {
		if($(this).attr("value") == 'Comment...') {
			$(this).attr({value:''});
		}
	});
	$('textarea#comment').blur(function() {
		if($(this).attr("value") == '') {
			$(this).attr({value:'Comment...'});
		}
	});
	if($('input#author').attr("value") == '') {
		$('input#author').attr({value:'Name...'});
	}
	$('input#author').focus(function() {
		if($(this).attr("value") == 'Name...') {
			$(this).attr({value:''});
		}
	});
	$('input#author').blur(function() {
		if($(this).attr("value") == '') {
			$(this).attr({value:'Name...'});
		}
	});
	if($('input#email').attr("value") == '') {
		$('input#email').attr({value:'Email Address...'});
	}
	$('input#email').focus(function() {
		if($(this).attr("value") == 'Email Address...') {
			$(this).attr({value:''});
		}
	});
	$('input#email').blur(function() {
		if($(this).attr("value") == '') {
			$(this).attr({value:'Email Address...'});
		}
	});
	if($('input#url').attr("value") == '') {
		$('input#url').attr({value:'Website...'});
	}
	$('input#url').focus(function() {
		if($(this).attr("value") == 'Website...') {
			$(this).attr({value:''});
		}
	});
	$('input#url').blur(function() {
		if($(this).attr("value") == '') {
			$(this).attr({value:'Website...'});
		}
	});
	
	/* Keep In Touch */
	$('.btn_facebook2').hover(function() {
		$('.swaptxt').html('Become a Fan on Facebook');
	});
	$('.btn_twitter2').hover(function() {
		$('.swaptxt').html('Follow Us on Twitter');
	});
	$('.btn_flickr2').hover(function() {
		$('.swaptxt').html('Join our Flickr Group');
	});
	$('.btn_youtube2').hover(function() {
		$('.swaptxt').html('Subscribe to our YouTube Channel');
	});
});
