function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
  {
  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  x=x.replace(/^\s+|\s+$/g,"");
  if (x==c_name)
    {
    return unescape(y);
    }
  }
}

function setCookie(c_name,value)
{
var CookieDate = new Date;
CookieDate.setFullYear(CookieDate.getFullYear( ) +1);
document.cookie=c_name + "=" + value+";expires="+CookieDate.toGMTString( )+";path=/";
}

$(document).ready(function() {

	test = getCookie("enquete");
	if (test == undefined) {
	
		$.fancybox(
		
		{
			'showCloseButton':  false,
			'width'         		: 500,
			'height'        		: 350,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type' :	'iframe',
			'href' : './enquete/vraag.html'
		}
		);
	
	}
    
    if (test=="ja") {
    
        $('.button_enquete').show();
    
    }

});

function clearCookie() {

    $.fancybox(
		
		{
			'showCloseButton':  false,
			'width'         		: 500,
			'height'        		: 350,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type' :	'iframe',
			'href' : './enquete/vraag.html'
		}
		);

}

function PopIt() {
		
			$.fancybox(
			
			{
				'showCloseButton':  false,
				'width'         		: 520,
				'height'        		: 500,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type' :	'iframe',
				'href' : './enquete/index.html'
			}
			);
		
}
 function UnPopIt()  { } 

