$(document).ready(function() {
	$('.header-search-field').click( function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});

	$('.header-search-field').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
		}
	});

	$('.tags-search-field').click( function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});

	$('.tags-search-field').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
		}
	});

	$('.content-search-field').click( function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});

	$('.content-search-field').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
		}
	});
});


$(function() {
	$('#content-tab-box > ul').tabs();
});
$(function() {
	$('#resources-tab-box > ul').tabs();
});


$(function()
{
	$('.tags-list').jScrollPane({showArrows: true});
});


$(document).ready(function(){
	$('.tooltip').colorTip({color:'black'});
});


$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square'});
});

