$(document).ready(function(){

    $("#slider").easySlider({
        auto: true,
        controlsShow: false,
        continuous: true,
        pause: 4500
    });

    $("#slider_content").easySlider({
        auto: false,
        controlsShow: true,
        continuous: true,
        prevText: '',
        nextText: '',
        nextId: "sl_next",
        prevId: "sl_prev"
    });

    $('.fscr').lightBox({
        imageLoading: '/resources/application/images/loading.gif',
        imageBtnClose: '/resources/application/images/closelabel.gif',
        imageBlank: '/resources/application/images/blank.gif',
        fitToScreen: true
    });

  $('#content form a').click(function(e) {
  e.preventDefault();
    $('#form_sm').submit();
  });

    $('#header form a').click(function() {
        $('form').submit();
    });

});

function cimg (url) {
    $('#gImage').attr('src', url);
    $('#uImage').attr('href', url);
}
