//catch all jquery components for killer 1 
	$(document).ready(function() { 
		
		// Auto select navigation using jquery.  Boooyaaaaaa! 
			// vars
		
	
			var path = location.href.substring(location.href.lastIndexOf('/')+1);
			var folderpath = location.pathname.substring(0);
			
			
			if (path) 
			$('#nav a[href$="' + path + '"]').addClass('active');
		
			//need to use exact path's for folders.  Sorry.  
			if (folderpath)
			$('#nav a[href$="' + folderpath + '"]').addClass('active');

			
		//clear search text field automatically
		
		// clear the search field on focus... it's a function yo.  
		var searchBoxValue = 'Search';
		$('#txtQuery').val(searchBoxValue);
		$('#txtQuery').focus(function(){
			if ($(this).val() == searchBoxValue){
				$(this).val('');
			}
		});

	
	//fix some styles if using ie 6.... LAME! 
	if (jQuery.browser.msie) {
		if(parseInt(jQuery.browser.version) == 6) {
		  $("h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6, h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p").addClass("AfterH");
		  $("p + ul, h1 + ul, h2 + ul, h3 + ul, h4 + ul, h5 + ul, h6 + ul, p + ol, h1 + ol, h2 + ol, h3 + ol, h4 + ol, h5 + ol, h6 + ol").addClass("afterPH");
		  $("#content li:first-child").addClass("firstchild");
		}
	} 

	// Are zebras black with white stripes or white with black stripes?  
	$('tr:even').addClass('other');
	
	//small rotating ads
	$('#rotate').addClass("cycle");
	$('div.cycle img').wrap("<div></div>");
	
	$('#rotate').cycle({ 
		fx:     'scrollLeft', 
		timeout: 8000, 
		delay:  -2000 
	});
	$('#rotate div').each(function() {
		$(this).append("<p>" + $(this).children('img').attr('alt') + "</p>");
	});
	
	
	
	

	
	$('#bigBanner div').each(function() {
		$(this).append("<p>" + $(this).children('img').attr('alt') + "</p>");
	});
	
	
	
	//Bigbannerelement
	$('#bigBanner').cycle({ 
    fx:     'scrollUp', 
    timeout: 8000, 
    delay:  -2000 
	});
	

	

	$('#bigBanner div').each(function() {
		$(this).append("<p>" + $(this).children('img').attr('alt') + "</p>");
	});

	
	//little love for the quotes
	$('.quote').wrap('<div class="extraq"></div>');

	//wellness center link
	$('#wellness').hover(function () {
        $(this).addClass("hover");
      },
	  function () {
        $(this).removeClass("hover");
      }
	);
	$('#wellness').click(function() {
		location.href = $(this).find('a').attr("href");
	});

	
}); 

