
$(document).ready( function () {	
	$("#id_whiteout_box").animate({width: "100%"}, 1000, "linear", function () {
	$("#id_whiteout_top").animate({marginTop: "-20px"}, 500, "linear");
	$("#id_whiteout_bottom").animate({marginTop: "+20px"}, 500, "linear");
	}).fadeOut("slow");
});


// $(document).ready(function(){  
// 	$("#jquery_jplayer").jPlayer({
// 		ready: function () {
// 			$(this).setFile('mp3/low.hbe.Tod.mp3').play();
// 			},  
// 			oggSupport: true  
// 			});  
// 		
// 		$("#jquery_jplayer").jPlayerId("play", "play_button");
// 		$("#jquery_jplayer").jPlayerId("pause", "pause_button");
// 		$("#jquery_jplayer").jPlayerId("stop", "stop_button");
// 		
// 		$("#jquery_jplayer").onSoundComplete( function() {
// 		$(this).play();
// 		});  
// 		});

// browserweiche
function checkBrowserName (name) {  
	var agent = navigator.userAgent.toLowerCase();  
	if (agent.indexOf(name.toLowerCase())>-1) {  
	return true;  
	}  
	return false;  
	} 
	
	// 24.09.2009 12:09:16
	// bugfix jQuery accordion 'flackern' im ie6
	if (checkBrowserName('MSIE')) { // ie
		$(function() {$("#accordion").accordion({active: false, autoHeight: false, animated:false});
		});
	} else { // nicht ie
		$(function() {$("#accordion").accordion({active: false, autoHeight: false});
		});
		}	


// >>> [gallery img reload hotfix ~ 14.09.2009 13:24:11] >>>>>>>>>>>>>>>>>>>>>>>

function img_actions (imagesrc) {
	if (img_actions.oldsize < $('div#content').height() || !img_actions.oldsize) {
		img_actions.oldsize = $('div#content').height();
		}
	$('#bigimg').attr({src: imagesrc});
	}

function changeobserver () {
	var newsize = $('div#content').height();
	if (newsize > img_actions.oldsize) {
		$('div#content').css({'height' : newsize});
		}}
