$(document).ready(function(){

//  explodes ie6,7, opera11:
 
//	$("img.menubar").imgr({size:"6px",color:"#1c6608",radius:"15px"});
//	$("img.menubar").hover(
//		function(){ $(this).imgr({size:"6px",color:"#ccc",radius:"15px"})},
//		function(){ $(this).imgr({size:"6px",color:"#1c6608",radius:"15px"})});
	
//	$(".index img.menubar").imgr({size:"6px",color:"#fff",radius:"15px"});
//	$(".index img.menubar").hover(
//		function(){ $(this).imgr({size:"6px",color:"#ccc",radius:"15px"})},
//		function(){ $(this).imgr({size:"6px",color:"#fff",radius:"15px"})});
	
//	$(".thumb_pic img").imgr({size:"5px",color:"#1c6608",radius:"10px"});
//	$(".thumb_pic img").hover(
//		function(){ $(this).imgr({size:"5px",color:"#0098fe",radius:"10px"})},
//		function(){ $(this).imgr({size:"5px",color:"#1c6608",radius:"10px"})});

// --- *
	
	$('img.menubar').CreateBubblePopup();
	
	//set customized mouseover event for each button
	$('img.menubar').mouseover(function(){
	
		//show the bubble popup with new options
		$(this).ShowBubblePopup({
			innerHtml: $(this).attr('alt'),
			position: 		"top",
			align:	  		"right",
			themeName:  	"all-azure",
			innerHtmlStyle: { color: '#fff', 'text-align' : "center", "font-weight": "bold"},
			themePath:  	rpath + "skrypty/bubble-style"	
		});
	});
	
	$("a.pokazpunkt").click(function(){mapa=window.open(rpath+$(this).attr('id').replace('_','/'),"mapa","height=800,width=700");if(window.focus){mapa.focus()}return false;})
	$("a.pokazsplyw").click(function(){mapa=window.open(rpath+$(this).attr('href'),"mapa","height=900,width=870");if(window.focus){mapa.focus()}return false;})

//		$("#baner_sala_weselna").toggle().blink({delay:450});
//		$("#baner_hochzeitssaal").toggle().blink({delay:450});
//		$(".index #baner_sala_weselna").cyclicFade({
//			repeat: 0,
//			params: [
//				{fadeout:300, stayout:200, opout:0.4, fadein:300, stayin:400, opin:1.0}
//			]
//		});

/*
 	$('a.lang span').CreateBubblePopup();
 	
 	$('a.lang span').mouseover(function(){
 		$(this).ShowBubblePopup({
 			innerHtml: $(this).innerHtml,
 			position: 		"bottom",
 			align:	  		"center",
 			themeName:  	"all-azure",
 			innerHtmlStyle: { color: '#fff', 'text-align' : "center", "font-weight": "bold"},
 			themePath:  	rpath + "/skrypty/bubble-style"	
 		});
 	});
 */
//	$('a.lang').CreateBubblePopup({
//		position: 	"top",
//		align:		"right",
		
//		innerHtml:	"",
//		themeName:  "all-black",
//		innerHtmlStyle: { color: '#fff', 'text-align' : "center"},
//		themePath:  "bubble-style"			
//	});

});
