jQuery(document).ready(function() {

	// put all your JavaScript wizardry here
	
	
	
	
	window.mstools = (function(mstools, window, document, $, undefined ){
		var $ = jQuery, 
			me = mstools = mstools || {},
			_path;
		
	
		me.init = function(){
			
			console.log("mstools setup");
			
			var s = document.getElementsByTagName( 'script' );
			for ( var i = s.length - 1; i >= 0; i-- ) if ( s[i].src && ( _path = s[i].src.match( /^(.*\/)js\/mstools.*\.js/ ) ) ) break;
			_path = _path ? _path[1] : ''; 
			
			
			
			/* background carousel initilaisation */ 
		
		
			
			console.log("this should be consolingoffset true again");			
		}
		
		
		/*
		
		me.carousel = function(){
			
		}*/
		
		
		if (mstools.init){ mstools.init(); }	
		if (mstools.carousel.init){ mstools.carousel.init(); }	

		
		return mstools;
		
			
		})(window.mstools || {}, this, document, jQuery);
	


	// setup tooltips on portfolio page 
			jQuery(".viewmore").tooltip({
							effect: "fade",
						  relative : "false",  
							position: "bottom left" ,
							offset : "0, 0" ,
							onBeforeShow: function() {
								this.getTrigger().parent(".project").fadeTo("fast", 1);
							} 
			});
			// change trigger opacity slowly to 0.8
	
			
			
			
			
			
			//$("img[title]").tooltip({position: "center right"});
});





