$(document).ready(function() { 
   $('ul.menu').superfish({ 
       delay:       1000,                            // one second delay on mouseout 
       animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
       speed:       'slow',                          // faster animation speed 
       autoArrows:  false,                           // disable generation of arrow mark-up 
       dropShadows: false                            // disable drop shadows 
   }); 
});

$(document).ready(function() { 
    $("#tabs").tabs("div.mrp", {event:'mouseover',effect: 'fade'});
});
$(document).ready(function(){
   $(document).pngFix();
});
$(document).ready(function() { 
   $.localScroll();
});
$(document).ready(function(){
$("#hs").show();
	$("div.toggle").click(function(){
	if ($("#hs").is(":visible")) {
         $("#hs").slideToggle("slow");
  $(this).addClass("active");
          $.cookie('transformer', 'collapsed');
  return false;
 } else {
         $("#hs").slideToggle("slow");
  $(this).removeClass("active");
         $.cookie('transformer', 'expanded');
  return false;  
 }
	});
     var showTop = $.cookie('transformer');
     if (showTop == 'collapsed') {
  $("#hs").hide();
 $("div.toggle").addClass("active");
 };
});	
jQuery.fn.extend({
    highlight: function(search, insensitive, hls_class){
      var regex = new RegExp("(<[^>]*>)|(\\b"+ search.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1") +")", insensitive ? "ig" : "g");
      return this.html(this.html().replace(regex, function(a, b, c){
        return (a.charAt(0) == "<") ? a : "<strong class=\""+ hls_class +"\">" + c + "</strong>";
      }));
    }
});
jQuery(document).ready(function($){
    if(typeof(hls_query) != 'undefined'){
      $(".search").highlight(hls_query, 1, "hls");
    }
});
