

	/*
	
	ww_imagecycle
	author: Wido Widlewski <wido@websimplex.de>
	
	find the imagecycle div 
	
	*/

	jQuery(document).ready(function (){
	
		//alert('hallo');
		
		/* display the images to cycle */
		jQuery('.aniImages').show();
		
		var timeout_value = parseInt(jQuery(document).find('div.timeout').html());
		var speed_value = parseInt(jQuery(document).find('div.speed').html());
		
		
		jQuery('.ww_imagecycle_container').cycle({fx: 'fade', timeout: timeout_value, speed: speed_value});
		
		/* if link is clicked, puase the cycle animation */
		jQuery('.ww_imagecycle_container').find('a').click( function(){
			
			jQuery('.ww_imagecycle_container').cycle('pause');
		
		});
		
		/* resume cycle animation, if mouse is over link */
		jQuery('.ww_imagecycle_container').find('a').mouseover(function(){
		
			jQuery('.ww_imagecycle_container').cycle('resume');
		
		});
		
		
	});