

 
			window.addEvent('domready',function(){
			
			var efekt = new Accordion('h4.droph3-item', 'div.item-content', {
    alwaysHide: true

});

			  				
					var tab_p = $$(".akapit");

	$$(".naglowek").each(function(element,index){
		var slider = new Fx.Slide(tab_p[index]);
		slider.hide();
   
		element.addEvent("click",function(){
			slider.toggle();
		});
	});



				
			});
 		
function mailsendo(ob)
{
alert(ob)

 advAJAX.assign(document.getElementById(ob), {
 
    onSuccess : function(obj) {
    document.getElementById("menu_mform").innerHTML =  obj.responseText; },
    onLoading : function(obj) { document.getElementById("menu_mform").innerHTML = "<div style=\"height: 45px; text-align : center\"><img src=\"img/ajax-loader.gif\"></div>"; },
    onError : function(obj) { alert("Error: " + obj.status); }
, disableForm : false 
});
}
function ssfm(mf)
{
advAJAX.submit(document.getElementById(mf), 
  {
    onSuccess : function(obj) { 
      document.getElementById("subscriber").innerHTML =  obj.responseText; },
    onLoading : function(obj) { document.getElementById("subscriber").innerHTML = "<div style=\"margin-top: 20px; height: 45px; margin-right : 25px; text-align : center\"><img src=\"img/ajax-loader.gif\"></div>"; },
    onError : function(obj) { 
      alert("Error: " + obj.status);
    }
  }
);
}

function ssfm2(ob)
{

 advAJAX.assign(document.getElementById(ob), {
    onSuccess : function(obj) {
    document.getElementById("subscriber").innerHTML =  obj.responseText; },
    onLoading : function(obj) { document.getElementById("subscriber").innerHTML = "<div style=\"margin-top: 20px; height: 45px; margin-right : 25px; text-align : center\"><img src=\"img/ajax-loader.gif\"></div>"; },
    onError : function(obj) { alert("Error: " + obj.status); }
, disableForm : false 
});
}

