/*
Entwickelt mit JQuery 1.4.1
Stand 2010-02-19
*/
$(window).ready( function() {

// Navigation und Subnavigation
	$('#navigation li a').hover( function() {
		if( $(this).attr('class')!='current browser' ) {
			$(this).animate({"backgroundColor":"#6B6B64"});
		}
	}, function() {
		if( $(this).attr('class')!='current browser' ) {
			$(this).animate({"backgroundColor":"#FFF"});
		}
	});

	$('#subnav li a').hover( function() {
		if( $(this).attr('class')!='current browser' ) {
			$(this).animate({"color":"black"});
		}
	}, function() {
		if( $(this).attr('class')!='current browser' ) {
			$(this).animate({"color":"#808078"});
		}
	});


// Head-Box animieren
	$('.linked li').hover( 
		function() {
			$(this).animate({"color":"#3B6801"});
			$(this).find('a').animate({"color":"#3B6801"});
		}, 
		function() {
			$(this).animate({"color":"#859F01"});
			$(this).find('a').animate({"color":"#859F01"});
		}
	);


// Linked-Datensätze verlinken
	$('.linked li').css('cursor','pointer');
	$('.linked li').click( 
		function () {
			var url = $(this).find('a').attr('href');
			if( url ) {
				window.location.href = url;
			}
		}
	);


// Go-To verlinken
	$('.go-to').css('cursor','pointer');
	$('.go-to').click( 
		function () {
			var url = $(this).find('a').attr('href');
			if( url ) {
				window.location.href = url;
			}
		}
	);


// Teaser-Box animieren
	$('.teaser').hover( 
		function() {
			$(this).children('.head-box').animate({"backgroundColor":"#AAAAA5"});
			$(this).find('a').attr('class','hover');
/*			
			var h1 = $(this).find('h1').text();
			window.status = h1;*/
		}, 
		function() {
			$(this).children('.head-box').animate({"backgroundColor":"#DCDCDA"});
			$(this).find('a').attr('class','reg');
		}
	);


// Teaser-Box verlinken
	$('.teaser').css('cursor','pointer');
	$('.teaser').click( function () {
		var url = $(this).children('.more').children('a').attr('href');
		if( url ) {
			window.location.href = url;
		}
	});


// More-Info animieren
	$('.more-info li').hover( 
		function() {
			$(this).animate({"color":"black"});
			$(this).animate({"backgroundColor":"#DCDCDA"});
		}, 
		function() {
			$(this).animate({"color":"#272725"});
			$(this).animate({"backgroundColor":"#F6F6F2"});
		}
	);


// More-Info-Datensätze verlinken
	$('.more-info li').css('cursor','pointer');
	$('.more-info li').click( 
		function () {
			var url = $(this).find('a').attr('href');
			if( url ) {
				window.location.href = url;
			}
		}
	);



// SchirmShow Box
	$('#schirmshowbox').css('cursor','pointer');
	$('#schirmshowbox').hover( 
		function() {
			$(this).animate({"backgroundColor":"black"});
		}, 
		function() {
			$(this).animate({"backgroundColor":"#53534E"});
		}
	);

});



function schirmshow( type ) {
	target="schirme-bauer-schirmshow.php?type="+type;
	window.open( target, "BauerSchirmShow", "width=1005,height=600,left=40,top=30,resizable=no" ); 
	return;
}

