Cufon.replace('fontFamily', 'Helvetica Neue Italic', 'textShadow', '2px 2px rgba(0, 0, 0, 0.8)').replace('h1');
		
		
		Cufon.replace('.menu a', {
		fontFamily:'Candara',
	textShadow: '2px 2px rgba(0, 0, 0, 0.8)', 
	hover: true
		});
		
		Cufon.replace('.inside-content-header h1', {
		fontFamily:'Candara',
		color: '-linear-gradient(#ffffff, #d0d0d0)',
	textShadow: '2px 2px rgba(0, 0, 0, 0.8)', 
	hover: true
		});
		//Cufon.replace('fontFamily', 'Coronet_400').replace('h1');

$(document).ready(function() {  
  // Options for SuperBGImage
	$.fn.superbgimage.options = {
	//id: 'background', // id for the containter
	  //z_index: -1,
		transition: 1, // 0-none, 1-fade, 2-slide down, 3-slide left, 4-slide top, 5-slide right, 6-blind horizontal, 7-blind vertical, 90-slide right/left, 91-slide top/down
		//randomtransition: 1, // 0-none, 1-use random transition (0-7)
		slideshow: 1, // 0-none, 1-autostart slideshow
		slide_interval: 8000, // interval for the slideshow
		randomimage: 0, // 0-none, 1-random image
		speed: 'slow' // animation speed
	};

	// initialize SuperBGImage
	$('#superbgimage').superbgimage().hide();

    $('#superbgimage').height($('#wrap').height());
  
    $('.scroll-pane').jScrollPane({showArrows: true});

  $('.inside-content-header h1').click(function() {
    if ($('#inside-holder').hasClass('active')) {
      $('#inside-holder').removeClass('active').animate({'height': '60px'}, 1000);
	  $('.inside-content-header h1').removeClass('active');
      $(this).parent().css("background-position","top");
    }
    else {
      $('#inside-holder').addClass('active').animate({'height': '239px'}, 1000);
	  $('.inside-content-header h1').addClass('active');
      $(this).parent().css("background-position","50% -44px ");
    }
  });
  
  $("#hc1").jCarouselLite({
          btnNext: ".next",
          btnPrev: ".prev",
		  auto: 2200,
		  speed: 1000
        });
  
  if ($("ul.sublinks li a[rel^='prettyPhoto']").size() > 0) {
  $("ul.sublinks li a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',slideshow:10000,theme:'dark_square'});
  }
  
  if ($("a.lightbox").size() > 0) {
    $('a.lightbox').lightBox({
      fixedNavigation: false,
      imageLoading: '/static_files/images/lightbox-ico-loading.gif',
      imageBtnClose: '/static_files/images/lightbox-btn-close.gif',
      imageBtnPrev: '/static_files/images/lightbox-btn-prev.gif',
      imageBtnNext: '/static_files/images/lightbox-btn-next.gif',
      imageBlank: '/static_files/images/lightbox-blank.gif'
    });  
  }
  
  
  $("body.open .inside-content-header h1").trigger('click');
  
  
  $('a.triggeron').trigger('click');

	$('#searchbox-top').delay(250).fadeIn('slow');

$('a.triggeron').click(function() {
  //$(this).hide();
  $('#searchbox-top').delay(250).fadeIn('slow');
});

$('a.trigger').click(function() {
  $('#searchbox-top').hide();
  //$('a.triggeron').delay(250).fadeIn('slow');
});
  
  
  
});

$(window).resize(function() {
  $('#superbgimage').height($('#wrap').height());
}); 		
