 
jQuery(document).ready(function(){ 
    jQuery("ul.menu").superfish(); 
}); 

        jQuery("li.cat-item a").each(function(){ // Remove Titles from wp_list_categories
            jQuery(this).removeAttr('title');
        })                
        jQuery("li.page_item a").each(function(){ // Remove Titles from wp_list_pages
            jQuery(this).removeAttr('title');
        })
      

 
jQuery(document).ready(function() {

	//When page loads...
	jQuery(".tab_content").hide(); //Hide all content
	jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab
	jQuery(".tab_content:first").show(); //Show first tab content

	//On Click Event
	jQuery("ul.tabs li").click(function() {

		jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
		jQuery(this).addClass("active"); //Add "active" class to selected tab
		jQuery(".tab_content").hide(); //Hide all tab content

		var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		jQuery(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});
 

 
jQuery(document).ready(function(){
						   
	jQuery("#hm_news li,#sideEvent li").click(function(){
    	window.location=jQuery(this).find("a").attr("href");return false;
	});

}); //close doc ready
 

 jQuery(document).ready(function() {

	// slider
	jQuery('#slider .slides').cycle({ 
		 fx:     'fade', 
		 speed:  '1000',
		 timeout: 6000, 
		 delay:  5000, 
		 pause: 4,
		 pager:  '.slider-nav', 
		 pagerAnchorBuilder: function(idx, slide) { 
			  // return selector string for existing anchor 
			  return '.slider-nav li:eq(' + idx + ') a'; 
		 } 
	});
	//pause on click
	jQuery('.slider-nav a').click(function(){
		jQuery('#slider .slides').cycle('pause');
	});
	});
 
 
	// initialize prettyPhoto lightbox
jQuery(document).ready(function(){
	jQuery("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
});
		
		
jQuery(document).ready(function() {
jQuery("#dropmenu ul").css({display: "none"}); // Opera Fix
jQuery("#dropmenu li").hover(function(){
        jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(168);
        },function(){
        jQuery(this).find('ul:first').css({visibility: "hidden"});
        });
});
