var app = {
		
	init : function()
	{
		if ($('faq'))
		{
			this.prepareFaq();
		}
		/*if ($('banner_content'))
		{
			var so = new SWFObject(
				'/swf/partnerzy.swf', 
				"banner_content", 
				270, 
				165, 
				"8", 
				"#FFFFFF"
			);
			so.write('banner_content');
		}*/
	},
	
	prepareFaq : function()
	{
		this.currentId = 0;
		
		$$('#faq a').each(
			function(el)
			{
				if (el.id.sub('question-', '', 1) * 1 > 0)
				{
					el.onclick = function()
					{
						if (app.currentId != this.id.sub('question-', '', 1))
						{
							$$('#faq .answer').each(
								function(elm)
								{
									if (elm.style.display != 'none')
									{
										Effect.SlideUp(
											elm,
											{
												duration : 0.5
											}
										)
									}
								}
							)
							
							Effect.SlideDown(
								$(this.id.sub('question-', 'answer-', 1)),
								{
									duration : 0.5
								}
							);
							
							app.currentId = this.id.sub('question-', '', 1);
						}
						
						return false;
					}
				}
			}
		)
	}
}

function show(el)
{
	if (console && console.log)
	{
		console.log(el);
	}
	else
	{
		alert(el);
	}
}
