function sendContact() {
    var data = $('#contact form').serialize();
    $('#contact form').fadeOut('fast')
                      .remove();
    $('#response').fadeIn('fast');
    $.ajax({
        url:  'submit.php',
        type: 'POST',
        data: data,
        success: function(data){
            $('#response').html('Thank you, your comment/question has been sent. Have a nice day!');
        }
    });
}
function goto(location) {
    var position = $(location).offset();
    $(window).scrollTo(position.top - $('header').height() - 30, 1000, { queue:true } );
}
$(document).ready(function() {
    if ($.browser.msie && $.browser.version == '6.0') {
        $('nav ul').remove();
        $('#content').html('<div id="modern"><h3>Our fancy website doesn\'t support the Internet Explorer 6 browser, try upgrading your browser and come on back!</h3></div>');
    }
    $('<img/>')[0].src = 'images/loader.gif';
    if ($.browser.mozilla || $.browser.msie) {
        $('#video').html();
		$.getScript('js/swfobject.js', function() {
		    $('video').remove();
		    var flashvars = {
		        'controls'         : 'true',
		        'image'            : 'images/video_poster.jpg',
		        'file'             : '../../media/redwood_intro.f4v',
		        'viral.onpause'    : false,
		        'viral.oncomplete' : false,
		        'viral.onmenu'     : false
		    };
			swfobject.embedSWF('js/jwplayer/player.swf',
			                   'video_container',
			                   '640', '360',
			                   '9.0.0',
			                   '',
			                   flashvars,
			                   { 'allowfullscreen': true, 'wmode': 'transparent' },
			                   {});
		    $('video, audio, object, #video').css('z-index', '0');
		    $('header').css('z-index', '999999999999999999');
		});
    } else {
	    $('header').css('z-index', '999999999999999999');
	    $('video, audio').css('z-index', '0');
	    $('video, audio').mediaelementplayer();
	    
    }
});
