$(document).ready(function() {
	$(function(){	// "active" als class toevoegen aan de actieve link in de navigatie
	   var path = location.pathname.substring(1);
	   if ( path ){
		 $('#navHolder a[@href$="/' + path + '"]').addClass('active');
	   }
	 });

	$.get("/data/token.ajax",function(txt){
		$(".securedForm").append('<input type="hidden" name="ts" value="'+txt+'" />');
	});

	$(".quote_icon").hover(function(){
		$(this).css("background-position","0px -15px");
	},function(){
		$(this).css("background-position","0px 0px");
	});


	$("#refCats div").hover(function(){
		$(this).children('a').addClass('hover');
	},function(){
		$(this).children('a').removeClass('hover');
	});

	$('a').click(function(){
		$(this).blur();
	});

});

function fadeInLarge(id){
	$('#largeImg'+id).fadeIn(500);
}
function fadeInThumbs(){
	$('#thumbs').fadeIn(500);
}



function getFlashMovieObject(movieName){
	if (window.document[movieName])
		return window.document[movieName];

	if (navigator.appName.indexOf("Microsoft Internet")==-1){
		if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName]; 
	}else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
		return document.getElementById(movieName);
}


function overlayOpen(book_id){
				// <![CDATA[
				var fo = new SWFObject("/bookengine/book.swf", "divje", "954", "568", "9", "#ffffff", true);
				fo.addParam("menu", "false");
				fo.addVariable("XMLfn","/bookengine/pagedata333.xml?book_id="+book_id);
				fo.write("divje");
				// ]]>
}
function overlayClose(elem){
//	alert('elem');
//	document.getElementById('closeBtn').click();
	history.go(-1);	// terug naar het overzicht, of terug naar de pagina met de link naar de brochure.
}


