

$(document).ready(function() {
	
	var	detect_url = $('img#fancy_img').live('mouseover' , function() {
		$(this).attr('src');
	});
	
	$('a.downloadButton').live('mouseover', function() {
		$(this).replaceWith('<a class="meinebilder" href="pub/php/imgDownloader.php?img=' + detect_url + '"></a>');
	});
	

 	

	
	
	//CSS-Anpassungen für Bildergalerie-Navigation
	var anzeigen = $('#mainNav ul.subNav').css('display' , 'none');
	var param = document.URL;
	
	
	//Diashow Fancybox
	//$("a.fancybox").fancybox(); 
	
	// jCarouseleLite
	$(".infoboxContent .gallery").jCarouselLite({
    	auto: 800,
    	speed: 1000
	});

	
	
	/* Using custom settings */ 
	$('a.fancybox, a.thickbox').fancybox({
		overlayShow: true,
		overlayOpacity: .8,
		easingChange: false,
		zoomSpeedIn:  200,
		zoomSpeedOut: 200,
		imageScale: true
	});


	$("a#inline").fancybox( { 
		'hideOnContentClick': true
	 }); 
		 
	$("a.gallery").fancybox( { 
		'zoomSpeedIn': 300, 
		'zoomSpeedOut': 300, 
		'overlayShow': true 
	}); 
	
	// Bildergalerie-Navigation
	//$('a[href="bildergalerie/"]').replaceWith('<a class="meinebilder" href=" ' + param + '# ">Bildergalerie</a>');
	//$('a[href="nancys-rocco/"]').replaceWith('<a class="meinebilder" href=" ' + param + '# ">Nancy´s "Rocco"</a>');
	
	
	$('a[href="bildergalerie/"]').mouseover(function() {
		$(this).next().animate ({
			height: 'show',
			opacity: 'show'
		}, 'fast');
		$(this).css('background', 'url(/pub/css/img/motorMainNaviHover.jpg) no-repeat');
	});
	
	$('a[href="nancys-rocco/"]').mouseover(function() {
		$(this).next().animate ({
			height: 'show',
			opacity: 'show'
		}, 'slow');
		$(this).css('background', 'url(/pub/css/img/motorMainNaviHover.jpg) no-repeat');
	});
	
	//return false;
	// Externe Links der Sponsoren
	$('#sponsors').find('a').each(function(){
		$(this).attr('target', '_blank');
	});
	
	
});

/*
 * Typo3 Anti-Spam Mail function
 *
*/
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[3-9g-l]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7 4(a,d,b,e){a=a+e;3(e>0&&a>b){a=d+(a-b-1)}5 3(e<0&&a<d){a=b-(d-a-1)}8 String.fromCharCode(a)}7 9(a,d){6 b="";6 e=a.length;for(6 f=0;f<e;f++){6 c=a.charCodeAt(f);3(c>=g&&c<=h){b+=4(c,g,h,d)}5 3(c>=i&&c<=j){b+=4(c,i,j,d)}5 3(c>=k&&c<=l){b+=4(c,k,l,d)}5{b+=a.charAt(f)}}8 b}7 linkTo_UnCryptMailto(a){location.href=9(a,-2)}',[],22,'|||if|decryptCharcode|else|var|function|return|decryptString|||||||0x2B|0x3A|0x40|0x5A|0x61|0x7A'.split('|'),0,{}))
