// Skin Specific JS goes here. The jQuery library has already been loaded by the core templates. So if you use jQuery, you are ready to go.

jQuery(document).ready(function() {
	// Clear default search text on click.
	if (jQuery('#siteSearchInput').length > 0) {
		defaultSearchValue = jQuery('#siteSearchInput')[0].value;
		jQuery('#siteSearchInput').focus(function() {
			if (jQuery(this)[0].value === defaultSearchValue) {
				jQuery(this)[0].value = '';
			}
		});

		jQuery('#siteSearchInput').blur(function() {
			if (jQuery(this)[0].value === '') {
				jQuery(this)[0].value = defaultSearchValue;
			}
		});
	}
});

jQuery(function($) {
	if($.fn.tooltip) {
		$("#social-bookmarks span").tooltip({ effect: 'slide', position: 'top center',relative: 'true', offset: [7,0] }).dynamic({ classNames: 'tooltip-top tooltip-right tooltip-bottom tooltip-left', bottom: { direction: 'down', bounce: true }, left: { direction: 'left', bounce: true }, right: { direction: 'right', bounce: true } });
	}
});

