// Initialize colorbox for gallery links
$(function() {
if (!parent.jQuery.colorbox) return;
// Initialize Colorbox for the IFRAME links, setting a loading width and height and
// telling Colorbox to wait until the IFRAME finishes before calling onComplete
$(".popup").colorbox({
"iframe": true,
"fastIframe": false,
"innerWidth": 640,
"innerHeight": 360,
"scrolling": false,
"onComplete": function() {
// Do some work to automatically calculate the height and width of the IFRAME's content
var iframe = $("iframe.cboxIframe"),
body = iframe.contents().find("body"),
floatStyle = body.css("float");
// Float the BODY so that it assumes a minimal width
body.css("float", "left");
// Resize the colorbox
$.colorbox.resize({ "innerWidth": iframe.contents().width(), "innerHeight": iframe.contents().height() })
// Remove our float style on the BODY
body.css("float", floatStyle);
}
});
});
var rotateSpeed = 5000; // Milliseconds to wait until switching tabs.
var currentTab = 0; // Set to a different number to start on a different tab.
var numTabs; // These two variables are set on document ready.
//var autoRotate;
function openTab(clickedTab) {
var thisTab = $(".tabbed-box .tabs a").index(clickedTab);
$(".tabbed-box .tabs li a").removeClass("active");
$(".tabbed-box .tabs li a:eq("+thisTab+")").addClass("active");
$(".tabbed-box .tabbed-content").hide();
$(".tabbed-box .tabbed-content:eq("+thisTab+")").show();
currentTab = thisTab;
}
$(document).ready(function() {
$(".tabbed-content");
numTabs = $(".tabbed-box .tabs li a").length;
$(".tabbed-box .tabs li a").click(function() {
openTab($(this)); return false;
});
// $(".tabbed-box").mouseover(function(){clearInterval(autoRotate)})
// .mouseout(function(){autoRotate = setInterval("rotateTabs()", rotateSpeed)});
$(".tabbed-box .tabs li a:eq("+currentTab+")").click()
$(".tabbed-box").mouseout();
});
jQuery(document).ready(function($) {
$(".scroll").click(function(event) {
event.preventDefault();
$('html,body').animate( { scrollTop:$(this.hash).offset().top } , 1000);
} );
} );
if (Modernizr.geolocation) {
}