jQuery(document).ready(function($) {

	// Navi einblenden 
	//$("#navi").css({"opacity" : "0"});
	//$("#navi").animate({opacity: 0}, 800);
	//$("#navi").animate({opacity: 1}, 1500);
	
	// Horizontale Navi mit Hover-Effekt
	$("a.navilink span").css("display","block");
	$("a.navilink span").css("opacity","0");
	$("a.navilink span").hover(function () {
		// animate opacity to full
		$(".navi-active span").stop().animate({
		opacity: 0
		}, 800);
		$(this).stop().animate({
		
		opacity: 1
		}, 300);
		},
		// on mouse out
		function () {
		// animate opacity to nill
		$(this).stop().animate({
		opacity: 0
		}, 800);
		$(".navi-active span").stop().animate({
		opacity: 1
		}, 300);
	});

	
	
	// Farbive Navibox-Links
	$('.navi-active span').css("opacity","1");
	$('a.navilink').click(function(){
		$('a.navilink').removeClass("navi-active");
		$(this).addClass("navi-active");
		$(this).css("opacity","1");
	});


//COLORBOX (fuer Bilder und IFrames)
$("a.popup").colorbox({iframe:true, speed:100, opacity: 0.5, width:"75%", height:"75%"});
$('dl.gallery-item a').lightBox({
	overlayBgColor: '#000',
	overlayOpacity: 0.6,
	imageLoading: 'http://www.between-horizons.de/wp-content/themes/bh-theme/images/lightbox-ico-loading.gif',
	imageBtnClose: 'http://www.between-horizons.de/wp-content/themes/bh-theme/images/lightbox-btn-close.gif',
	imageBtnPrev: 'http://www.between-horizons.de/wp-content/themes/bh-theme/images/lightbox-btn-prev.gif',
	imageBtnNext: 'http://www.between-horizons.de/wp-content/themes/bh-theme/images/lightbox-btn-next.gif',
	imageBlank: 'http://www.between-horizons.de/wp-content/themes/bh-theme/images/lightbox-blank.gif',
	containerResizeSpeed: 350,
	txtImage: 'Bild',
	txtOf: 'von'
   });


$("#tweet").getTwitter({
					userName: "bh_official",
					numTweets: 3,
					loaderText: "",
					slideIn: false,
					slideDuration: 750,
					showHeading: false,
					headingText: "Latest Tweets",
					showProfileLink: false,
					showTimestamp: true
				});


// Popups (z.B. für MP3-Player)		
var profiles = {
	playerPopup:
	{
		height:330,
		width:250,
		status:0,
		toolbar:0,
		scrollbars:0,
		resizable:0,
		center:1,
		createnew:0
	}
};
	$("a#playerpopup").popupwindow(profiles);				

}); // Ende DOM ready


// Cufon (Schriftart für Headlines)
Cufon.replace('h2.page-title');
Cufon.replace('h4');




