jQuery(document).ready(function() {
	if(!jQuery.support.borderRadius) { 
		jQuery('#smooth_slider').corner("10px");
		jQuery('#main .menu').corner("10px");
	}
	if (!jQuery.support.shadowBox) {
		jQuery('#smooth_slider').dropShadow({
			left: 0,
			top: 0,
			blur: 20,
			opacity: .20,
			color: "black",
			swap: false
		});
	}
	var searchElement = '#search input[type=text]';
	var searchString = "Search Natalis";
	jQuery(searchElement).val(searchString);
	jQuery(searchElement).hover(
		function () {
			if (jQuery(this).val() == searchString) {
				jQuery(this).val("");
				jQuery(this).css('color', '#000');
			}
		},
		function () {
			if (jQuery(this).val() == "") {
				jQuery(this).val(searchString);		
				jQuery(this).css('color', '#666');
			}
		}
	);
	jQuery('#search input[type=text]').change(function() {
		if (jQuery(this).val() == "") {
			jQuery(this).val(searchString);	
			jQuery(this).css('color', '#666');
		}
	});
	jQuery('.content p').ellipsis({});
});

jQuery(function() {
	jQuery.support.borderRadius = false;
	jQuery.each(['BorderRadius','MozBorderRadius','WebkitBorderRadius','OBorderRadius','KhtmlBorderRadius'], function() {
		if(document.body.style[this] !== undefined) jQuery.support.borderRadius = true;
	});
	jQuery.support.shadowBox = false;
	jQuery.each(['BorderBox','borderBox','MozBoxShadow','WebkitBoxShadow'], function() {
		if(document.body.style[this] !== undefined) jQuery.support.shadowBox = true;
	});
});
