
jQuery(document).ready(function() {
var profileLink = '<span style="font-size: 18px;"><a href="https://hpso.memberclicks.net/index.php?option=com_mc&view=mc&Itemid=106" ><img src="https://hpso.memberclicks.net/assets/hpso-myprofilebutton-alt.gif"</a></span>';
var contents = jQuery('#mcSimpleLogin').html();
 if(contents == 'Logout')
{
// old home page  
jQuery('#loginCell p strong a').remove();
  jQuery('#loginCell strong').append(profileLink);
  jQuery('#joinRow').detach();

// new home page
var loginChangeParent = jQuery('#loginChange').parent();
jQuery('#loginChange').remove();
loginChangeParent.append('<p style="text-align: center;">'+profileLink+'</p>');
}
});

jQuery(function(){
jQuery("head").append("<link>");
    css = jQuery("head").children(":last");
    css.attr({
      rel:  "stylesheet",
      type: "text/css",
      href: "http://web.hardyplantsociety.org/memberclicks/slides.css"
    });
jQuery("head").append("<link>");
    css = jQuery("head").children(":last");
    css.attr({
      rel:  "stylesheet",
      type: "text/css",
      href: "http://web.hardyplantsociety.org/memberclicks/fix.css"
    });

});

jQuery(function(){
			jQuery('#slides').slides({
				preload: true,
				preloadImage: 'img/loading.gif',
				play: 7500,
				pause: 5000,
				hoverPause: true,
				animationStart: function(current){
					jQuery('.caption').animate({
						bottom:-35
					},100);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationStart on slide: ', current);
					};
				},
				animationComplete: function(current){
					jQuery('.caption').animate({
						bottom:0
					},200);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationComplete on slide: ', current);
					};
				},
				slidesLoaded: function() {
					jQuery('.caption').animate({
						bottom:0
					},200);
				}
			});
		});

