

/*************************  HIGHLIGHTING CURRENT PAGE  **************************/
$(document).ready(function() {
						   
						   
		$(document).ready(function() {
    $('#events-content').cycle({
	delay:  500,
		fx:  'scrollUp' /*pickEffect()*/ // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
				   
						   
						   
						   

 $(".tooltip-target").ezpz_tooltip();
 





			/**********************************************************************************************/
			
			/*   ATTENTION, FOR THIS SCRIPT TO WORK YOU MUST SET THE HREF WITHIN THE LINK TO A FULL URL    */
			/*   FOR INSTANCE http://mydomain.com/page1.html AS OPPOSED TO  page1.html                     */
		//set the ID of the menu
		/*	
				//current location
			var href = jQuery(location).attr('href');
		
		//REPEAT THE SCRIPT BELOW IF YOU WANT THIS TO WORK ON SEVERAL MENUS
		$('#top_nav li a').each(function(index) {
   				
						if ($(this).attr('href')== href)
						{
									$(this).addClass('top_nav_on');
									$(this).parent().addClass('top_nav_li_on');
						}//end if
							
	  			});//end loop
		*/


/**************************  circle *************************/

		var link_id= 0;
		var links_info = new Array('<a href="http://www.tamhnach.org/Tamhnach_Way_holistic-living.asp">Holistic Living</a>','<a href="http://www.tamhnach.org/Tamhnach_Way_Exploration.asp">Exploration</a>','<a href="http://www.tamhnach.org/Tamhnach_Way_Wonder.asp">Wonder</a>','<a href="http://www.tamhnach.org/Tamhnach_Way_Change.asp">Change</a>');
		var links_info_hover = new Array('<a href="http://www.tamhnach.org/Tamhnach_Way_holistic-living.asp">Holistic Living</a>','<a href="http://www.tamhnach.org/Tamhnach_Way_Exploration.asp">Exploration</a>','<a href="http://www.tamhnach.org/Tamhnach_Way_Wonder.asp">Wonder</a>','<a href="http://www.tamhnach.org/Tamhnach_Way_Change.asp">Change</a>');
		$("#circleover-target-0").html(links_info[0])
		$("#circleover-target-1").html(links_info[1])
		$("#circleover-target-2").html(links_info[2])
		$("#circleover-target-3").html(links_info[3])
				
			
		
		$(".circle_link").hover(
  
  function () {
	  			//update the ID
				link_id = $(this).attr('id');
				
				$("#" + link_id).css('background-image','url(library/grey-bar.png)');
				$("#" + link_id).html(links_info_hover[link_id.substring(link_id.lastIndexOf("-")+1,link_id.length)])
				
				
	  		},
  function () {
    		$("#" + link_id).css('background-image','');
				$("#" + link_id).html(links_info[link_id.substring(link_id.lastIndexOf("-")+1,link_id.length)])
  }
);



//now the vertical bars
var link_id ='';
var theId = '';

		$(".circle_vertical").hover(
  
  function () {
	  			//update the ID
				link_id = $(this).attr('id');
				
				theId = link_id.substring(link_id.length-1,link_id.length);
				
				
				$("#" + link_id).css('background-image','url(library/vertical_link_'+theId+'_f2.png)');
				
				
				
	  		},
  function () {
    				$("#" + link_id).css('background-image','url(library/vertical_link_'+theId+'.png)');
					
					
  }
);




//$('#circle_container').hide();


		
					
});//closes on load

function showW()
				{
 					
 					$('#circle_container_over').slideUp(500);
  					$('#circle_container').delay(500).fadeIn(2000);
  					$('#show_wheel').fadeOut('fast');
						   }


/**************************  end of circle *************************/

// DROPDOWN 
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

