
	// Page load - global
	function init()
	{
		basePositioning();
		$('#pod-paperguide').click(function(){
			window.location.href = '/products/';
		});
		$('#pod-yourbusiness').click(function(){
			window.location.href = '/your-business/';
		});
		$('#pod-environment').click(function(){
			window.location.href = '/the-environment/';
		});
		$(window).resize(function(){
			basePositioning();
		});
	};
	
	

	function basePositioning()
	{
		var height = $('#container').outerHeight();
		if(height < $(window).height()) {
			var footerPos = ($(window).height()-height-29)+'px';
			var splatPos = ($(window).height()-height-304)+'px';
			$('#footer').css("margin-top",footerPos);
			$('#base-splat').removeAttr("style");
			$('#base-splat').css("margin-top",splatPos);
		} else {
			var splatPos = (height-280)+'px';	
			$('#base-splat').removeAttr("style");
			$('#base-splat').css("top",splatPos);
		}
	};
	
	function contactFieldFocus(field, text)
	{
		if($(field).val() == text) {
			$(field).val('');
		}
	};
	
	function contactFieldBlur(field, text)
	{
		if($(field).val() == '') {
			$(field).val(text);
		}
	};
	
	// Use for debugging
	function log(s)
	{
		if (typeof console != "undefined" && typeof console.debug != "undefined") {
			console.log(s);
		} else {
			alert(s);
		}
	};
