// function generateSprites(parent,selectedPrefix,setActive,hoverSpeed,style){var parentClass=$(parent).attr("class");$(parent).children("li").each(function(){var myClass=($(this).attr("class"))
// var current=parent.substring(1)+" current-"+($(this).attr("class"));attachNavEvents(parent,myClass,setActive,hoverSpeed,style);if(parentClass!=current){$(this).children("a").css({backgroundImage:"none"});}});}
// 
// function attachNavEvents(parent,myClass,setActive,hoverSpeed,style){$(parent+" ."+myClass).mouseover(function(){$(this).append('<div class="nav-'+myClass+'"></div>');if(style=="slide"){$("div.nav-"+myClass).css({display:"none"}).slideDown(hoverSpeed);}else{$("div.nav-"+myClass).css({display:"none"}).fadeIn(hoverSpeed);}}).mouseout(function(){if(style=="slide"){$("div.nav-"+myClass).slideUp(hoverSpeed,function(){$(this).remove();});}else{$("div.nav-"+myClass).fadeOut(hoverSpeed,function(){$(this).remove();});}});if(setActive){$(parent+" ."+myClass).mousedown(function(){$("div.nav-"+myClass).attr("class","nav-"+myClass+"-click");}).mouseup(function(){$("div.nav-"+myClass+"-click").attr("class","nav-"+myClass);});}}
// 
// $(document).ready(function(){generateSprites(".nav","current-",false,300,"fade");});

$(function(){$('.slideshow').cycle();});

// jQuery(function($){$('a').click(function(){$('#container_essentialoils_left a').removeClass('selected');var fragment=this.getAttribute('href');$('#container_essentialoils_left a[href='+fragment+']').toggleClass('selected');});});
// 
// $(document).ready(function(){$(".therapies_box").click(function(){window.location=$(this).find("a").attr("href");return false;});$('.therapies_box').hover(function(){$(this).addClass('pretty-hover');},function(){$(this).removeClass('pretty-hover');});});
