$(document).ready(function(){

	$('#pasekinfo marquee').marquee();

$('#menu-container ul li a img[id^="m"]').mouseover(function(){
	  $("#"+$(this).attr("id")).attr('src','/images/'+$(this).attr("id")+'_1.png');
    }).mouseout(function(){
      $("#"+$(this).attr("id")).attr('src','/images/'+$(this).attr("id")+'_0.png');
    });

$('.grupy').mouseover(function(){
	  $(this).attr('src','/images/grupy-tab-on.png');
    }).mouseout(function(){
     $(this).attr('src','/images/grupy-tab-off.png');
    });

$(".widget_social").hover(function(){  
  
         $(".widget_social").stop(true, false).animate({top:"0"},"medium").animate({right:"0"},"medium");  
  
      },function(){  
  
         $(".widget_social").stop(true, false).animate({right:"-292"},"fast").animate({top:"230"},"fast");  
  
      },500);  
	

	
});

Shadowbox.loadSkin('classic', '/scripts/shadowboxskin');
window.onload = Shadowbox.init;

//<![CDATA[

function Map(){

    Shadowbox.open({
        player:     'html',
        content:    '',
        height:     550,
        width:      720,
        options:    {
            onFinish: function(item){
                if(GBrowserIsCompatible()){
                    var map = new GMap2(document.getElementById('shadowbox_content'));
					var geocoder = new GClientGeocoder();
					var address = "Rynek 16, Zywiec, PL";
					geocoder.getLatLng(address,function(point) {
					if (!point) {
						alert(address + " nie zostal odnaleziony");
					} else {
						map.setCenter(point, 15);
						var marker = new GMarker(point);
						map.addOverlay(marker);
						marker.openInfoWindowHtml('<img src="/images/se_logo_gm.gif" alt="SportEvents Biuro Turystyki i Sportu" /><div style="font-size: 11px;margin-left:10px;height:100px">ul. Rynek 16<br/>34-300 Zywiec<br/>Tel. (+48) 33 475 65 60, (+48) 33 475 65 61<br/>Tel/Fax: (+48) 33 475 65 63<br/>kom. (+48) 691 95 44 67</div>');
						map.addControl(new GLargeMapControl());
					}
					}
					);               

                
                }
            }
        }
    });

};

//]]>
