// apply inline-box only for mozilla
if( jQuery.browser.mozilla ) {
	// do when DOM is ready
	$( function() {
		// search form, hide it, search labels to modify, filter classes nocmx and error
		$( 'form.cmxform' ).hide().find( 'p>label:not(.nocmx):not(.error)' ).each( function() {
			var $this = $(this);
			var labelContent = $this.html();
			var labelWidth = document.defaultView.getComputedStyle( this, '' ).getPropertyValue( 'width' );
			// create block element with width of label
			var labelSpan = $("<span>")
				.css("display", "block")
				.width(labelWidth)
				.html(labelContent);
			// change display to mozilla specific inline-box
			$this.css("display", "-moz-inline-box")
				// remove children
				.empty()
				// add span element
				.append(labelSpan);
		// show form again
		}).end().show();
	});
};



/*
$(document).ready(function(){
						   
						   
						   
	$("#slide1").click(function(){
		$("#panel1").slideToggle("slow");
		$(this).toggleClass("active1"); return false;
	});
	
		$("#slide2").click(function(){
		$("#panel2").slideToggle("slow");
		$(this).toggleClass("active2"); return false;
	});
	
			$("#slide3").click(function(){
		$("#panel3").slideToggle("slow");
		$(this).toggleClass("active3"); return false;
	});
	
	
	
});*/





/*

$(document).ready(  function()
                    {
                        $('#btn_slide_1').click(function()
                                                {
                                                    if ($('#panel1').is(':hidden'))
                                                    {
                                                        $('#panel1').slideDown('slow');
                                                    }
                                                    else
                                                    {
                                                        $('#panel1').slideUp('slow');
                                                    }
													
                                                });
                    });





$(document).ready(  function()
                    {
                        $('#btn_slide_2').click(function()
                                                {
                                                    if ($('#panel2').is(':hidden'))
                                                    {
                                                        $('#panel2').slideDown('slow');
                                                    }
                                                    else
                                                    {
                                                        $('#panel2').slideUp('slow');
                                                    }
                                                });
                    });
$(document).ready(  function()
                    {
                        $('#btn_slide_3').click(function()
                                                {
                                                    if ($('#panel3').is(':hidden'))
                                                    {
                                                        $('#panel3').slideDown('slow');
                                                    }
                                                    else
                                                    {
                                                        $('#panel3').slideUp('slow');
                                                    }
                                                });
                    });*/