// JavaScript Document

$(function(){
	$('.newsitem').click(function(){
		window.location = 'news.php?id=' + $(this).attr('id').substr(1);
	});
	
	$('#actions').click(function(){
		window.location = 'actions.php';
	});
});

$(window).load(function() {
	
	$('#widebaner').jqFancyTransitions({
	
		effect: 'curtain', // wave, zipper, curtain
		width: 700, // width of panel
		height: 200, // height of panel
		strips: 22, // number of strips
		delay: 5000, // delay between images in ms
		stripDelay: 50, // delay beetwen strips in ms
		titleOpacity: 0.7, // opacity of title
		titleSpeed: 1000, // speed of title appereance in ms
		position: 'alternate', // top, bottom, alternate, curtain
		direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate
		navigation: false, // prev and next navigation buttons
		links: false // show images as links
	
	});
	
	$('#smallbaner').jqFancyTransitions({
	
		effect: 'wave', // wave, zipper, curtain
		width: 300, // width of panel
		height: 210, // height of panel
		strips: 10, // number of strips
		delay: 4000, // delay between images in ms
		stripDelay: 50, // delay beetwen strips in ms
		titleOpacity: 0.7, // opacity of title
		titleSpeed: 1000, // speed of title appereance in ms
		position: 'alternate', // top, bottom, alternate, curtain
		direction: 'random', // left, right, alternate, random, fountain, fountainAlternate
		navigation: false, // prev and next navigation buttons
		links: false // show images as links
	
	});
	
	
});

