			Cufon.replace('#navigation .n-hover', {color: '#7a7a7a', fontSize: '15'});
			Cufon.replace('#navigation span', {color: '#ffffff', fontSize: '13'});
			Cufon.replace('#phone-numbers p', {color: '#7a7a7a', fontSize: '15', fontWeight: 'bold'});
			Cufon.replace('#call-to-action p', {color: '#ffffff', fontSize: '34', textShadow: '0.9em 0.9em 0.5em #000'});
			Cufon.replace('#call-to-action p span', {color: '#ffffff', fontSize: '40', fontWeight: 'bold', textShadow: '0.9em 0.9em 0.5em #000'});
			Cufon.replace('.services-title h2', {color: '#ffffff', fontSize: '18'});
			Cufon.replace('#content-left .heading', {color: '#3a3737', fontSize: '34', fontWeight: 'bold'});
			Cufon.replace('#content-left h1', {color: '#003d79', fontSize: '34', fontWeight: 'bold'});
			Cufon.replace('#content-left h2', {color: '#003d79', fontSize: '24', fontWeight: 'bold'});
			Cufon.replace('#product-heading .heading', {color: '#3a3737', fontSize: '34', fontWeight: 'bold'});
			Cufon.replace('.number-text span', {color: '#7a7a7a', fontSize: '18'});
			Cufon.replace('#content-left .prominent', {color: '#003d79', fontSize: '18'});
			Cufon.replace('.sub', {color: '#3a3737', fontSize: '18'});
			Cufon.replace('.italic', {color: '#7a7a7a', fontSize: '22', fontStyle: 'italic'});
			Cufon.replace('.italic-2', {color: '#7a7a7a', fontSize: '18', fontStyle: 'italic'});
			Cufon.replace('.side-heading span', {color: '#ffffff', fontSize: '28'});
			Cufon.replace('.slide-title', {color: '#7a7a7a', fontSize: '20'});
			Cufon.replace('.title', {color: '#003d79', fontSize: '24'});
			
			function clearValue(theField){
				if(theField.defaultValue == theField.value){
					theField.value = '';	
				}
			}
			function replaceValue(theField){
				if(theField.value == ''){
					theField.value = theField.defaultValue;	
				}
			}
			
			$(document).ready(function(){
				$("#contact-form").instantValidation({
					fadeSpeed: 100
				});
			});
			
			$(document).ready(function() {
	

			function megaHoverOver(){
				$(this).find(".sub").stop().fadeTo('fast', 1).show();
					
				//Calculate width of all ul's
				(function($) { 
					jQuery.fn.calcSubWidth = function() {
						rowWidth = 0;
						//Calculate row
						$(this).find("ul").each(function() {					
							rowWidth += $(this).width(); 
						});	
					};
				})(jQuery); 
				
				if ( $(this).find(".row").length > 0 ) { //If row exists...
					var biggestRow = 0;	
					//Calculate each row
					$(this).find(".row").each(function() {							   
						$(this).calcSubWidth();
						//Find biggest row
						if(rowWidth > biggestRow) {
							biggestRow = rowWidth;
						}
					});
					//Set width
					$(this).find(".sub").css({'width' :biggestRow});
					$(this).find(".row:last").css({'margin':'0'});
					
				} else { //If row does not exist...
					
					$(this).calcSubWidth();
					//Set Width
					$(this).find(".sub").css({'width' : rowWidth});
					
				}
			}
			
			function megaHoverOut(){ 
			  $(this).find(".sub").stop().fadeTo('fast', 0, function() {
				  $(this).hide(); 
			  });
			}
		
		
			var config = {    
				 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
				 interval: 100, // number = milliseconds for onMouseOver polling interval    
				 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
				 timeout: 500, // number = milliseconds delay before onMouseOut    
				 out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
			};
		
			$("ul#topnav li .sub").css({'opacity':'0'});
			$("ul#topnav li").hoverIntent(config);
		
		
		
		});
