Cufon.replace('a.searchBtn, .questions .navigation, .webshop a.left, .webshop a.right, p b small, #webshop li a b small, #webshop li a span.more', { fontFamily: 'vagbold', hover: true }); //, #slideshowNav a
Cufon.replace('#mainmenu li a, #header ul li a span, .three-column .interactieblok, #pdf, .button, .guestbook .navigation li, .questions .progress strong,thead th,.questions h3,.shoppingcart .mid strong, .shoppingcart .mid a, .webshop .slideshow .navigation a, .webshop h3, .loginMenu',  { fontFamily: 'vag', hover: true });



$(document).ready(function(){
	
	/*
	
	Cufon.replace($("#slideshowNav a"), { fontFamily: 'vagbold', color: '#e95f11' });
	$("#slideshowNav a").hover(function(){
		$this=$(this);
		//$object = $this.find('a');
		//$object2 = $this.find('span.more');
		Cufon.replace($this, { fontFamily: 'vagbold', color: '#afc800' });
		//Cufon.replace($object2, { fontFamily: 'vagbold', color: 'white' });
	},function(){		
		$this=$(this);
		//$object = $this.find('a');
		//$object2 = $this.find('span.more');
		Cufon.replace($this, { fontFamily: 'vagbold', color: '#e95f11' });
		//Cufon.replace($object2, { fontFamily: 'vagbold', color: '#e95d0e' });	
	});	
	*/
	
	$("#webshop li a").hover(function(){
		$this=$(this);
		$object = $this.find('small');
		$object2 = $this.find('span.more');
		Cufon.replace($object, { fontFamily: 'vagbold', color: 'white' });
		Cufon.replace($object2, { fontFamily: 'vagbold', color: 'white' });
	},function(){		
		$this=$(this);
		$object = $this.find('small');
		$object2 = $this.find('span.more');
		Cufon.replace($object, { fontFamily: 'vagbold', color: '#8a9d00' });
		Cufon.replace($object2, { fontFamily: 'vagbold', color: '#e95d0e' });	
	});
	
/*
	$("#mainmenu ul li a").hover(function(){
		$(this).css("background", "url(/~siteDesign/site/~img/menu-li-a-hover.png) right no-repeat");
		$object = $(this).find('span');
		$object.css("background", "url(/~siteDesign/site/~img/menu-li-a-hover-span.png) left no-repeat");
	},function(){		
		$(this).css("background", "none");
		$object = $(this).find('span');
		$object.css("background", "none");
	});
*/
	

	$("#header ul li:not(.active) a").hover(function(){
		$this=$(this);
		$object = $this.find('span');
		Cufon.replace($object, { fontFamily: 'vag', color: '#8a9d00' });
	},function(){		
		$this=$(this);
		$object = $this.find('span');
		Cufon.replace($object, { fontFamily: 'vag', color: '#898989' });
	});
	
	if($(".faq").length){
		$(".faq").accordion({collapsible: true, autoHeight: false, active: false});		
	}
	
	if($(".playerWrapper").length){
		if(swfobject.hasFlashPlayerVersion("1"))
		{
			$('.flash').toggle();
			//$('.noFlash').toggle();
		}
		else
		{
			$('.noFlash').toggle();
		}
	}
	
	
	if($(".productAccordeon").length){
		$(".productAccordeon").accordion({collapsible: true, autoHeight: false, active: false});		
	}
	
	if($(".questions table").length){
		$("tr:odd").addClass('odd');
	}

						   
	/*$('#hometeaser .slideshow').cycle({ 
		fx:     'fade', 
		speed:  'fast', 
		timeout: 0, 
		pager:  '.navigation div'
	
	});*/			
	$('.webshop .slideshow .images').cycle({ 
		fx:     'fade', 
		speed:  'fast', 
		timeout: 0, 
		pager:  '.navigation',	
		after: function() {
			var $current = $('.webshop .slideshow .images a:visible');	
			var $img = $current.children().attr('src');
			$('#zoom').attr('href',$img);
			Shadowbox.init();
		} 
	});
	$(".webshop .slideshow .navigation a").click(function(){
		Cufon.replace('.webshop .slideshow .navigation a', { fontFamily: 'vag' })
	});
	
		if($(".login").length>0){
		$(".login").click(function(){
			
			 Shadowbox.open({
				  content:    '/~popups/aanmelden.cfm',
				  player:     "iframe",
				  height:     360,
				  width:      599
			 });
		});
	}
	
	if($("#logout").length>0){
		$("#logout").click(function(){
			 Shadowbox.open({
				  content:    '/~popups/afmelden.cfm',
				  player:     "iframe",
				  height:     360,
				  width:      590
			 });
		});
	}
						   
});
Shadowbox.init({counterType:'skip'});
