
/*
 * Tooltip script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 


this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



// starting the script on page load
$(document).ready(function(){
	tooltip();
		$('.slide-out-div').tabSlideOut({
		tabHandle: '.handle',      //class of the element that will become your tab
		pathToTabImage: '/templateImages/contact/contact_tab.jpg', //Optionally can be set using css
		imageHeight: '125px',      //height of tab image           //Optionally can be set using css
		imageWidth: '38px',        //width of tab image            //Optionally can be set using css
		tabLocation: 'left',       //side of screen where tab lives, top, right, bottom, or left
		speed: 300,                //speed of animation
		action: 'click',           //options: 'click' or 'hover', action to trigger animation
		topPos: '80px',           //position from the top/ use if tabLocation is left or right
		leftPos: '20px',           //position from left/ use if tabLocation is bottom or top
		fixedPosition: false        //options: true makes it stick(fixed position) on scroll
	});
});	


	$( "input:submit, a, button", ".webform,.system-message" ).button();
	$( "a", ".slide-out-div,.webform,.system-message" ).click(function() { return false; });


	$(".fancybox").fancybox({
				openEffect	: 'elastic',
				openEasing : 'easeOutBack',
				closeEffect	: 'elastic',
				closeEasing : 'easeInBack',
								
				helpers : {
					title : {
						type : 'inside'
    		}
    	}
});

/*  Google Map API */





