Cufon.replace(
		'.menu-header ul li a', { 
			hover: {
				textShadow: '-1px -1px rgba(139,57,10, 1)',
				color: '-linear-gradient(#ffffff,#ffffff)'
			},
			textShadow: '-1px -1px rgba(0,0,0, 1)',
			color: '-linear-gradient(#bebebe,#ffffff))'
		}
	); 
Cufon.replace('h3.widget-title')
	
var flashvars = {txt1: site_header}; //lub site_header
var params = {
	menu: "false",
	scale: "showall",
	bgcolor: "#ffffff",
	allowScriptAccess: "always",
	wmode: "transparent" 
};

var attributes = {};
swfobject.embedSWF(base+"flash/top_main.swf", "flash_home_content", "1000", "349", "10.0.0", false, flashvars, params, attributes);

$.fn.equalHeights = function(px) {
	$(this).each(function(){
		var currentTallest = 0;
		$(this).children().each(function(i){
			if ($(this).height() > currentTallest) { currentTallest = $(this).height(); }
		});
		// for ie6, set height since min-height isn't supported
		if ($.browser.msie && $.browser.version == 6.0) { $(this).children().css({'height': currentTallest}); }
		$(this).children(':not(.clear)').css({'min-height': currentTallest}); 
	});
	return this;
};

window.onload = function(){
	$('#boxes').equalHeights();
	$('#pop-up').fancybox();
	if( (location.href == 'http://tachobremen.de/') || (location.href == 'http://www.tachobremen.de/') || (location.href == 'http://tacho-bremen.de/') || (location.href == 'http://www.tacho-bremen.de/') ){
		$('#pop-up').click()
	}
}

$(function(){
	$('.box_button').hover(function(){
		$(this).parent().parent().parent().addClass('box_hover')
	},function(){
		$(this).parent().parent().parent().removeClass('box_hover')
	})
	
	for(var i=0;i<$('#angebot-widget-area-center .current_page_item > .children > li').size();i++)
	{
		if(i%3==0){
		$('#angebot-widget-area-center .current_page_item > .children > li:eq('+i+')').css('clear','both')
		}	
	}

	$('#angebot-widget-area-center .current_page_item > .children > li > a').click(function(){
	
		if($(this).attr('class')!='angebot-active'){
			
			$('#angebot-widget-area-center .current_page_item > .children > li > ul').stop();
			
			$('#angebot-widget-area-center .current_page_item > .children > li >a ').removeClass('angebot-active');
			$(this).addClass('angebot-active');
			$('#angebot-widget-area-center .current_page_item > .children > li > ul:not('+this+')').slideUp();
			$(this).next().slideDown();
		
		}
		
		return false;
	})

	$('.wpcf7-form p:odd').addClass('wpcf7-form-odd')
	
})



