$(function()
{
	try
	{
		$('.email').each(function() {
			var
				text = this.firstChild,
				text_value_old = text.nodeValue,
				text_value_new = text_value_old.replace(/ at /g, '@').replace(/ dot /g, '.'),
				link = document.createElement('a');
			
			link.appendChild(document.createTextNode(text_value_new)).parentNode.setAttribute('href', 'mailto:' + text_value_new);
			
			this.parentNode.replaceChild(link, this);
		});
		$('#contact .adr').css('cursor', 'pointer').click(function() { location.replace(rymix_root); })
		$('#contact').append('<div class=\'offer\'><marquee class=\'uper\'>' + $('#contact .offer').text() + '</marquee></div>').find('ul.offer').remove();
		$('#profile h2').append(':');
		$('p:contains(\'Więcej informacji\') a').append(' →');
		// $('.set_address span:not(.postal-code, .email)').append(', ');		
	}
	catch(error)
	{
		// alert(error.message)
	}

	try

	{
		with(swfobject)
		{
			embedSWF(rymix_root + 'externals/layout/first.swf', 'flash_1', '258', '120', '9.0.0', undefined, undefined, { wmode : 'transparent' });
			embedSWF(rymix_root + 'externals/layout/second.swf', 'flash_2', '258', '120', '9.0.0', undefined, undefined, { wmode : 'transparent' });
		}
	}

	catch(error)
	{

	}
})
