	// CUFON
	Cufon.replace('h1',{
		color: '#a75493'
	});
	Cufon.replace('li.level1 a',{
		hover: {
			color: '#fff'
		}
	});
	Cufon.replace('a.doCufon',{
		hover: {
			color: '#a75493'
		}
	});
	Cufon.replace('h3',{
		color: '#81725e'
	});	

	Cufon.replace('div#lang_choice a',{
		color: '#81725e'
	});	
	Cufon.replace('div.innertext a.isCufon',{
		color: '#a75493'
	});	
	Cufon.replace('a.terug',{
		color: '#D0C4B7'
	});	
	


$(document).ready(function() {

	/* --SCROLLABLE DIVS -- */
	
	if ( $('#kleuren').length > 0 )
		{
		$('#kleuren').jScrollPane({
			showArrows:true,
			scrollbarWidth : 16
		}); 
	}
	
	if ( $('div.innertext').length > 0 )
		{
		$('div.innertext').jScrollPane({
			showArrows:true,
			scrollbarWidth : 16,
			Width:700
		}); 
	}


});



$(document).ready(function() {

	/* -- SELECTBOXES --*/
	
	if ( $('form.jqtransform').length > 0 )
	{
		$("form.jqtransform").jqTransform();
		$("div.jqTransformSelectWrapper ul li a").click( 
			function(){
				$("#prod_search").submit();
			});
		

		$("a.color_search").click(
			function(e){
				e.preventDefault();
				color = this.rel ;
				$("select[name='kleur']").val(color);
				$("#prod_search").attr('ACTION','/'+$('#formaction').val() );
				$("#prod_search").submit();
			});
	}
	

	/* -- COLOR SUBMENU--*/
	$('div#menu_right_colors').hide();
	a = $('div#menu_right_colors').parent() ;
	a.mouseover(function(){ 
		$('div#menu_right_colors').fadeIn(500) ;
	});
	a.mouseleave(function(){ 
		$('div#menu_right_colors').hide();
	});

	
	
	
	/* -- IMAGE ROTATOR -- */
	
	if ( $('#image_rotate').length > 0 )
	{
		 $('#image_rotate').innerfade({   
			 speed: 3000,   
			 timeout: 5000,   
			 type: 'sequence',   
			 containerheight: '220px'  
		 });  
	}

	/* --POPUP FANCYBOX -- */

	if ( $('a.inline').length > 0 )
		{
		 $('a.inline').fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	700, 
			'speedOut'		:	200, 
			'overlayShow'	:	false,
			'titleShow'	: false ,
			'padding'		: 30
		});
	}

	/* --POPUP FANCYBOX PUBLICATIONS -- */

	if ( $('a.inline_pub').length > 0 )
	{
		
		$('a.inline_pub').click(function(e){
			e.preventDefault();						 
			
			$('#preload_content').load(this.href, function()
			{
				

				 $('a.inline_pub').fancybox({
					'transitionIn'	:	'elastic',
					'transitionOut'	:	'elastic',
					'speedIn'		:	700,
					'speedOut'		:	200,
					'overlayShow'	:	false,
					'width' :500 ,
					'height' :600 ,
					'titleShow'	: false ,
					'padding'		: 30
				});			
				

			});							 
		})
		
	}
	
	/* --PAGINATION -- */

	if ( $('div.pagination').length > 0 )
		{
		 $('div.pagination a').click(
		function(e)
		{
			e.preventDefault();
			$('form#prod_search').attr('ACTION', this.href);
			$('form#prod_search').submit();
		});
	}

});



