hover = function() {
	if ( $("#lvl0").length == 0 )
	{
		return false;
	}
	var els = document.getElementById("lvl0").getElementsByTagName("td");						
	for (var i=0; i<els.length; i++) {
		els[i].onmouseover=function() {
			this.className+=" hover";
		}
		els[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
									
	}						
}

if (window.attachEvent){
	window.attachEvent("onload", hover);	
}
jQuery().ready(function() {
	var location = document.location.pathname;
	//alert(location);
	//var compare = document.getElementById("menu-lh").getElementsByTagName("a");
	if ( $("#menu-lh").length == 0 )
	{
		return false;
	}	
	var elstr = document.getElementById("menu-lh").getElementsByTagName("tr");						
			
	for (var i=0; i<elstr.length; i++) {
		var links = elstr[i].getElementsByTagName("a");
		var compare = jQuery(links[1]).attr("href");
		if(location==compare)
		{
			elstr[i].className+=" active";
		}
		else {
			elstr[i].onmouseover=function() {
				this.className+=" hoverlh";
			}
			elstr[i].onmouseout=function() {
				this.className="";
			}
		}					
	}										
});


if( lng == 'de')
{
jQuery().ready(function() 
{
	jQuery('#link-start-landhaeuser').mouseover(function() 
	{
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
	  	jQuery("#image-change").animate({opacity: 0.0}, 0, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/hoverlandhaeuser.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/hoverlandhaeuser.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:200 } );
		 
	  
      jQuery('#link-start-castello').removeClass( "hoverlogo" );
					
	});
	
	jQuery('#link-start-landhaeuser').mouseout(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
    	jQuery('#link-start-castello').addClass( "hoverlogo" );
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:200 } );
					
	});
	
	jQuery('#link-start-castello').mouseover(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();		
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );
					
	});
	
	jQuery('#link-start-sonnalp').mouseover(function() 
	{	
      	jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();
		jQuery("#image-change").animate({opacity: 0.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/hoversonnalp.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/hoversonnalp.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );

	  	jQuery('#link-start-castello').removeClass( "hoverlogo" );
	});
	
		jQuery('#link-start-sonnalp').mouseout(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
    	jQuery('#link-start-castello').addClass( "hoverlogo" );
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );
					
	});

});


$(window).load(function () {
			jQuery(".cf-start-shadow").show().css( 'background-image', 'url( /static/i/bg-cf-start-shadow.png )' ) 
      		jQuery("#image-change2").show().css( 'background-image', 'url( /static/i/activecastello.jpg )' ) 
      		jQuery("#image-change").show().css( 'background-image', 'url( /static/i/activecastello.jpg )' )
    		jQuery("<img>").attr("src", "/static/i/hoversonnalp.jpg" );
    		jQuery("<img>").attr("src", "/static/i/hoverlandhaeuser.jpg" );
    });

}


if( lng == 'en')
{
jQuery().ready(function() 
{
	jQuery('#link-start-landhaeuser').mouseover(function() 
	{
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
	  	jQuery("#image-change").animate({opacity: 0.0}, 0, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/hoverlandhaeuser_en.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/hoverlandhaeuser_en.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:200 } );
		 
	  
      jQuery('#link-start-castello').removeClass( "hoverlogo-en" );
					
	});
	
	jQuery('#link-start-landhaeuser').mouseout(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
    	jQuery('#link-start-castello').addClass( "hoverlogo-en" );
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_en.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_en.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_en.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:200 } );
					
	});
	
	jQuery('#link-start-castello').mouseover(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();		
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_en.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_en.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_en.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );
					
	});
	
	jQuery('#link-start-sonnalp').mouseover(function() 
	{	
      	jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();
		jQuery("#image-change").animate({opacity: 0.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/hoversonnalp_en.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/hoversonnalp_en.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );

	  	jQuery('#link-start-castello').removeClass( "hoverlogo-en" );
	});
	
		jQuery('#link-start-sonnalp').mouseout(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
    	jQuery('#link-start-castello').addClass( "hoverlogo-en" );
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_en.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_en.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_en.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );
					
	});

});


$(window).load(function () {
			jQuery(".cf-start-shadow").show().css( 'background-image', 'url( /static/i/bg-cf-start-shadow.png )' ) 
      		jQuery("#image-change2").show().css( 'background-image', 'url( /static/i/activecastello_en.jpg )' ) 
      		jQuery("#image-change").show().css( 'background-image', 'url( /static/i/activecastello-en.jpg )' )
    		jQuery("<img>").attr("src", "/static/i/hoversonnalp_en.jpg" );
    		jQuery("<img>").attr("src", "/static/i/hoverlandhaeuser_en.jpg" );
    		jQuery('#link-start-castello').removeClass( "hoverlogo" );
    		jQuery('#link-start-castello').addClass( "hoverlogo-en" );
    		jQuery('#link-start-castello').removeClass( "link-start-castello" );
    		jQuery('#link-start-landhaeuser').removeClass( "link-start-landhaeuser" );
			jQuery('#link-start-sonnalp').removeClass( "link-start-sonnalp" );
			jQuery('#link-start-castello').addClass( "link-start-castello-en" );
			jQuery('#link-start-landhaeuser').addClass( "link-start-landhaeuser-en" );
			jQuery('#link-start-sonnalp').addClass( "link-start-sonnalp-en" );
    });

}

