/*	GRAPHIC DESIGN MUSEUM SCRIPTS
	Author:	Sebastiaan Smid, Netvlies
			
	----------------------------------------------------*/

	function init() {
		if(window.alphaPNG) alphaPNG();
		detect_flash();
		
		/*
		if($("#flash-banner").length > 0) {
			xml_file = escape('/xml/carrousel.xml.php');
			load_flash('flash-banner', '/swf/beyerd_carrousel.swf?xml_file='+xml_file, 174, 195, 9, 'swfbanner');
		}
		*/
		
		
	}
	
	$(function() { 
		$('.albumsitem').hover( 
			function () { 
				$(this).css({cursor: "pointer" });
			},
			function () {
				$(this).css({cursor: "auto" });
			}			
		);
		
		$('.albumsitem').click(function() {
			document.location = $(this).find("a:first").attr("href");
		});
		$('a[@rel*=lightbox]').lightBox({
			overlayBgColor: '#FFF',
			overlayOpacity: 0.7,
			imageLoading: '/img/lightbox/lightbox-ico-loading-netvlies.gif',
			imageBtnClose: '/img/lightbox/lightbox-btn-close-netvlies.gif',
			imageBtnPrev: '/img/lightbox/lightbox-btn-prev.gif',
			imageBtnNext: '/img/lightbox/lightbox-btn-next.gif',
			txtImage: 'Afbeelding',
			txtOf: 'van'
		});
	});
	
	
/* SHORT GENERIC ONLOAD BY BROTHERCAKE
----------------------------------------------------------------*/
	if(typeof window.addEventListener != 'undefined') {
	 window.addEventListener('load', init, false);
	} else if(typeof document.addEventListener != 'undefined') {
	 document.addEventListener('load', init, false);
	} else if(typeof window.attachEvent != 'undefined') {
	 window.attachEvent('onload', init);
	}



/* RUN INIT
----------------------------------------------------------------*/
	$(document).ready(function() { init(); });

