$(document).ready(function() 
{
	$('#myform1').ajaxForm({ 
			target: '#responsediv',
			beforeSubmit: showSpinner
	}); 
});

function showSpinner() { 
	var $out = $('#responsediv');
	$out.html("<p class=\"center spinner\"><img src=\"../img/spinner.gif\" alt=\"Spinner\" /></p>");
	return true; 
}

///////////////////////////////////////////////////////////////////////

$(document).ready(function() 
{

	$("dl dt").toggle(
		function () {
			$(this).next().slideDown();
			$(this).addClass("on");
		},
		function () {
			$(this).next().slideUp();
			$(this).removeClass("on");
		}
	);

	$('#header-anim').cycle({ 
		fx:     'fade',
		easing: 'easeinout', 
		next:   '#header-anim', 
		//cleartype:	1,
		pause:   1,
		speed:	500,
		timeout: 5000
	});

	$('#header-home').cycle({ 
		fx:     'fade',
		easing: 'easeinout', 
		next:   '#header-home', 
		//cleartype:	1,
		pause:   1,
		speed:	500,
		timeout: 5000
	});

	$("a.ext").click( function() {
        window.open( $(this).attr('href') );
        return false;
    });
	
// -------- lightbox ------
	$('a[@rel*=lightbox]').lightBox({
		imageLoading: '../img/jquery_lightbox/lightbox_loading.gif',
		imageBtnClose: '../img/jquery_lightbox/lightbox_close.gif',
		imageBtnPrev: '../img/jquery_lightbox/lightbox_prev.gif',
		imageBtnNext: '../img/jquery_lightbox/lightbox_next.gif'
	});

});

