(function($){

$(document).ready(function(){

	$('#feedback p.button a').click(function(){
		var f = $('#feedback form');
		if (f.css('display') != 'block')
		{
			f.show();
			var w = f.width();
			f.css({ width: '0px' }).animate({ width: w + 'px' }, 400);
		}
		else
		{
			f.animate({ width: '0px' }, 300, function(){
				f.css({ width: 'auto' }).hide();
			});
		}
		return false;
	});
		
	

	$('#butWhat a').click(function(){
		$('#what').show().expose({
			color: null,
			opacity: 0.42,
			maskId: 'exposeMask',
			api: true,
			loadSpeed: 'fast',
			onClose: function(){
				this.getExposed().hide();
			}
		}).load();
		return false;
	});
	
		
	
	$('#but2q a, #but2q2 a').click(function(){
		$('#questionare').show().expose({
			color: null,
			opacity: 0.42,
			maskId: 'exposeMask',
			api: true,
			loadSpeed: 'fast',
			onClose: function(){
				this.getExposed().hide();
			}
		}).load();
		return false;
	});
	
	

	if ($.browser.msie) {
		try {
			document.execCommand("BackgroundImageCache", false, true);
		} catch(err){};
		if (typeof(DD_belatedPNG) != 'undefined')
		{
			DD_belatedPNG.fix('#boxes .box a span, img.png, #content form input.text, #content form input.submit');
		}
	}

});


})(jQuery);