jQuery(document).ready(function($j){
   //$j("#sharelink").tooltip(); 
   $j("#register-form").validate();
   $j("#donate-form").validate();
   //console.log($j("#register-form"));
   //console.log(b);
	//$j('#slider').nivoSlider({effect:'fade'});
	//$j('ul#ngg-gallery-1-89').bxSlider({mode:'fade'});
	$j('#ngg-gallery-1-89').galleria({transition:'fade', thumb_crop: 'true', image_crop: 'false'});
	$j('ul#ngg-gallery-3-5').bxSlider({mode:'fade', auto:'true', pager:'true', speed:2000});
	//$j('ul#ngg-gallery-3-5').galleria();
 
    $j('img.captify').captify({animation:'always-on', spanWidth:'85%'}); 
  
    //$j("ul.mission li").tooltip();
    
    if($j("ul.definitions li").length > 0)
    {
        $j("ul.definitions li").qtip(
        {
           // content: $j(this).attr("title"),
           // content: "Sample definition",
            style: {
                name:'cream',
                tip:true
            },
            position: {
              corner: {
                 target: 'topLeft',
                 tooltip: 'bottomLeft'
              }
            }
        
        });
    }
  /*  
    $j("#sharelink").qtip(
    {
        //content: $j(this).
        content: "<a href='http://www.twitter.com'><img src='/wp-content/themes/meditation/images/twitter_32.png'></a><a href='http://www.facebook.com'><img src='/wp-content/themes/meditation/images/facebook_32.png'></a><a href='mailto:?subject=Special Event at Meditation Mount&body=Check out this event at Meditation Mount'><img src='/wp-content/themes/meditation/images/email_32.png'></a>",
        style: {
            name:'cream'
        },
        position: {
          corner: {
             target: 'bottomLeft'
          }
        },
        hide:{
        
            
            fixed:true
        }
    
    });   
*/    
    if($j("#sharelink").length > 0)
    {
        $j("#sharelink").qtip(
        {
            //content: $j(this).
            content: $j("#sharecontent").html(),
            style: {
                name:'cream'
            },
            position: {
              corner: {
                 target: 'bottomLeft'
              }
            },
            hide:{
            
                
                fixed:true
            }
        
        });
    }
    
    
});
