/*
 * Omschrijving: Alle javascript code komt in dit bestand te staan.
 * Auteur: Dieter Bogaert voor Creative Designs BVBA
 */
 
 var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18806971-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

	window.onload = function(){
		$( '#mask' ).css({ 'opacity': '0.0', 'background-color': '#000', 'width':'100%', 'height':'100%', 'position':'fixed', 'top':'0', 'left':'0', 'z-index':'-1' } );
		$( '#dialoog' ).css( { 'opacity': '0.0', 'position':'fixed', 'background-color': '#F3F3F3', 'top':'50%','left':'50%', 'margin':'-75px 0 0 -300px', 'padding':'10px', 'text-align':'center', 'float':'left', 'height':'130px', 'width':'580px', 'display':'none', 'z-index':'9999' } );	
	}
	
	function nieuwsbrief( str, href ){
		$( '#mask' ).css( { 'z-index':'9998' } );
		$( '#mask' ).animate( { 'opacity':'0.7' }, 500 );
		$( '#dialoog_msg' ).html( str );
		$( '#dialoog' ).css({ 'display':'block' });
		$( '#dialoog' ).animate( { 'opacity':'1.0' }, 500 );
		$( '#dialoog_yes' ).attr( 'href', './nieuwsbrief' );
		return false;
	}
	function clicked( val ){
		if( val == 'ja' ){
			$( '#dialoog' ).css({ 'display':'none', 'opacity':'0.0' });
			$( '#mask' ).animate( { 'opacity':'0.0' }, 200 );
			return true;
		}else if( val == 'nee' ){
			$( '#mask' ).animate( { 'opacity':'0.0' }, 500, function(){ $( '#mask' ).css( { 'z-index':'-1' } ); } );
			$( '#dialoog' ).css({ 'display':'none', 'opacity':'0.0' });
			return false;
		}
	}
