﻿/* overwrites jquery's fade functions to overcome IE7 ClearType bug */
jQuery.fn.fadeIn = function(speed, callback) { 
    return this.animate({opacity: 'show'}, speed, function() { 
        if (jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
}; 
jQuery.fn.fadeOut = function(speed, callback) { 
    return this.animate({opacity: 'hide'}, speed, function() { 
        if (jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
}; 
jQuery.fn.fadeTo = function(speed,to,callback) { 
    return this.animate({opacity: to}, speed, function() { 
        if (to == 1 && jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
};
$(document).ready(function(){
    $("div.text1").hide();
    $("div.text2").hide();
    $("div.text3").hide();
    $("div.text4").hide();
    $("div.text5").hide();});
function swapStart(classFadeIn){
    $("div.text1").fadeOut(185);
    $("div.text2").fadeOut(185);
    $("div.text3").fadeOut(185);
    $("div.text4").fadeOut(185);
    $("div.text5").fadeOut(185);
    setTimeout( "swapEnd('"+classFadeIn+"');" , 390);}
function swapEnd(classFadeIn){
    $("div."+classFadeIn).fadeIn(390);
}
function leaf_hover_on(){
    $("#leaf_on").show();		    
    $("#pop_out_text").show();
}
function leaf_hover_off(){
    $("#leaf_on").hide();
    $("#pop_out_text").hide();    
}	    