/**
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);
            
            $('body').append( '<p id="vtip"><img id="vtipArrow" />' + this.t + '</p>' );
                        
            $('p#vtip #vtipArrow').attr("src", 'Homepage/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();}) 


/* Scroll To Top*/
$(document).ready(function(){
		
	$(function(){
	  $.fn.scrollToTop=function(){
	    $(this).hide().removeAttr("href");if($(window).scrollTop()!="0"){
	      $(this).fadeIn("slow")
	      }
	      var scrollDiv=$(this);$(window).scroll(function(){
	        if($(window).scrollTop()=="0"){
	          $(scrollDiv).fadeOut("slow")
	          }else{
	            $(scrollDiv).fadeIn("slow")
	            }
	            });
	      $(this).click(function(){
	        $("html, body").animate({scrollTop:0},"slow")
	        }
	        )}
	      });

	$(function() {
		$("#toTop").scrollToTop();
	});
	
	
	
});	


/* Services Tabds */
$(document).ready(function(){
	$(function() {
		$( "#s_tabs" ).tabs();
	});
});	