if( lng == 'it')
{
jQuery().ready(function() 
{
	jQuery('#link-start-landhaeuser').mouseover(function() 
	{
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
	  	jQuery("#image-change").animate({opacity: 0.0}, 0, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/hoverlandhaeuser_it.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/hoverlandhaeuser_it.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:200 } );
		 
	  
      jQuery('#link-start-castello').removeClass( "hoverlogo-it" );
					
	});
	
	jQuery('#link-start-landhaeuser').mouseout(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
    	jQuery('#link-start-castello').addClass( "hoverlogo-it" );
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_it.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_it.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_it.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:200 } );
					
	});
	
	jQuery('#link-start-castello').mouseover(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();		
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_it.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_it.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_it.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );
					
	});
	
	jQuery('#link-start-sonnalp').mouseover(function() 
	{	
      	jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();
		jQuery("#image-change").animate({opacity: 0.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/hoversonnalp_it.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/hoversonnalp_it.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );

	  	jQuery('#link-start-castello').removeClass( "hoverlogo-it" );
	});
	
		jQuery('#link-start-sonnalp').mouseout(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
    	jQuery('#link-start-castello').addClass( "hoverlogo-it" );
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_it.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_it.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_it.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );
					
	});

});


$(window).load(function () {
			jQuery(".cf-start-shadow").show().css( 'background-image', 'url( /static/i/bg-cf-start-shadow.png )' ) 
      		jQuery("#image-change2").show().css( 'background-image', 'url( /static/i/activecastello_it.jpg )' ) 
      		jQuery("#image-change").show().css( 'background-image', 'url( /static/i/activecastello-it.jpg )' )
    		jQuery("<img>").attr("src", "/static/i/hoversonnalp_it.jpg" );
    		jQuery("<img>").attr("src", "/static/i/hoverlandhaeuser_it.jpg" );
    		jQuery('#link-start-castello').removeClass( "hoverlogo" );
    		jQuery('#link-start-castello').addClass( "hoverlogo-it" );
    		jQuery('#link-start-castello').removeClass( "link-start-castello" );
    		jQuery('#link-start-landhaeuser').removeClass( "link-start-landhaeuser" );
			jQuery('#link-start-sonnalp').removeClass( "link-start-sonnalp" );
			jQuery('#link-start-castello').addClass( "link-start-castello-it" );
			jQuery('#link-start-landhaeuser').addClass( "link-start-landhaeuser-it" );
			jQuery('#link-start-sonnalp').addClass( "link-start-sonnalp-it" );
    });

}


if( lng == 'fr')
{
jQuery().ready(function() 
{
	jQuery('#link-start-landhaeuser').mouseover(function() 
	{
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
	  	jQuery("#image-change").animate({opacity: 0.0}, 0, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/hoverlandhaeuser_fr.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/hoverlandhaeuser_fr.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:200 } );
		 
	  
      jQuery('#link-start-castello').removeClass( "hoverlogo-fr" );
					
	});
	
	jQuery('#link-start-landhaeuser').mouseout(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
    	jQuery('#link-start-castello').addClass( "hoverlogo-fr" );
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_fr.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_fr.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_fr.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:200 } );
					
	});
	
	jQuery('#link-start-castello').mouseover(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();		
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_fr.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_fr.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_fr.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );
					
	});
	
	jQuery('#link-start-sonnalp').mouseover(function() 
	{	
      	jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();
		jQuery("#image-change").animate({opacity: 0.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/hoversonnalp_fr.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/hoversonnalp_fr.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );

	  	jQuery('#link-start-castello').removeClass( "hoverlogo-fr" );
	});
	
		jQuery('#link-start-sonnalp').mouseout(function() 
	{					       
		jQuery("#image-change" ).stop();
		jQuery("#image-change2" ).stop();	
    	jQuery('#link-start-castello').addClass( "hoverlogo-fr" );
	  	jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_fr.jpg )').animate({opacity: 1.0}, 1, 'linear', function(){jQuery("#image-change").css( 'background-image', 'url( /static/i/activecastello_fr.jpg )') });
	  	jQuery("#image-change2").css( 'opacity', '0.0' ).show().css( 'background-image', 'url( /static/i/activcastello_fr.jpg )' ).animate({opacity: 1.0}, { queue:false, duration:1 } );
					
	});

});


$(window).load(function () {
			jQuery(".cf-start-shadow").show().css( 'background-image', 'url( /static/i/bg-cf-start-shadow.png )' ) 
      		jQuery("#image-change2").show().css( 'background-image', 'url( /static/i/activecastello_fr.jpg )' ) 
      		jQuery("#image-change").show().css( 'background-image', 'url( /static/i/activecastello-fr.jpg )' )
    		jQuery("<img>").attr("src", "/static/i/hoversonnalp_fr.jpg" );
    		jQuery("<img>").attr("src", "/static/i/hoverlandhaeuser_fr.jpg" );
    		jQuery('#link-start-castello').removeClass( "hoverlogo" );
    		jQuery('#link-start-castello').addClass( "hoverlogo-fr" );
    		jQuery('#link-start-castello').removeClass( "link-start-castello" );
    		jQuery('#link-start-landhaeuser').removeClass( "link-start-landhaeuser" );
			jQuery('#link-start-sonnalp').removeClass( "link-start-sonnalp" );
			jQuery('#link-start-castello').addClass( "link-start-castello-fr" );
			jQuery('#link-start-landhaeuser').addClass( "link-start-landhaeuser-fr" );
			jQuery('#link-start-sonnalp').addClass( "link-start-sonnalp-fr" );
    });

}


























