sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function _check_report() {

    var report_type = $("input[name='type']:checked").val();

    if ( report_type == 'particulier' ) {

        $('table#report').show();
        $('tbody#only_lease').hide();
        $('tbody#only_private').show();
    }
    else if ( report_type == 'leaserijder' ) {

        $('table#report').show();
        $('tbody#only_lease').show();
        $('tbody#only_private').hide();
    }
}

$(document).ready(function() {
    $('textarea.expanding').autogrow();
    $('.header .visuals').cycle({
        fx:      'fade',
        timeout: 5000,
        speed:   2000,
        pause:   0
    });
    $('a.enlarge').lightBox({fixedNavigation:true});
});
