//  reverse fade 
  $(document).ready(function(){
   $(".rfade").fadeTo(1100, 1.0); // This sets the opacity of the thumbs to fade down to 0% when the page loads

   $(".rfade").hover(function(){
   $(this).fadeTo(1100, 0.0); // This should set the opacity to 100% on hover
   },function(){
   $(this).fadeTo(1100, 1.0); // This should set the opacity back to 0% on mouseout
   });
   });  
  
  //  fade 
  $(document).ready(function(){
   $(".fade").fadeTo(1100, 0); // This sets the opacity of the thumbs to fade down to 0% when the page loads

   $(".fade").hover(function(){
   $(this).fadeTo(1100, 1.0); // This should set the opacity to 100% on hover
   },function(){
   $(this).fadeTo(1100, 0); // This should set the opacity back to 0% on mouseout
   });
   });  
  
  
// .rollover
jQuery(function($) {
    $(document).ready(function(){
       $(".rollover").hover(
 function() {
  curr = $(this).find("img").attr("src");
  overlen = curr.length;
  over = curr.substr(0, overlen-4);
  over = over+'_o.png';
  $(this).find("img").attr({ src: over});
 },
 function() {
  $(this).find("img").attr({ src: curr});
 }
)

});
	
});

$(".rollover").find("img").each(function(i) {
  temp = this.src;
  prelen = temp.length;
  pre = temp.substr(0, prelen-4);
  pre = pre+'_o.png';
  preload_image_object = new Image();
  preload_image_object.src = pre;
});

//fading links
jQuery.fn.dwFadingLinks = function(settings) {
	settings = jQuery.extend({
		color: '#ff8c00',
		duration: 1000
	}, settings);
	return this.each(function() {
		var original = $(this).css('color');
		$(this).mouseover(function() { $(this).animate({ color: settings.color },settings.duration); });
		$(this).mouseout(function() { $(this).animate({ color: original },settings.duration); });
	});
};

$(document).ready(function() {
$('.x').dwFadingLinks({
color: '#42F5F5',
duration: 1200
});
});


// http links open in new window, dont need to use target=_blank
  $(function() {
	$('a[href^=http]').click( function() {
		window.open(this.href);
		return false;
	});
});


 // popup bubble
    $(function () {
        $('.splashff').each(function () {
            var distance = 10;
            var time = 250;
            var hideDelay = 500;

            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var trigger = $('.trigger', this);
            var info = $('.popup', this).css('opacity', 0);


            $([trigger.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -80,
                        left: 150,
                        display: 'block'
                    }).animate({
                        top: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });

   

$(document).ready(function(){
		
		$(".nappy").css('opacity',0.0);
		  $(".nappy").fadeTo(2000, 0).fadeTo(3000, .8, function () {

		
		
		});
		});

  $(document).ready( function(){
							  $('#add1').innerfade({ 
														speed: 'slow', 
														timeout: 4000, 
														type: 'sequence', 
														containerheight: '312px' }); 
						} ); 
  
 
