$(document).ready(function () {
	//
	// Home Hotel Navigation
	//
	$('.hotelIcon').bind('mouseover',function(){
		$('#homeNavi div.hotelIconActive').addClass('tempActive');
		$('#homeNavi div').removeClass('hotelIconActive');
		$(this).addClass('hotelIconActive');
	});
	$('.hotelIcon').bind('mouseout',function(){
		$(this).removeClass('hotelIconActive');
		$('#homeNavi div.tempActive').addClass('hotelIconActive');
	});


	//
	// Secondlevel Navi
	//
	$('ul.firstLevel a').not('ul.secondLevel a').bind('mouseenter',function(){
		$('.hover').removeClass('hover');
		if($('.first').hasClass('open')){
			$('.first.open').hide().removeClass('open');
		}
		if($('.second').hasClass('open')){
			$('.second.open').hide().removeClass('open');
		}
		if($('.third').hasClass('open')){
			$('.third.open').hide().removeClass('open');
		}
		if($('.fourth').hasClass('open')){
			$('.fourth.open').hide().removeClass('open');
		}
		if($('.first_en').hasClass('open')){
			$('.first_en.open').hide().removeClass('open');
		}
		if($('.second_en').hasClass('open')){
			$('.second_en.open').hide().removeClass('open');
		}
		if($('.third_en').hasClass('open')){
			$('.third_en.open').hide().removeClass('open');
		}
		if($('.fourth_en').hasClass('open')){
			$('.fourth_en.open').hide().removeClass('open');
		}
		$(this).parent().find('.secondLevel').show().addClass('open');
		$(this).parent().addClass('hover');
		$('.hotelIcon').hide();
	});
	$('ul.secondLevel').bind('mouseleave',function(){
		$('.open').hide().removeClass('open');
		$('.hover').removeClass('hover');
		$('.hotelIcon').fadeIn(700);
	});
	

	//
	// Home Flyout
	//
	$('.footerHotelButton, #footerHotel .icon img, #footerHotel .descr, .bookButton').bind('click',function(){
		if(!$('#homeFlyout').hasClass('show')){
			hideSpecialEventBox();
			$('#homeFlyout').fadeIn(800).addClass('show');
			$('#footerHotel').addClass('footerHotelRel');
		}
		else{
			$('#homeFlyout').fadeOut(800,function(){
				$(this).removeClass('show');
				$('#footerHotel').removeClass('footerHotelRel');
			});
		}
	});

	$('.footerHotelButton,#footerHotel .icon img, #footerHotel .descr').bind('mouseover',function(){
		$('#footerHotel').addClass('hover');
	});
	$('.footerHotelButton,#footerHotel .icon img, #footerHotel .descr').bind('mouseout',function(){
		$('#footerHotel').removeClass('hover');
	});
	$('.footerHotelButton,#footerHotel .icon img, #footerHotel .descr').bind('click',function(){
		if($('#footerHotel').hasClass('clicked')){
			$('#footerHotel').removeClass('clicked');
		}else{
			$('#footerHotel').addClass('clicked');
		}
	});
	$('#homeFlyout .close').bind('click',function(){
		$('#homeFlyout').fadeOut(800,function(){
			$(this).removeClass('show');
			$('#footerHotel').removeClass('footerHotelRel');
			$('#footerHotel').removeClass('clicked');
		});
	});
	$('.bookButton').bind('click',function(){
		//	var url = $(this).attr('rel');
		//	window.location.href = url;
		if($('#footerHotel').hasClass('clicked')){
			$('#footerHotel').removeClass('clicked');
		}else{
			$('#footerHotel').addClass('clicked');
		}	
	});

	// Links für Home Flyout, angepasst in jeweiligen Files
	// $('.goToWebsite').bind('click',function(){
	// var url = $(this).attr('rel');
	// window.location.href = url;
	// });


	//
	// Special Event
	//
	$('#specialEvent .close').bind('click',function(){
		hideSpecialEventBox();
	});
	$('#specialEventOpen').bind('click',function(){
		showSpecialEventBox();
	});
	function hideSpecialEventBox(){
		$('#specialEvent').animate({
			bottom:-370
		},1200,function(){
			$('#specialEventOpen').fadeIn(300);
		});
	}
	function showSpecialEventBox(){
		$('#specialEventOpen').fadeOut(300);
		$('#specialEvent').animate({
			bottom:0
		},1200);
	}

	
	//
	// Background Berechnung
	//
	windowResize();
	function windowResize(){
		var windowHeight = $(window).height();
		var windowWidth = $(window).width();
		var width = windowWidth + 50;

		$('#background1 img').width(windowWidth);
		// $('#background1 img').height(windowHeight);
		$('#background1 img').height(width / 1.65);
		$('#background1 img').attr('src', '/_inc/img/bgBodyGotthard.jpg');

		$('#background2 img').width(windowWidth);
		// $('#background2 img').height(windowHeight);
		$('#background2 img').height(width / 1.65);
		$('#background2 img').attr('src', '/_inc/img/bgBodyEuler.jpg');
		
		$('#background3 img').width(windowWidth);
		// $('#background3 img').height(windowHeight);
		$('#background3 img').height(width / 1.65);
		$('#background3 img').attr('src', '/_inc/img/bgBodyContinental.jpg');

		$('#background4 img').width(windowWidth);
		// $('#background4 img').height(windowHeight);
		$('#background4 img').height(width / 1.65);
		$('#background4 img').attr('src', '/_inc/img/bgBodyCityInn2.jpg');

		$('#background5 img').width(windowWidth);
		// $('#background5 img').height(windowHeight);
		$('#background5 img').height(width / 1.65);
		$('#background5 img').attr('src', '/_inc/img/bgBodyAbout.jpg');

		$('#background6 img').width(windowWidth);
		// $('#background6 img').height(windowHeight);
		$('#background6 img').height(width / 1.65);
		$('#background6 img').attr('src', '/_inc/img/bgBodyContact.jpg');

		$('#background7 img').width(windowWidth);
		// $('#background7 img').height(windowHeight);
		$('#background7 img').height(width / 1.65);
		$('#background7 img').attr('src', '/_inc/img/bgBodyOffers.jpg');

		$('#background8 img').width(windowWidth);
		// $('#background8 img').height(windowHeight);
		$('#background8 img').height(width / 1.65);
		$('#background8 img').attr('src', '/_inc/img/bgBodyNews.jpg');

		$('#background9 img').width(windowWidth);
		// $('#background9 img').height(windowHeight);
		$('#background9 img').height(width / 1.65);
		$('#background9 img').attr('src', '/_inc/img/bgBodyReviews.jpg');
		
		// alert (windowWidth + " * " + windowHeight + ", Seitenverhältnis: " + windowWidth/windowHeight);
	}
	var height = $(window).height();
	var neuehoehe = height/2;
	$('#arrowLeft').css('top',neuehoehe);
	$('#arrowRight').css('top',neuehoehe);

	$(window).resize(function() {
		windowResize();
		var height = $(window).height();
		$('#arrowLeft').css('top',height/2);
		$('#arrowRight').css('top',height/2);
	});
	

	//
	// Suchboxen Value setzen
	//
	$('#search').attr('value', 'search');
	$('#suche').attr('value', 'suche');

	
	//
	// Accordion: Organisation Mouse Over und Ebenen einblenden
	//
	$(".organisation_info1").hover(function () {
		if ($(".organisation_info1").hasClass("organisation_info_akt") == true) {
			$(".organisation_info1").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info1").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info1").click(function () {
		if ($(".organisation_info1.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info1_window").hide();
			$(".organisation_info1").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info1_window").show();
			$(".organisation_info1").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info2").hover(function () {
		if ($(".organisation_info2").hasClass("organisation_info_akt") == true) {
			$(".organisation_info2").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info2").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info2").click(function () {
		if ($(".organisation_info2.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info2_window").hide();
			$(".organisation_info2").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info2_window").show();
			$(".organisation_info2").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info3").hover(function () {
		if ($(".organisation_info3").hasClass("organisation_info_akt") == true) {
			$(".organisation_info3").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info3").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info3").click(function () {
		if ($(".organisation_info3.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info3_window").hide();
			$(".organisation_info3").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info3_window").show();
			$(".organisation_info3").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info4").hover(function () {
		if ($(".organisation_info4").hasClass("organisation_info_akt") == true) {
			$(".organisation_info4").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info4").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info4").click(function () {
		if ($(".organisation_info4.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info4_window").hide();
			$(".organisation_info4").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info4_window").show();
			$(".organisation_info4").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info5").hover(function () {
		if ($(".organisation_info5").hasClass("organisation_info_akt") == true) {
			$(".organisation_info5").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info5").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info5").click(function () {
		if ($(".organisation_info5.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info5_window").hide();
			$(".organisation_info5").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info5_window").show();
			$(".organisation_info5").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info6").hover(function () {
		if ($(".organisation_info6").hasClass("organisation_info_akt") == true) {
			$(".organisation_info6").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info6").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info6").click(function () {
		if ($(".organisation_info6.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info6_window").hide();
			$(".organisation_info6").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info6_window").show();
			$(".organisation_info6").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info7").hover(function () {
		if ($(".organisation_info7").hasClass("organisation_info_akt") == true) {
			$(".organisation_info7").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info7").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info7").click(function () {
		if ($(".organisation_info7.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info7_window").hide();
			$(".organisation_info7").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info7_window").show();
			$(".organisation_info7").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info8").hover(function () {
		if ($(".organisation_info8").hasClass("organisation_info_akt") == true) {
			$(".organisation_info8").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info8").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info8").click(function () {
		if ($(".organisation_info8.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info8_window").hide();
			$(".organisation_info8").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info8_window").show();
			$(".organisation_info8").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info9").hover(function () {
		if ($(".organisation_info9").hasClass("organisation_info_akt") == true) {
			$(".organisation_info9").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info9").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info9").click(function () {
		if ($(".organisation_info9.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info9_window").hide();
			$(".organisation_info9").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info9_window").show();
			$(".organisation_info9").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info10").hover(function () {
		if ($(".organisation_info10").hasClass("organisation_info_akt") == true) {
			$(".organisation_info10").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info10").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info10").click(function () {
		if ($(".organisation_info10.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info10_window").hide();
			$(".organisation_info10").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info10_window").show();
			$(".organisation_info10").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info11").hover(function () {
		if ($(".organisation_info11").hasClass("organisation_info_akt") == true) {
			$(".organisation_info11").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info11").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info11").click(function () {
		if ($(".organisation_info11.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info11_window").hide();
			$(".organisation_info11").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info11_window").show();
			$(".organisation_info11").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info12").hover(function () {
		if ($(".organisation_info12").hasClass("organisation_info_akt") == true) {
			$(".organisation_info12").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info12").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info12").click(function () {
		if ($(".organisation_info12.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info12_window").hide();
			$(".organisation_info12").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info12_window").show();
			$(".organisation_info12").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info13").hover(function () {
		if ($(".organisation_info13").hasClass("organisation_info_akt") == true) {
			$(".organisation_info13").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info13").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info13").click(function () {
		if ($(".organisation_info13.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info13_window").hide();
			$(".organisation_info13").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info13_window").show();
			$(".organisation_info13").addClass("organisation_info_clicked");
		}
		return false;
	});

	$(".organisation_info14").hover(function () {
		if ($(".organisation_info14").hasClass("organisation_info_akt") == true) {
			$(".organisation_info14").removeClass("organisation_info_akt");
		}
		else {
			$(".organisation_info14").addClass("organisation_info_akt");
		}
		return false;
	});
	$(".organisation_info14").click(function () {
		if ($(".organisation_info14.organisation_info_akt").hasClass("organisation_info_clicked") == true) {
			$(".organisation_info14_window").hide();
			$(".organisation_info14").removeClass("organisation_info_clicked");
		}
		else {
			$(".organisation_info14_window").show();
			$(".organisation_info14").addClass("organisation_info_clicked");
		}
		return false;
	});
	
	
	//
	// Link im Accordion auf Lebenslauf und e-Mail
	//
	$(".organisationRowLeftLink1").hover(function () {
		if ($(".organisationRowLeftLink1").hasClass("organisationRowLeftLink_akt") == true) {
			$(".organisationRowLeftLink1").removeClass("organisationRowLeftLink_akt");
		}
		else {
			$(".organisationRowLeftLink1").addClass("organisationRowLeftLink_akt");
		}
		return false;
	});	
	$(".organisationRowLeftLink2").hover(function () {
		if ($(".organisationRowLeftLink2").hasClass("organisationRowLeftLink_akt") == true) {
			$(".organisationRowLeftLink2").removeClass("organisationRowLeftLink_akt");
		}
		else {
			$(".organisationRowLeftLink2").addClass("organisationRowLeftLink_akt");
		}
		return false;
	});
	$('.organisationRowLeftLink1').bind('click',function(){
		var url = $(this).attr('rel');
		window.location.href = url;
		// window.open(url);
		// location.reload();
	});	
	$('.organisationRowLeftLink2').bind('click',function(){
		var url = $(this).attr('rel');
		// window.location.href = url;
		window.open(url);
		// location.reload();
	});	


	//
	// Download Top
	//
	$("#downloadOverview .itemID1.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID1.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID1.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID1.dateiBack").addClass("item_akt");
		}
		return false;
	});		
	$("#downloadOverview .itemID1.urlBack").hover(function () {
		if ($("#downloadOverview .itemID1.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID1.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID1.urlBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID1.videoBack").hover(function () {
		if ($("#downloadOverview .itemID1.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID1.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID1.videoBack").addClass("item_akt");
		}
		return false;
	});	

	$("#downloadOverview .itemID2.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID2.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID2.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID2.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID2.urlBack").hover(function () {
		if ($("#downloadOverview .itemID2.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID2.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID2.urlBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID2.videoBack").hover(function () {
		if ($("#downloadOverview .itemID2.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID2.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID2.videoBack").addClass("item_akt");
		}
		return false;
	});	

	$("#downloadOverview .itemID3.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID3.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID3.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID3.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID3.urlBack").hover(function () {
		if ($("#downloadOverview .itemID3.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID3.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID3.urlBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID3.videoBack").hover(function () {
		if ($("#downloadOverview .itemID3.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID3.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID3.videoBack").addClass("item_akt");
		}
		return false;
	});	

	$("#downloadOverview .itemID4.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID4.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID4.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID4.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID4.urlBack").hover(function () {
		if ($("#downloadOverview .itemID4.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID4.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID4.urlBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID4.videoBack").hover(function () {
		if ($("#downloadOverview .itemID4.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID4.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID4.videoBack").addClass("item_akt");
		}
		return false;
	});	
	
	$("#downloadOverview .itemID5.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID5.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID5.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID5.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID5.urlBack").hover(function () {
		if ($("#downloadOverview .itemID5.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID5.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID5.urlBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID5.videoBack").hover(function () {
		if ($("#downloadOverview .itemID5.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID5.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID5.videoBack").addClass("item_akt");
		}
		return false;
	});	

	$("#downloadOverview .itemID6.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID6.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID6.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID6.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID6.urlBack").hover(function () {
		if ($("#downloadOverview .itemID6.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID6.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID6.urlBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID6.videoBack").hover(function () {
		if ($("#downloadOverview .itemID6.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID6.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID6.videoBack").addClass("item_akt");
		}
		return false;
	});	
	
	$("#downloadOverview .itemID7.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID7.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID7.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID7.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID7.urlBack").hover(function () {
		if ($("#downloadOverview .itemID7.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID7.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID7.urlBack").addClass("item_akt");
		}
		return false;
	});
	$("#downloadOverview .itemID7.videoBack").hover(function () {
		if ($("#downloadOverview .itemID7.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID7.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID7.videoBack").addClass("item_akt");
		}
		return false;
	});
	
	$("#downloadOverview .itemID8.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID8.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID8.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID8.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID8.urlBack").hover(function () {
		if ($("#downloadOverview .itemID8.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID8.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID8.urlBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID8.videoBack").hover(function () {
		if ($("#downloadOverview .itemID8.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID8.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID8.videoBack").addClass("item_akt");
		}
		return false;
	});	
	
	$("#downloadOverview .itemID9.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID9.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID9.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID9.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID9.urlBack").hover(function () {
		if ($("#downloadOverview .itemID9.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID9.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID9.urlBack").addClass("item_akt");
		}
		return false;
	});
	$("#downloadOverview .itemID9.videoBack").hover(function () {
		if ($("#downloadOverview .itemID9.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID9.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID9.videoBack").addClass("item_akt");
		}
		return false;
	});
	
	$("#downloadOverview .itemID10.dateiBack").hover(function () {
		if ($("#downloadOverview .itemID10.dateiBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID10.dateiBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID10.dateiBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID10.urlBack").hover(function () {
		if ($("#downloadOverview .itemID10.urlBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID10.urlBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID10.urlBack").addClass("item_akt");
		}
		return false;
	});	
	$("#downloadOverview .itemID10.videoBack").hover(function () {
		if ($("#downloadOverview .itemID10.videoBack").hasClass("item_akt") == true) {
			$("#downloadOverview .itemID10.videoBack").removeClass("item_akt");
		}
		else {
			$("#downloadOverview .itemID10.videoBack").addClass("item_akt");
		}
		return false;
	});	

	$('.itemTop').bind('click',function(){
		var url = $(this).attr('rel');
		// window.location.href = url;
		window.open(url);
		// location.reload();
	});	

});
