$(document).ready(function() {
	$('.tm_bt1').hover(function() {
		$(this).find('div.rozMn1').slideDown('fast');
	}, function() {
		$(this).find('div.rozMn1').slideUp('fast');
	});

	$('.gal1_td').hover(function(){
		$(this).find('.gal1_img').animate({height: '60px'}, 'fast');
		$(this).find('.gal1_div').slideDown('fast');
	}, function(){
		$(this).find('.gal1_img').animate({height: '170px'}, 'fast');
		$(this).find('.gal1_div').slideUp('fast');
	});

	$(".imgb").fancybox({
		'type':'image', 'hideOnContentClick':true, 'transitionIn':'elastic', 'transitionOut':'elastic', 'titleShow':true, 'titlePosition':'over'
	});		
	$("a[rel=example_group]").fancybox({
		'type':'image','transitionIn':'elastic','transitionOut':'elastic','titlePosition':'over'
	});
	$(".movieUp").fancybox({
		'padding':0, 'autoScale':true, 'transitionIn':'elastic', 'transitionOut':'elastic', 'titleShow':true, 'title':this.title, 'type':'swf', 'swf':{'wmode':'transparent', 'allowfullscreen':'true'}
	});
});

function showSWF(plik, width, height, bgcolor, flashVars) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+width+'" height="'+height+'" id="'+plik+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+plik+'" />');
	document.write('<param name="id" value="'+plik+'" />');
	document.write('<param name="menu" value="false" />');
	if(flashVars.length>0)
		document.write('<param name="flashVars" value="'+flashVars+'"/>');
	document.write('<param name="quality" value="high" />');
	if(bgcolor.length>0) 
		document.write('<param name="bgcolor" value="'+bgcolor+'" />');
	else
		document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+plik+'" quality="high" ');
	if(bgcolor.length>0) 
		document.write('bgcolor="'+bgcolor+'"');
	else
		document.write('wmode="transparent"');
	if(flashVars.length>0)
		document.write(' flashVars="'+flashVars+'"');
	document.write(' menu="false"');
	document.write(' width="'+width+'" height="'+height+'" name="'+plik+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function showMail(cz1, cz2) {
	document.write('<a href="mailto:'+cz1+'@'+cz2+'">'+cz1+'@'+cz2+'</a>');
}

var theInt2=null;
clearInterval(theInt2);
theInt2=setInterval(function(){
	$.post('/jsData.php',{p:1}, function(data) {
		$('#right_partners').html(data);
	});
}, 5000);

