// JavaScript Document
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        //carousel.startAuto(0); //stop autoscroll
    });

    carousel.buttonPrev.bind('click', function() {
        //carousel.startAuto(0); //stop autoscroll
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

$(document).ready(function(){

        $("a[rel='example1']").colorbox({
			transition:"fade",
			maxWidth:"90%", 
			maxHeight:"90%"
		});
        $(".colorbox").colorbox({iframe:true, width:500, height:500}); 
		
		jQuery('.carusel').jcarousel({
			scroll: 1,
			auto: 5,
	        wrap: 'last',
			initCallback: mycarousel_initCallback
		});
                
       //popup
       $("#_js_popup_close").click(function(){
           $("#_js_popup1").slideUp("fast");
           return false;
       });
                
                
});	

	  function initialize() {
		var latlng = new google.maps.LatLng(49.718434, 17.218816);
		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:"Hello World!"
		});
	  }		

	var flashvars = {};
	var params = {};
	params.wmode = "transparent";
	var attributes = {};
	swfobject.embedSWF("/woodlife.swf", "house_flash", "538", "400", "8.0.0", false, flashvars, params, attributes);	
