
// onload
$(document).ready(function() {
	
	//search
	var text = "Search...";
	$("#s").attr("value", text);
		
	$("#s").focus(function() {
		$(this).addClass("active");
		if($(this).attr("value") == text) $(this).attr("value", "");
	});
	
	$("#s").blur(function() {
		$(this).removeClass("active");
		if($(this).attr("value") == "") $(this).attr("value", text);
	});
	
	//newsletter
	var text = "your email";
	$("#ne").attr("value", text);
		
	$("#ne").focus(function() {
		$(this).addClass("active");
		if($(this).attr("value") == text) $(this).attr("value", "");
	});
	
	$("#ne").blur(function() {
		$(this).removeClass("active");
		if($(this).attr("value") == "") $(this).attr("value", text);
	});
	
	
	//<a href="mailto:contact@beckerdata.com">contact@beckerdata.com</a>
	$('#mailcontact').html( $.base64Decode("PGEgaHJlZj0ibWFpbHRvOmNvbnRhY3RAYmVja2VyZGF0YS5jb20iPmNvbnRhY3RAYmVja2VyZGF0YS5jb208L2E+") );
	
	//<a href="mailto:support@beckerdata.com">support@beckerdata.com</a>
	$('#mailsupport').html( $.base64Decode("PGEgaHJlZj0ibWFpbHRvOnN1cHBvcnRAYmVja2VyZGF0YS5jb20iPnN1cHBvcnRAYmVja2VyZGF0YS5jb208L2E+") );
	
	//<a href="mailto:support@beckerdata.com">Support</a>
	$('#mailsupport2').html( $.base64Decode("PGEgaHJlZj0ibWFpbHRvOnN1cHBvcnRAYmVja2VyZGF0YS5jb20iPlN1cHBvcnQ8L2E+") );
	
	//<a href="mailto:sales@beckerdata.com">sales@beckerdata.com</a>
	$('#mailsales').html( $.base64Decode("PGEgaHJlZj0ibWFpbHRvOnNhbGVzQGJlY2tlcmRhdGEuY29tIj5zYWxlc0BiZWNrZXJkYXRhLmNvbTwvYT4=") );
	
	//<a href="mailto:sales@chemicalinfo.com">sales@chemicalinfo.com</a>
	$('#mailsaleschemicalinfo').html( $.base64Decode("PGEgaHJlZj0ibWFpbHRvOnNhbGVzQGNoZW1pY2FsaW5mby5jb20iPnNhbGVzQGNoZW1pY2FsaW5mby5jb208L2E+") );
	
	
	
	

	
});

