$(function() {
  $('#photos').cycle({pager:'#nav',slideExpr: 'img',timeout: 5000});
  $("a[rel^='prettyPhoto']").prettyPhoto({social_tools:false,autoplay_slideshow: false,autoplay: false,deeplinking: false});
  
 
  $(".hide").show();
  
  
});

var coordsmap;

function initialize_map() {
  var mapOptions = {
    zoom: 11,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    center: mapmark
  };

  coordsmap = new google.maps.Map(document.getElementById("mymap"),mapOptions);
        
  marker = new google.maps.Marker({
    map:coordsmap,
    draggable:false,
    position: mapmark
  });
}

function toggleFAQ(t) {
  if($(t).next().is(":visible")) {
    $(t).next().removeClass("ui-accordion-content-active");
    $(t).removeClass("ui-state-active");
    $(t).removeClass("ui-corner-top");
    $(t).addClass("ui-corner-all");
    $(t).next().hide();     
  } else {
    $(t).next().addClass("ui-accordion-content-active");
    $(t).addClass("ui-state-active");
    $(t).removeClass("ui-corner-all");
    $(t).addClass("ui-corner-top");
    $(t).next().show();     
  }
}

function init_map() {
  try {initialize_map()}catch(e){}  
}
