// 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"});
				$("a[rel='plocha']").colorbox({iframe:true, width:571, height:600});
				$("a[rel='plocha2']").colorbox({iframe:true, width:571, height:600});	
				$("a[rel='kontakt']").colorbox({iframe:true, width:571, height:470});	
				$("a[rel='upload_window']").colorbox({iframe:true, width:571, height:500});	
				$("a[rel='reference_window']").colorbox({iframe:true, width:600, height:515});	
				$('#my_dropdown').sSelect();
				
				//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;
						}
					}
				);	
				
				$('.form_textarea').focus(
					function() {
						if (this.value == this.defaultValue) {
							this.value = '';
						}
					}
					);
				$('.form_textarea').blur(
					function() {
						if (this.value == '') {
							this.value = this.defaultValue;
						}
					}
				);
				
				$('#photos').galleryView({
					panel_width: 485,
					panel_height: 270,
					frame_width: 112,
					frame_height: 70,
					background_color: 'transparent',
					nav_theme: 'dark',
    				border: 'none',
					filmstrip_size: 4,
    				pause_on_hover: true					
				});
				
				$('.page_menu_button').hover(
				  function () {
				    $("#obsah").hide();				  
					var myvar = $(this).attr('id');
					var arr = myvar.split('_');
					//alert(arr[1]);
					$("#obsah_" + arr[1]).show();					  

				  },
				  function () {
					$("#obsah").show();	
					var myvar = $(this).attr('id');
					var arr = myvar.split('_');
					//alert(arr[1]);
					$("#obsah_" + arr[1]).hide();						
				  }			
				);
			});									
			
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		var attributes = {};
		swfobject.embedSWF("/main.swf", "main_flash", "864", "558", "8.0.0", false, flashvars, params, attributes);					
		
	  function initialize() {
		var latlng = new google.maps.LatLng(49.580070, 17.280338);
		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 image = 'images/marker.png';
		var marker = new google.maps.Marker({
			  position: latlng, 
			  map: map,
			  icon: image
		});
	  }			
