AC_FL_RunContent = 0;
var jsReady = false;
var blaSrc = '';
$(document).ready(function() {
	$(window).bind("resize", resizeWindow);
	$('#background').attr('src', blaSrc).load(function() {  
	   $("#background").css( "width", "100%");
	});  

});
function resizeWindow( e ) {
	var newWindowHeight = $(window).height();
	var newWindowWidth = $(window).width();
		
	if( $("#background").height() < newWindowHeight ){
		$("#background").css( "height", "100%" );
		$("#background").css( "width", "auto");
	}		
	if( $("#background").width() < newWindowWidth ){
		$("#background").css( "height", "auto" );
		$("#background").css( "width", "100%");
	}		
}
function isReady() {
	//alert( jsReady );
	return jsReady;
}
function sendToActionScript(value) {
    thisMovie("startseite").sendToActionScript(value);
}
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
}
function setHref( linkStr ){
	//document.getElementById('href').href = linkStr;
}
function setImg( imgUrlStr ){
	loadImg = new Image (); 
    loadImg.src = imgUrlStr;
	blaSrc = loadImg.src;
	document.getElementById('background').src = loadImg.src;
	resizeWindow();
}
