/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/

this.vtip = function() {    
    this.xOffset = -10; // x distance from mouse
    this.yOffset = 10; // y distance from mouse       
    
    $(".vtip").unbind().hover(    
        function(e) {
            this.t = this.title;
            this.title = ''; 
            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
           // alert(this.top);
            $('body').append( '<p id="vtip"><img id="vtipArrow" />' + this.t + '</p>' );
                        
          //  $('p#vtip #vtipArrow').attr("src", Drupal.settings.basePath + 'sites/all/themes/harmer/images/vtip_arrow.png');
            $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
            
        },
        function() {
            this.title = this.t;
            $("p#vtip").fadeOut("slow").remove();
        }
    ).mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);
                         
            $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
        }
    );            
    
};

jQuery(document).ready(function($){vtip();}) 




		jQuery(document).ready(function(){	
			jQuery(".tab:not(:first)").hide();

			//to fix u know who
			jQuery(".tab:first").show();
	
			jQuery(".htabs a").click(function(){
				stringref = jQuery(this).attr("href").split('#')[1];

				jQuery('.tab:not(#'+stringref+')').hide();

			if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") {
				jQuery('.tab#' + stringref).show();
			} else 
			jQuery('.tab#' + stringref).fadeIn(1000, function () {
				$("imagecache").fadeIn(10); });
		
			return false;
			});
	
		});

