// JavaScript Document

/*
 * Copyright 2010 
 * Catalyst Interactive , Dominic Vogl
 * All rights reserved
*/

// Animation Navigation

 $(function(){    
             $('#navigation li a').append('<span class="hover"></span>');  
              // span whose opacity will animate when mouse hovers.  
      
            $('#navigation li a').hover(function() {
	
		// Stuff that happens when you hover on + the stop()
		$('.hover', this).stop().animate({
			'opacity': 1
			}, 500, 'easeOutSine')
	
	},function() {
	
		// Stuff that happens when you unhover + the stop()
		$('.hover', this).stop().animate({
			'opacity': 0
			}, 700, 'easeOutQuad')	
	})
}); 



 $(function(){    
             $('#subnavigation li a').append('<span class="hover"></span>');  
              // span whose opacity will animate when mouse hovers.  
      
            $('#subnavigation li a').hover(function() {
	
		// Stuff that happens when you hover on + the stop()
		$('.hover', this).stop().animate({
			'opacity': 1
			}, 500, 'easeOutSine')
	
	},function() {
	
		// Stuff that happens when you unhover + the stop()
		$('.hover', this).stop().animate({
			'opacity': 0
			}, 700, 'easeOutQuad')	
	})
}); 



$(function(){    
				//Full Caption Sliding (Hidden to Visible)
				$('.boxgrid.captionfull').hover(function(){
					$(".cover", this).stop().animate({top:'120px'},{queue:false,duration:400});
				}, function() {
					$(".cover", this).stop().animate({top:'150px'},{queue:false,duration:400});
				});
		});



/*
//Kopierschutz
var message="(c) by Catalyst-Interactive";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
else if (document.layers||document.getElementById) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

*/

