
//  FADING HEADERBILDER

$(document).ready(function() {
  $('#faded').cycle({
  fx: 'fade',
  timeout: 6000,
  speed: 'slow' 
  });	
});






//FADE SPECIALPIC  HOVERPIC

$(document).ready(function(){
						   
$('.specialpic img, .hoverpic img').hover(function() {
		$(this).stop().fadeTo("slow", 1);
	}, function() {
		$(this).stop().fadeTo("slow", 0.6);
	});

});



//  COLORBOX EINSTELLUNGEN


$(document).ready(function(){

			$("a[rel='bildbox']").colorbox();
			$("a[rel='bildboxfade']").colorbox({transition:"fade"});
			$("a[rel='bildbox75']").colorbox({transition:"none", width:"75%", height:"75%"});
			$("a[rel='example4']").colorbox({slideshow:true});
			$(".example5").colorbox();
			$(".example6").colorbox({iframe:true, innerWidth:425, innerHeight:344});
			$(".htmliframe").colorbox({width:"80%", height:"80%", iframe:true});
			$(".login-box").colorbox({width:"520px", height:"420px", inline:true, href:"#inline-loginbox"});
			$(".example9").colorbox({
				onOpen:function(){ alert('onOpen: colorbox is about to open'); },
				onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
				onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
				onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
				onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
			});
			
			//Example of preserving a JavaScript event for inline calls.
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
});


//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
