$(document).ready(function(){
// Gray Splash Screen		
$(function(){
var pop = function(){
	$('#grayout_screen').show().css({opacity: 0.7,'width':$(document).width(),'height':$(document).height()});
	$('#disclosure').fadeIn().click(function(){$(this).fadeOut();$('#grayout_screen').fadeOut();});
}
	$('.disclosure_link').click(pop);
	$(window).resize(function(){
	$('#disclosure').css("display") == 'block'?pop.call($('.disclosure_link')):"";
});	
	});		
// preload images

if (document.images) {
    img1 = new Image();
    img1.src = "../img/bg_header_right.png";
    img2 = new Image();
    img2.src = "..img/bg_header_left.png";
	img3 = new Image();
    img3.src = "..img/errors_omissions_scales.png";
	img4 = new Image();
    img4.src = "..img/photo_group.png";
	img5 = new Image();
    img5.src = "..img/bg_nav.gif";
	img6 = new Image();
    img6.src = "..img/customer_care.png";

}   
//Trans
	$(document).pngFix();
				   
//Cert Popup	

	$('.cert').click(function(){
	window.open(this.href, 'null', 'location=0,status=0,scrollbars=yes,width=980,height=600');
	return false;
	});
	
	$('.contact_us').click(function() {
	window.open(this.href, 'null', 'location=0,status=0,scrollbars=yes,width=500,height=400');
	return false;
	});
	
	
// REMOVE unwanted values

	    $(':input:not([type="submit"])').each(function() {
	    $(this).focus(function() {
	 
		});	
		$(this).blur(function() {
		this.value = this.value.replace(/[%&*}{>\]\[<|'"/\\]/g,'');
		
	    
		});
		});	
		});