$(document).ready(function() {
	if ($('.slideshow').length > 0) {
		$('.slideshow').cycle({
			fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
			delay: -2000,
			timeout: 6000,
			speed: 2000,
			pause: 1
		});
	}
	
	var container = $('#container');	
	$('.form_button', container)
	.mouseover(function() {
		$(this).attr('class', 'form_button_over');
	})
	.mouseout(function() {
		$(this).attr('class', 'form_button');
	});
});

function jump_url(url) {
	window.location = url;
}

function openVideo(video_file) {
	var tb_url = 'player_video.php?video_file=' + video_file + '&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=290&width=500';
	tb_show("",tb_url,"");
}

function openAudio(audio_file) {
	var tb_url = 'player_audio.php?audio_file=' + audio_file + '&placeValuesBeforeTB_=savedValues&TB_iframe=true&height=65&width=420';
	tb_show("",tb_url,"");
}

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24441842-2']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

