// JavaScript Document
// CheckSamco 2011 Javascript file for Jquery
sfHover = function() {
	var sfEls = document.getElementById("mainNav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

$(document).ready(function() {
	
	sfHover();
	
 $('input[title]').each(function() {
	 
  if($(this).val() === '') {
   $(this).val($(this).attr('title')); 
  }
  
  $(this).focus(function() {
	  
   if($(this).val() === $(this).attr('title')) {
    $(this).val('').addClass('focused'); 
   }
   
  });
  
  $(this).blur(function() {
	  
   if($(this).val() === '') {
    $(this).val($(this).attr('title')).removeClass('focused'); 
   }
   
  });
  
 });
 
 if ($('body.page-id-508')) {
	 
	$('.contactBox:nth-child(3n)').css('margin-right','0px');
	 
 }
 
}); //Document.ready
