/*var ScH;
var Padd

$(document).ready(function() {
    if ($("#footer_padding_fix").size() == 0) {
        $("#footer").wrap("<div id='footer_padding_fix'></div>");
    }
    Footer(83);
    Resize();
    ContentArea();
    Form();
});

function Resize() {
    $(window).resize(function() {
        Footer($("#footer_padding_fix").outerHeight());
    });
}

function Footer(x) {
    $.getDocHeight = function() {
        var D = document;
        return Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));
    };

    alert($.getDocHeight());

    Padd = $.getDocHeight();
    Padd = Padd - $("#contain").outerHeight() - x;
    if (Padd > 0) {
        Padd = Padd;
    } else {
        Padd = 0;
    }
    $("#footer_padding_fix").css({ paddingTop: Padd });

}

function ContentArea() {
    $(".active_link").click(function() {
        window.location.href = $(this).children(".col").children("span").children("a").eq(0).attr("href");
    })
    $(".active_lk").click(function() {
        window.location.href = $(this).attr("ref");
    })
}

function Form() {
    $("#submit_button").css({ opacity: .50 });
    $("#submit_button").click(btn_submit);
    $("#submit_button").hover(btn_fade);
    $("input").change(btn_fade);
    $("select").change(btn_fade);
    $("textarea").change(btn_fade);

    function btn_fade() {
        var RequiredVal1;
        var RequiredName1;
        var RequiredTrgr1;
        $(".req").each(function() {
            RequiredVal1 = $(this).val();
            RequiredName1 = $(this).siblings("span").html();
            RequiredName1 = RequiredName1.replace('<span class="required">*</span>', '');
            if (RequiredVal1 == "") {
                RequiredTrgr1 = RequiredName1 + RequiredName1;
            }
        });
        if (RequiredTrgr1 == undefined || RequiredTrgr1 == '' || RequiredTrgr1 == 'undefined' || RequiredTrgr1 == null) {
            $("#submit_button").animate({ opacity: .99 });
        } else {
            $("#submit_button").animate({ opacity: .50 });
        }
    }
    function btn_submit() {
        var RequiredVal;
        var RequiredName;
        var RequiredTrgr;
        $(".req").each(function() {
            RequiredVal = $(this).val();
            RequiredName = $(this).siblings("span").html();
            RequiredName = RequiredName.replace('<span class="required">*</span>', '');
            if (RequiredVal == "") {
                alert("\"" + RequiredName + "\" required field. \nPlease enter a value.");
                RequiredTrgr = RequiredName + RequiredName;
                $("#submit_button").animate({ opacity: .50 });
            }
        });
        if (RequiredTrgr == undefined || RequiredTrgr == '' || RequiredTrgr == 'undefined' || RequiredTrgr == null) {
            $("#submit_button").animate({ opacity: .99 });
            document.Contact_Form.submit();
        } else {
            $("#submit_button").animate({ opacity: .50 });
        }
    }
}

var ScH;
var Padd

$(document).ready(function() {
    if ($("#footer_padding_fix").size() == 0) {
        $("#footer").wrap("<div id='footer_padding_fix'></div>");
    }
    Footer(83);
    Resize();
    ContentArea();
    Form();
});

function Resize() {
    $(window).resize(function() {
        Footer($("#footer_padding_fix").outerHeight());
    });
}

function Footer(x) {
    $.getDocHeight = function() {
        var D = document;
        return Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));
    };

    alert($.getDocHeight());

    Padd = $.getDocHeight();
    Padd = Padd - $("#contain").outerHeight() - x;
    if (Padd > 0) {
        Padd = Padd;
    } else {
        Padd = 0;
    }
    $("#footer_padding_fix").css({ paddingTop: Padd });

}

function ContentArea() {
    $(".active_link").click(function() {
        window.location.href = $(this).children(".col").children("span").children("a").eq(0).attr("href");
    })
    $(".active_lk").click(function() {
        window.location.href = $(this).attr("ref");
    })
}

function Form() {
    $("#submit_button").css({ opacity: .50 });
    $("#submit_button").click(btn_submit);
    $("#submit_button").hover(btn_fade);
    $("input").change(btn_fade);
    $("select").change(btn_fade);
    $("textarea").change(btn_fade);

    function btn_fade() {
        var RequiredVal1;
        var RequiredName1;
        var RequiredTrgr1;
        $(".req").each(function() {
            RequiredVal1 = $(this).val();
            RequiredName1 = $(this).siblings("span").html();
            RequiredName1 = RequiredName1.replace('<span class="required">*</span>', '');
            if (RequiredVal1 == "") {
                RequiredTrgr1 = RequiredName1 + RequiredName1;
            }
        });
        if (RequiredTrgr1 == undefined || RequiredTrgr1 == '' || RequiredTrgr1 == 'undefined' || RequiredTrgr1 == null) {
            $("#submit_button").animate({ opacity: .99 });
        } else {
            $("#submit_button").animate({ opacity: .50 });
        }
    }
    function btn_submit() {
        var RequiredVal;
        var RequiredName;
        var RequiredTrgr;
        $(".req").each(function() {
            RequiredVal = $(this).val();
            RequiredName = $(this).siblings("span").html();
            RequiredName = RequiredName.replace('<span class="required">*</span>', '');
            if (RequiredVal == "") {
                alert("\"" + RequiredName + "\" required field. \nPlease enter a value.");
                RequiredTrgr = RequiredName + RequiredName;
                $("#submit_button").animate({ opacity: .50 });
            }
        });
        if (RequiredTrgr == undefined || RequiredTrgr == '' || RequiredTrgr == 'undefined' || RequiredTrgr == null) {
            $("#submit_button").animate({ opacity: .99 });
            document.Contact_Form.submit();
        } else {
            $("#submit_button").animate({ opacity: .50 });
        }
    }
}

var ScH;
var Padd

$(document).ready(function() {
    if ($("#footer_padding_fix").size() == 0) {
        $("#footer").wrap("<div id='footer_padding_fix'></div>");
    }
    Footer(83);
    Resize();
    ContentArea();
    Form();
});

function Resize() {
    $(window).resize(function() {
        Footer($("#footer_padding_fix").outerHeight());
    });
}

function Footer(x) {
    $.getDocHeight = function() {
        var D = document;
        return Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));
    };

    alert($.getDocHeight());

    Padd = $.getDocHeight();
    Padd = Padd - $("#contain").outerHeight() - x;
    if (Padd > 0) {
        Padd = Padd;
    } else {
        Padd = 0;
    }
    $("#footer_padding_fix").css({ paddingTop: Padd });

}

function ContentArea() {
    $(".active_link").click(function() {
        window.location.href = $(this).children(".col").children("span").children("a").eq(0).attr("href");
    })
    $(".active_lk").click(function() {
        window.location.href = $(this).attr("ref");
    })
}

function Form() {
    $("#submit_button").css({ opacity: .50 });
    $("#submit_button").click(btn_submit);
    $("#submit_button").hover(btn_fade);
    $("input").change(btn_fade);
    $("select").change(btn_fade);
    $("textarea").change(btn_fade);

    function btn_fade() {
        var RequiredVal1;
        var RequiredName1;
        var RequiredTrgr1;
        $(".req").each(function() {
            RequiredVal1 = $(this).val();
            RequiredName1 = $(this).siblings("span").html();
            RequiredName1 = RequiredName1.replace('<span class="required">*</span>', '');
            if (RequiredVal1 == "") {
                RequiredTrgr1 = RequiredName1 + RequiredName1;
            }
        });
        if (RequiredTrgr1 == undefined || RequiredTrgr1 == '' || RequiredTrgr1 == 'undefined' || RequiredTrgr1 == null) {
            $("#submit_button").animate({ opacity: .99 });
        } else {
            $("#submit_button").animate({ opacity: .50 });
        }
    }
    function btn_submit() {
        var RequiredVal;
        var RequiredName;
        var RequiredTrgr;
        $(".req").each(function() {
            RequiredVal = $(this).val();
            RequiredName = $(this).siblings("span").html();
            RequiredName = RequiredName.replace('<span class="required">*</span>', '');
            if (RequiredVal == "") {
                alert("\"" + RequiredName + "\" required field. \nPlease enter a value.");
                RequiredTrgr = RequiredName + RequiredName;
                $("#submit_button").animate({ opacity: .50 });
            }
        });
        if (RequiredTrgr == undefined || RequiredTrgr == '' || RequiredTrgr == 'undefined' || RequiredTrgr == null) {
            $("#submit_button").animate({ opacity: .99 });
            document.Contact_Form.submit();
        } else {
            $("#submit_button").animate({ opacity: .50 });
        }
    }
}

*/
var ScH;
var Padd

