


jQuery.noConflict();
jQuery(document).ready(function()
{ 
	/*
	 * Slider
	 */
	var anzahl=jQuery(".header img").size();

		var id=jQuery(".header .csc-textpic").parents(".csc-default").attr("id");
		var img="";
		
		jQuery(".header .csc-textpic img").each(function() {
			
			img+='<img src="'+jQuery(this).attr("src")+'"/>';
		});
		
		jQuery("#"+id).html(img);
		
		jQuery(".header .csc-default").cycle({ 
    fx:    'fade', 
    speed:  2500 
 });
	
	
	var i=1;
	jQuery(".sitemap ul li.level1").each(function(index) {
		jQuery(this).addClass("item_"+i);
		i++;
	});
	
	jQuery("ul#language_switch li:nth-child(2)").addClass("last");
	
	jQuery('.latest_news_list ul').jcarousel(
	{
		scroll: 1,
		auto:5,
		animation:800,
		vertical:true,
		wrap:'circular'
	});
	
if(jQuery(".International .jNiceSelectText").text()==jQuery(".International .jNiceSelectWrapper ul li:first-child").text())
	{
		jQuery(".International .jNiceSelectWrapper ul li:first-child").hide();
	}
	
	jQuery(".International .jNiceSelectWrapper ul li a").click(function() {
  		jQuery(".International .jNiceSelectWrapper ul li:first-child").show();
	});
	
	/*
	 * Navigation
	 */
	jQuery('.navi ul>li').hover(function(){
    jQuery(this).children('ul').stop(true,true).slideDown(500);
    jQuery(this).addClass('active');
  		},function(){
    jQuery(this).children('ul').stop(true,true).slideUp(500);
    jQuery(this).removeClass('active');
  	});
  	
  	var i=1;
  	jQuery(".navi ul li.level1").each(function(index) {
    	jQuery(this).addClass("item_"+i);
    	i++;
  	});
  	
  	
  	jQuery("ul#language_switch li:last-child").addClass("last");
  	
  	jQuery(".fancyboxvideo").fancybox({
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'type' : 'iframe',
		'padding' : '0',
		'autoDimensions' : true,
		'width' : 400,
		'height' : 320,
		'scrolling' : 'no'
	});
  	
  	
  	jQuery(".lightbox").fancybox({
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'titlePosition':'over'
	});
  	
  	
  	jQuery(".fancyvideo").fancybox({
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'type' : 'iframe',
		'padding' : '0',
		'autoDimensions' : true,
		'width' : 768,
		'height' : 576,
		'scrolling' : 'no'
	});
});

