jQuery.noConflict();

jQuery(document).ready(function() {
		
		movingBannerCtrl.init('fileadmin/images', 'testHolder');
		
		/* if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i))) { 
			
			jQuery(".Unten").html("<div style='text-align: center;'><table width='940' cellspacing='0' cellpadding='0' border='0' class='imgtext-table' style='margin-left: auto; margin-right: auto;'><tbody><tr><td colspan='1'><img width='940' height='1' alt='' src='clear.gif'></td></tr><tr><td valign='top'><img width='940' height='60' border='0' align='top' title='' alt='' src='fileadmin/bilder/figurenband_noloop.gif'><br></td></tr></tbody></table></div>");	
		  
		}*/

		jQuery(".subnormal").hover(function (){
				jQuery(this).css( {"background-image": "url('/fileadmin/template/mainsite/images/aktiv-indikator.gif')"});
		}, function(){ 
				jQuery(this).css( {"background-image": "none"});
		});
		
		jQuery(".inactive").hover(function (){
				jQuery(this).css( {"background-image": "url('/fileadmin/template/mainsite/images/pfeil-navigation.gif')"});
		}, function(){ 
				jQuery(this).css( {"background-image": "none"});
		});

		jQuery(".image-back").hover(function (){
				jQuery(this).attr( {"src": "/fileadmin/template/mainsite/images/pfeil-zurueck-aktiv.jpg"});
		}, function(){ 
				jQuery(this).attr( {"src": "/fileadmin/template/mainsite/images/pfeil-zurueck-inaktiv.jpg"});
		});
		
		jQuery(".image-back").click(function (){
				document.location.href = "/hauptnavigation/aktuelles/news/";
		});
		
		jQuery(".image-back-archiv").click(function (){
				document.location.href = "/hauptnavigation/aktuelles/news-archiv/";
		});

		jQuery(".image-back-ko").hover(function (){
				jQuery(this).attr( {"src": "/fileadmin/template/mainsite/images/pfeil-zurueck-aktiv.jpg"});
		}, function(){ 
				jQuery(this).attr( {"src": "/fileadmin/template/mainsite/images/pfeil-zurueck-inaktiv.jpg"});
		});
		
		jQuery(".image-back-ko").click(function (){
				document.location.href = "/hauptnavigation/unternehmen/kooperationen/";
		});
		
		jQuery("#footerBG").click(function (){
			jQuery(".menulayer").css("visibility","hidden");		
		});
		
		jQuery("#contentBox").click(function (){
			jQuery(".menulayer").css("visibility","hidden");		
		});
		
		if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i))) {
		  jQuery("#flowBox").swipe({
		  		  swipeLeft: function() { beRightCF(); },
		  		  swipeRight: function() { beLeftCF(); }
        	  }); 
    }
});

