$(document).ready(function () {
    $("div#header a.contactus").click(function () {
        $("div#contactus").slideToggle("slow");
		$("div#header a.contactus").toggleClass("contactusselected");
        return false;
    });
	$("div#homepage_content_right a.contactus").click(function () {
        $("div#contactus").slideToggle("slow");
		$("div#header a.contactus").toggleClass("contactusselected");
        return false;
    });
	$("div#homepage_content_right a.contactusimage").click(function () {
        $("div#contactus").slideToggle("slow");
		$("div#header a.contactus").toggleClass("contactusselected");
        return false;
    });
    $("div#contactus a.contactus").click(function () {
        $("div#contactus").slideToggle("slow");
		$("div#header a.contactus").toggleClass("contactusselected");
        return false;
    });
    $("div#footer_col2 ul li a.contactus").click(function () {
        $("div#contactus").slideToggle("slow");
		$("div#header a.contactus").toggleClass("contactusselected");
        return false;
    });
});

function imagescroller_initCallback(carousel) {
    jQuery('.next_nav a').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('.previous_nav a').bind('click', function() {
        carousel.prev();
        return false;
    });
};

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#imagescroller").jcarousel({
        scroll: 1,
		auto: 5,
		wrap: 'circular',
        initCallback: imagescroller_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
});

  (function() {
    $(document).ready(function() {
      // As soon as the DOM is ready, make the example invisible
      $('div#wrapper div#content').css('visibility', 'hidden');
    });
    try {
      Typekit.load({
        active: function() {
          // As soon as the fonts are active, fade in the example
          // Don't fade in browsers that don't do proper opacity, like IE
          if (jQuery.support.opacity) {
            $('div#wrapper div#content').css('visibility', 'visible').hide().slideDown();
          } else {
            $('div#wrapper div#content').css('visibility', 'visible');
          }
        },
        inactive: function() {
          // If the fonts are inactive, just show the example
          // You can apply fallback styles using the wf-inactive class in your CSS
          $('div#wrapper div#content').css('visibility', 'visible');
        }
      })
    } catch(e) {}
  })();

