window.onload = function(){$("#container").dropShadow({left: 1, top: 1, blur: 1});}


var quickSearchFlag = 0;

function swapSearch(mouseEvent, active) {
	var tgtFieldset = document.getElementById('quick-search').getElementsByTagName('fieldset')[0];
	
	if(mouseEvent && active) {
		quickSearchFlag = quickSearchFlag | 1;
	} else if(mouseEvent && !active) {
		quickSearchFlag = quickSearchFlag & 254;
	} else if(!mouseEvent && active) {
		quickSearchFlag = quickSearchFlag | 2;	
	} else if(!mouseEvent && !active) {
		quickSearchFlag = quickSearchFlag & 253;
	}

	if(quickSearchFlag > 0) {
		tgtFieldset.className = 'active';
	} else {
		tgtFieldset.className = 'inactive';
	}
}

function swapBigImage(newSrc) {
	document.getElementById('big-image').src = newSrc;
}

function swapTeaser(newSrc) {
	$("#head-image img").attr("src", newSrc);
}


$(function() {
	$('.gallery a').lightBox();
});

$(window).load(function() {
	$('p.msg').html('Mouse over images for pulse effect, click to open link in new window.');
});

// Skript für Hover der Bilder-Extension

$(function() {
	$('ul.hover_block li').hover(function(){
		$(this).find('img').animate({top:'182px'},{queue:false,duration:500});
	}, function(){
		$(this).find('img').animate({top:'0px'},{queue:false,duration:500});
	});
});


$(document).ready(function() {
/*	$('#head-image').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed:  2500,
		timeout:  15 
	});*/
});

$(document).ready(function(){
//	$('#head-navi a').bind('mouseenter',function(){
//		$(this).parent().children('ul').toggle(); //text("Mouse enter");
//		$(this).parent().children('ul').css('visibility','visible');
//	});
//	$("#head-navi a").bind("mouseleave",function(){
//		$(this).parent().children('ul').css('visibility','hidden');
//	});
  
//  $("#head-navi a").click(function(){
//    alert("Test");
//    return false;
//  });
});
