// JSON decoder:
function decodeJSON(JSONstr){
	eval("var obj = "+JSONstr);
	return obj;
}		

/* function to stop and start the Movie when viewing detail */
function thisMovie(movieName) {
	if(isIE()){
		return window[movieName]
 } else {
		return document[movieName]
	}
}

function isIE() {
	return navigator.appName.indexOf ("Microsoft") != -1;
	}

function makeCall(str) {
	if (navigator.appVersion.indexOf("Mac")!=1) {
		thisMovie("wgf").fromJS(str);
	}
	}

	
var SearchRules = {
	/*'#show-detail' : function(el) {
			el.onclick = function() {
					$('detail').show();
					return false;
				}
			}
	,*/

	}
	
	
function showColofon() {
	makeCall();
	$('lightbox').show();
	$('colofon-bg').show();
	$('colofon').show();
	}
	
function hideColofon(language) {
	fixMacFlash('hide',language)
	$('lightbox').hide();
	$('colofon-bg').hide();
	$('colofon').hide();
	makeCall();
	}
	
function showDisclaimer() {
	makeCall();
	$('lightbox').show();
	$('disclaimer-bg').show();
	$('disclaimer').show();
	}
	
function hideDisclaimer(language) {
	fixMacFlash('hide',language)
	$('lightbox').hide();
	$('disclaimer-bg').hide();
	$('disclaimer').hide();
	makeCall();
	}
	
function fixMacFlash(action,language) {
	if (navigator.appVersion.indexOf("Mac")!=-1) {
	if (action == 'show') {
		$('flashcontainer').hide();
		$('hoofdnav').hide();
		$('dummy_layer_'+language).show();
	} else {
		$('flashcontainer').show();
		$('dummy_layer_EN').hide();
		$('dummy_layer_NL').hide();
		
		$('hoofdnav').show();
	}
	}
}

	
//Behaviour.register(SearchRules);