/* jquery Lightbox code */
$(function() {
	$('a.thickbox').lightBox();
});

function loadflash(movie,w,h) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + w + '" height="' + h + '" id="flmov" align="middle">\n')
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n')
	document.write('<param name="movie" value="' + movie + '" />\n')
	document.write('<param name="quality" value="high" />\n')
	document.write('<param name="bgcolor" />\n')
	document.write('<param name="wmode" value="transparent">\n')
	document.write('<embed src="' + movie + '" wmode="transparent" quality="high" width="' + w + '" height="' + h + '" name="flmov" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n')
	document.write('</object>\n')
}

function bookmarksite(title,url){
	if (window.sidebar) {
		window.sidebar.addPanel(title, url, "");
	}
	else if(window.opera && window.print){
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}
	else if(document.all) {
		window.external.AddFavorite(url, title);
	}
}

function showLoadingLayover(obj)
{
	$(obj).css({overflow:'hidden'});
	$('<div class="loadinglayover" style="z-index:99999;height:100%;width:100%;position:fixed;_position:absolute;top:0px;left:0px;background-color:#fff; text-align:center;">'
		+ '<img style="margin:100px 0 15px 0;" src="/gfx/loading.gif" alt="" />'
		+ '<h3>Even wachten a.u.b.</h3>'
		+ '<p><em>De pagina wordt geladen...</em></p> </div>')
		.css('opacity', 0.9)
		.appendTo(obj)
		.click(function(e){e.preventDefault();e.stopPropagation();return false });
}
function hideLoadingLayover(obj)
{
	$('div.loadinglayover', $(obj)).remove();
}
