﻿$(function() {
    $('a.lightbox').lightBox();
});

function ClearSearchTextBox() {
    txt = document.getElementById('search_for');
    if (txt)
        txt.value = '';
}

function cornerme() {
    var window_height = $(window).height();
    var content_height = $("#container").height();

    if (window_height < content_height) {
        var cornertop = content_height - 50;
    } else {
        var cornertop = window_height - 170;
    }
    $("#corner70").css({ "top": cornertop });
}

$(document).ready(function () {
    cornerme();
});

$(window).resize(function () {
    cornerme();
});
