var toggleSearchValue = function(el, opt) {
	toggleValue(el, opt, 'wpisz wyszukiwaną frazę', 'head-search-input-default');
}, toggleShoutboxValue = function(el, opt) {
	toggleValue(el, opt, 'tutaj wpisz tekst do wysłania...', 'shoutbox-input-default');
}, toggleCommentValue = function(el, opt) {
	toggleValue(el, opt, 'tutaj wpisz treść komentarza...', 'comment-input-default');
}, toggleValue = function(el, opt, text, className) {
	if (opt && el.value == text) {
		el.value = '';
		el.className = el.className.replace(new RegExp('/' + className.replace('-', '\-') + '/'), '').replace(/^\s+|\s+$/, '');
	} else if (!opt && el.value == '') {
		el.value = text;
		el.className = (el.className + ' ' + className).replace(/^\s+|\s+$/, '');
	}
}, 
(function() {
	var el = document.getElementById('head-search-input');
	if (el && el.value == 'wpisz wyszukiwaną frazę')
		el.className = (el.className + ' head-search-input-default').replace(/^\s+|\s+$/, '');
	el = document.getElementById('shoutbox-input');
	if (el && el.value == 'tutaj wpisz tekst do wysłania...')
		el.className = (el.className + ' shoutbox-input-default').replace(/^\s+|\s+$/, '');
	el = document.getElementById('comment-input');
	if (el && el.value == 'tutaj wpisz treść komentarza...')
		el.className = (el.className + ' comment-input-default').replace(/^\s+|\s+$/, '');
})();
//var scroller  = new jsScroller(document.getElementById('shoutbox-content'), 265, 271);
//var scrollbar = new jsScrollbar(document.getElementById('shoutbox-Scrollbar-Container'), scroller, true);
