function search_() {
	string = document.getElementById('search').value;
	if(string == "") { 
		alert('Puste pole szukaj...'); 
	} else {
		self.location = '/ptez/szukaj/'+string+'';
	}
}

function n_add_() {
	string = document.getElementById('newsletter_input').value;
	if(string == "") { 
		alert('Puste pole szukaj...'); 
	} else {
		self.location = '/ptez/newsletter/zapisz/'+string+'';
	}
}

function n_del_() {
	string = document.getElementById('newsletter_input').value;
	if(string == "") { 
		alert('Puste pole szukaj...'); 
	} else {
		self.location = '/ptez/newsletter/wypisz/'+string+'';
	}
}

$(document).ready(function() {
$('ul#submenu:eq(0)> ul').hide(); 
$('ul#submenu:eq(0)> a').click(function() {
$(this).next().slideToggle('fast');
});
});
/**
  *  @name    jQuery Logging plugin
  *  @author  Dominic Mitchell
  *  @url     http://happygiraffe.net/blog/archives/2007/09/26/jquery-logging
  */

(function($)    {

	jQuery.fn.log = function(msg){
		if (window.console || console.firebug){
			msg = msg || '';
			if(msg !== '') msg += ': ';
			console.log("%s%o", msg, this);
		}
		return this;
	};

})(jQuery);



