Image0= new Image(600,250)
Image0.src = "../img/aka_pcb_0.jpg"
Image1= new Image(600,250)
Image1.src = "../img/aka_pcb_1.jpg"
Image2= new Image(600,250)
Image2.src = "../img/aka_pcb_2.jpg"
Image3= new Image(600,250)
Image3.src = "../img/aka_pcb_3.jpg"

Image11= new Image(603,252)
Image11.src = "../img/image1.jpg"
Image12= new Image(603,252)
Image12.src = "../img/image2.jpg"
Image13= new Image(603,252)
Image13.src = "../img/image3.jpg"
Image14= new Image(603,252)
Image14.src = "../img/image4.jpg"
Image15= new Image(603,252)
Image15.src = "../img/image5.jpg"
Image16= new Image(603,252)
Image16.src = "../img/image6.jpg"



function initialize() {
  var latlng = new google.maps.LatLng(46.354131,14.164097);
  var myOptions = {
    zoom: 6,
    center: latlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById("map_canvas"),
      myOptions);

//var image = 'myflag.png';
var beachMarker = new google.maps.Marker({
    position: latlng,
    map: map
});
}

function slideSwitch() {
    var $active = $('#slideshow2 IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow2 IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow2 IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 3000 );
});