$(document).ready(function() {
    if ($("#footer_padding_fix").size() == 0) {
        $("#footer").wrap("<div id='footer_padding_fix'></div>");
    }
    Footer(83);
    Resize();
    ContentArea();
    Form();
});

function Resize() {
    $(window).resize(function() {
        Footer($("#footer_padding_fix").outerHeight());
    });
}

function Footer(x) {
    $.getDocHeight = function() {
        var D = document;
        return Math.max(Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), Math.max(D.body.clientHeight, D.documentElement.clientHeight));
    };
    Padd = $.getDocHeight();
    Padd = Padd - $("#contain").outerHeight() - x;
    if (Padd > 0) {
        Padd = Padd;
    } else {
        Padd = 0;
    }
    $("#footer_padding_fix").css({ paddingTop: Padd });

}

function ContentArea() {
    $(".active_link").click(function() {
        window.location.href = $(this).children(".col").children("span").children("a").eq(0).attr("href");
    })
    $(".active_lk").click(function() {
        window.location.href = $(this).attr("ref");
    })
}

function Form() {
    $("#submit_button").css({ opacity: .50 });
    $("#submit_button").click(btn_submit);
    $("#submit_button").hover(btn_fade);
    $("input").change(btn_fade);
    $("select").change(btn_fade);
    $("textarea").change(btn_fade);

    function btn_fade() {
        var RequiredVal1;
        var RequiredName1;
        var RequiredTrgr1;
        $(".req").each(function() {
            RequiredVal1 = $(this).val();
            RequiredName1 = $(this).siblings("span").html();
            RequiredName1 = RequiredName1.replace('<span class="required">*</span>', '');
            if (RequiredVal1 == "") {
                RequiredTrgr1 = RequiredName1 + RequiredName1;
            }
        });
        if (RequiredTrgr1 == undefined || RequiredTrgr1 == '' || RequiredTrgr1 == 'undefined' || RequiredTrgr1 == null) {
            $("#submit_button").animate({ opacity: .99 });
        } else {
            $("#submit_button").animate({ opacity: .50 });
        }
    }
    function btn_submit() {
        var RequiredVal;
        var RequiredName;
        var RequiredTrgr;
        $(".req").each(function() {
            RequiredVal = $(this).val();
            RequiredName = $(this).siblings("span").html();
            RequiredName = RequiredName.replace('<span class="required">*</span>', '');
            if (RequiredVal == "") {
                alert("\"" + RequiredName + "\" required field. \nPlease enter a value.");
                RequiredTrgr = RequiredName + RequiredName;
                $("#submit_button").animate({ opacity: .50 });
            }
        });
        if (RequiredTrgr == undefined || RequiredTrgr == '' || RequiredTrgr == 'undefined' || RequiredTrgr == null) {
            $("#submit_button").animate({ opacity: .99 });
            document.Contact_Form.submit();
        } else {
            $("#submit_button").animate({ opacity: .50 });
        }
    }
}
