/* Jquery Functions */
$().ready(function(){
		// Style of homepage Qtips
		$.fn.qtip.styles.jcd = { // Last part is the name of the style
			border: 0,
			width: 915,
			height:130,
			padding: 0,
			background: '#FFF', //#D8DFE1 #E0E5E8
			color: '#3D4049',
			textAlign: 'left'
		}
		
		// Dropdown Menu
		$("ul.sf-menu").supersubs({ 
            minWidth:    12,   // minimum width of sub-menus in em units 
            maxWidth:    27,   // maximum width of sub-menus in em units 
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish();  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason.						
		
		// Slidy menu // easeOutSine jswing  easeOutCubic easeOutCirc
		$('.kwicks').kwicks({
			max : 320,
			spacing : 5,   
          	duration: 500,  
          	easing: 'easeOutQuad'
		});		
		
		// Directions Tooltip
		$('#directions').qtip({
		   content: 'Click here for a map and directions to our offices..',
		   position: { 
		   		corner: {
					 target: 'topLeft',
					 tooltip: 'bottomRight'
				  }
			},
		   style: {
		   	  tip: 'bottomRight',
			  color: '#666666',
			  background: '#2E3037',
			  padding: 15,
			  border: {
				 width: 3,
				 radius: 0,
				 color: '#9E6D4C'
			  },
			  name: 'light'
		   }
		});	
		
/*
// pdf links:
*/
$('#mainContent a[href$=.pdf]').addClass('pdf');

});
/* End Jquery Functions */

/* Email Obscurer */

function jemail(user, domain, suffix){
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}
