var clickSoundsFlashObj;

$(document).ready(function() {

	/* IE 6 message */
	if ($.browser.msie && parseInt($.browser.version, 10) < 7 && (window.location.href == 'http://www.augesky.de/home/' || window.location.href == 'http://www.augesky.de/')) {
		$("#ie6error").css({
			'display': 'block'
		});
		$('#currentBrowserVersion').text($.browser.version);

		$("#ie6error div").click(function () {
			$("#ie6error").css({
				'display': 'none'
			});
		});
	}
	/* IE 6 message END */

	/* Sitemap slider BEG */
	$('#sitemap_toggler').click(function() {
		if ($('#fe_inner_subfoot').css('display') == 'none') {
			$('#fe_inner_subfoot').css({
				'display': 'block'
			});
			$('#fe_subfoot').animate({
				'height': '100%'
			}, false, false, function () {
				$('#fe_inner_subfoot').animate({
					'opacity': '1'
				});
			});
		} else {
			$('#fe_inner_subfoot').animate({
				'opacity': '0'
			}, false, false, function () {
				$('#fe_subfoot').animate({
					'height': '0px'
				});
				$('#fe_inner_subfoot').css({
					'display': 'none'
				});
			});
		}
	});
	/* Sitemap slider END */

	/* Top menu BEG */
	/* Top menu END */


	/* Draggable logo BEG 
	$('#fe_ta_logo').draggable({
		appendTo: 'body',
		containment: 'body',
		helper: 'original',
		zIndex: 9999,
		stop: function() {
			$(this).animate({
				'top': '24px',
				'left': '24px'
			}, 1000, 'easeOutElastic');
		}
	});*/
	/* Draggable logo END */

	/* Main menu BEG */

	$('#fe_mainmenu div a').hover(
		function() {
			$(this).parent().stop();
			$(this).parent().animate({
				'width': '328px',
				'backgroundPosition': '0px 0px'
			}, 100);
		},
		function() {
			$(this).parent().stop();
			$(this).parent().animate({
				'width': '300px',
				'backgroundPosition': '-28px 0px'
			}, 100);
		}
	);

	/* Main menu END */

	/* Logo BEG */
	$('#logo').hover(
		function() {
			$('#home').stop();
			$('#home').animate({
				'width': '35px'
			});
		}, function() {
			$('#home').stop();
			$('#home').animate({
				'width': '0px'
			});
		}
	);
	/* Logo END */



});



function getMovieObjOfId(movieName) {

	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	var flObj = (isIE) ? window[movieName] : document[movieName];

	return flObj;
}




