/*-------------------- /projects/26/templates/js/main.js --------------------*/
/*
    Document   : main.js
    Created on : 13.10.2011, 12:56:15
    Description:
        Basis javascript Datei  
*/



$(document).ready(function () {
	
	initPrettyFoto();
	
	Cufon.replace('#TopNav a, #TopNav .main', {fontFamily: 'Delicious' });
	Cufon.replace('.contentbox h2', {fontFamily: 'Delicious', fontSize: '20px' });
	
	
	 
	$('#TopNav > ul > li:not(.active)').hover(function(){
	//$('#TopNav > ul > li').hover(function(){
		 
		var s = $('.subnav', this);
		s.show();
		if( s.length > 0 ){
			
			$('a, .main', this).css({
				'border-bottom':'1px solid #39B610'
			})
			$(this).css({
				'border-bottom':'1px solid #39B610'
			}).stop().animate({
				'top': '-70px',
				'height': '102px'
			},300, 'swing', function(){
				
			});
		}
		
//		$('a', this).stop().animate({
//			'height':'43px'
//		},200);
		
	},function(){
		var s = $('.subnav', this);
		
		if( s.length > 0 ){
			
			$(this).css({
				'border-bottom':'1px solid #339a13'
			}).stop().animate({
				'top': '0px',
				'height': '31px'
			}, 'swing', function(){
				s.hide();
				$('a', this).css({
					'border-bottom':'1px solid #38a814'
				});
			});
		}
//		$('a', this).stop().animate({
//			'height':'30px'
//		});
	});
});

function ajax_trackimage(image_id){ }

function slideshow(){ }

function initPrettyFoto(){
	/*-------------------------------------------------------------------------
	   prettyPhoto
	---------------------------------------------------------------------------*/
	$("a[rel^='prettyOverlay'],a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal',
			opacity: 0.55,
			showTitle: true,
			allowresize: true,
			counter_separator_label: '/' ,
			theme: 'light_rounded' /* light_rounded / dark_rounded / light_square / dark_square */
		});
}
/*--------------------------------------------------------------------------------
sum bytes: 1763 (2 KB)
--------------------------------------------------------------------------------*/

