jQuery(document).ready(function() {

			//png fix
			$(document).pngFix(); 


			 	$('.comingsoon').hover(
			  		function () {
			   			$('#comingsoon').toggle();
			  		},
				  	function () {
			   			$('#comingsoon').toggle();
				  	}
			 	);

			//index slides one
			$('#index_slides_1').slides({
				preload: true,
				preloadImage: 'fileadmin/template/img/loading.gif',
				slideSpeed : 1000,
				play: 5000,
				pause: 5000,
				hoverPause: false,
				paginationClass: 'slide1_pagination',
				generatePagination: true				
			});
			
			//index slides two
			$('#index_slides_2').slides({
				preload: true,
				preloadImage: 'fileadmin/template/img/loading.gif',
				slideSpeed : 500,
				play: 38000,
				pause: 38000,				
				hoverPause: true,
				pagination: true,
				paginationClass: 'slide2_pagination',
				generatePagination: true
			});
			
			//slideoutnavi	
			if( document.getElementById("slideoutnavi") ){
				$('#slideoutnavi a').stop().animate({'marginLeft':'-150px'},5000);					
			 	$('#slideoutnavi > li').hover(
			  		function () {
			   			$('a',$(this)).stop().animate({'marginLeft':'-20px'},200);
			  		},
				  	function () {
					   	$('a',$(this)).stop().animate({'marginLeft':'-150px'},200);
				  	}
			 	);			
			}	
			
			$("a.iframe").fancybox({
				width: 740,
				height: 425,
				padding: 0,
				margin: 0,
				centerOnScroll: true,
				swf: {wmode: 'transparent'},
				overlayColor: '#676767',
				overlayOpacity: 0.8,
				titleShow: false,
				showCloseButton: true	
			});			
			
			$("a.yt").click(function() {
				$.fancybox({
						'padding'		: 0,
						'autoScale'		: false,
						'transitionIn'	: 'none',
						'transitionOut'	: 'none',
						'title'			: this.title,
						'width'		: 680,
						'height'		: 495,
						'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
						'type'			: 'swf',
						'swf'			: {
						'wmode'		: 'transparent'						
						}
					});
			
				return false;
			});								
	
	 
});
