// JavaScript Document
	  $(document).ready(function(){
		  //Examples of how to assign the ColorBox event to elements.
		  /*$('a[@rel*=lightbox]').colorbox({transition:"fade"});*/
		  $("a[rel='example1']").colorbox({transition:"fade"});
		  $(".colorbox").colorbox({iframe:true, width:500, height:500});	
			
			$('.content_home_banner_2').css('background-position','0px -146px');
			
			$('.content_home_banner_1').hover(
				function(){
					$('.content_home_banner_2').css('background-position','0px 0px');
					$('.content_home_banner_3').css('background-position','0px 0px');
					$(this).css('background-position','0px -146px');
				},
				function(){
					//$(this).css('background-position','0px 0px');
				}
			);
			$('.content_home_banner_2').hover(
				function(){
					$('.content_home_banner_1').css('background-position','0px 0px');
					$('.content_home_banner_3').css('background-position','0px 0px');
					$(this).css('background-position','0px -146px');
				},
				function(){
					//$(this).css('background-position','0px 0px');
				}
			);
			$('.content_home_banner_3').hover(
				function(){
					$('.content_home_banner_1').css('background-position','0px 0px');
					$('.content_home_banner_2').css('background-position','0px 0px');
					$(this).css('background-position','0px -146px');
				},
				function(){
					//$(this).css('background-position','0px 0px');
				}
			);
			
			$("#flowpanes").scrollable({ circular: true}).autoscroll({ autoplay: true, interval: 8000 });
			
			jQuery('a.email').each(function(i) {
					var text = $(this).text();
					var title = $(this).attr("title");
					var title_address = title.replace("(na)", "@");
					var text_address = text.replace("(na)", "@");
					$(this).attr('href', 'mailto:' + title_address);
						$(this).text(text_address);
						$(this).attr("title",title_address);
				});
				
			//onclick reset input value
				$('.form_input').focus(
					function() {
						if (this.value == this.defaultValue) {
							this.value = '';
						}
					}
					);
				$('.form_input').blur(
					function() {
						if (this.value == '') {
							this.value = this.defaultValue;
						}
					}
				);
			
	  });	
			
	  function initialize() {
		var latlng = new google.maps.LatLng(49.57676, 17.23272);
		var myOptions = {
		  zoom: 14,
		  scrollwheel: false,
		  center: latlng,
		  mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
		  var marker = new google.maps.Marker({
			  position: latlng, 
			  map: map, 
			  title:"F & B COMPANY, s.r.o."
		  });	
	  }				
