if (typeof(nl) == "undefined") {
	var nl = {}
}
if (typeof (nl.zonnevlechtopleidingen) == "undefined") {
    nl.zonnevlechtopleidingen = {}
}




nl.zonnevlechtopleidingen.ShowMovie = (function() {
	/* Start public */
	return {
		SetEvent: function(clickElement) {
			jQuery(clickElement).click( function() {
			    nl.zonnevlechtopleidingen.ShowMovie.Run();
				_gaq.push(['_trackEvent', 'Videos', 'Play', 'Zonnevlecht Bedrijfsfilm']);
				return false;
			} )
		},

		Run: function() {
            var popupConfig = {
                animationSpeed: 250,
                windowSelector: "#DivPopupWindow",
                backgroundSelector: "#DivPopupBackground"
            }
            
            var popup = new Estate.Popup(popupConfig);
            popup.Open();
			
			jQuery('html, body').animate( {scrollTop: 0}, 2000 )
            
            var flashvars = {};
            var params = {};
            params.wmode = "transparent";
            var attributes = {};
             
            if (swfobject.getFlashPlayerVersion().major >= 9) {
                swfobject.embedSWF("/Estate/Flash/videoplayer.swf?flvFile=/Estate/Flash/zonnevlecht_360p.flv&random=" + Math.random(), "movieContainer", "640", "400", "9.0.0", "/Estate/Flash/expressInstall.swf", flashvars, params, attributes);
            }
		}
	}
	/* End public */
})();

