// JavaScript Document
$(document).ready(function(){
	if ($("input[type='checkbox']").length){
		$("input[type='checkbox']").custCheckBox();
	}
	if ($("#tfa_Belowisaquickway").length){
		var startString = $('#tfa_Belowisaquickway').val();
		$('#tfa_Belowisaquickway').focus(function(){
			if ($('#tfa_Belowisaquickway').val() == startString) {
				$('#tfa_Belowisaquickway').val(' ');	
			}
		});	
		$('#tfa_Belowisaquickway').blur(function(){
			if($('#tfa_Belowisaquickway').val() == ' ' || $('#tfa_Belowisaquickway').val() == ''){
				$('#tfa_Belowisaquickway').val(startString);	
			}
		});
	}
	
	if ($('.online-container').length) {
		mobilePageStyles();
	}
});

var currentMobileDisplay = '#oc1';

function mobilePageStyles() {
		$('#ob1').click(function(){hideCurrentDisplay('#oc1')});
		$('#ob2').click(function(){hideCurrentDisplay('#oc2')});
		$('#ob3').click(function(){hideCurrentDisplay('#oc3')});
		$('#ob4').click(function(){hideCurrentDisplay('#oc4')});
		$('#ob5').click(function(){hideCurrentDisplay('#oc5')});
}

function hideCurrentDisplay(element) {
	$(currentMobileDisplay).fadeOut( "fast", function(){
						$(element).fadeIn("fast");
					});
	currentMobileDisplay = element;
}
