<!--

var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length) {
	x = navigator.plugins["Shockwave Flash"];
	if (x) {
		flashinstalled = 2;
		if (x.description) {
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	} else {
		flashinstalled = 1;
	}
	if (navigator.plugins["Shockwave Flash 2.0"]) {
		flashinstalled = 2;
		flashversion = 2;
	}
} else {
	if (navigator.mimeTypes && navigator.mimeTypes.length) {
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		if (x && x.enabledPlugin) {
			flashinstalled = 2;
		} else {
			flashinstalled = 1;
		}
	} else {
		MSDetect = "true";
	}
}

if (top.frames.length!=0) {
	top.location=self.document.location;
}

function blurLinks() {
	if (document.all) {
		for (i=0 ; i<document.links.length ; i++) {
			document.links[i].onfocus=function() {
				this.blur();
			}
			document.links[i].onmouseover=function() {
				window.status='';
				return true;
			}
			document.links[i].onmouseout=function() {
				window.status='';
				return true;
			}
		}
	}
}

function getImgHeight(imgSrc) {
	var newImg = new Image();
	newImg.src = imgSrc;
	return newImg.height;
}

function setupPaper(modus) {
	// krantelementen uitrekken naar onderkant canvas
	if (!document.all) {
		var canvashoogte = window.innerHeight;
	} else {
		var canvashoogte = document.body.clientHeight;
	}
	var hoogteInGebruik = document.getElementById('kolom1').offsetHeight + getImgHeight('gfx/krantTitel.gif') + document.getElementById('kolommenLinksRepeat').offsetHeight;
	var ruimteOver = canvashoogte - hoogteInGebruik;
	if (modus == 'undefined' && ruimteOver <= 0) {
		// lage resolutie
		window.location = 'lowRes.php';
	} else {
		document.getElementById('krantRepeat').style.height = canvashoogte - getImgHeight('gfx/krantBoven.gif');
		document.getElementById('kolommenLinks').style.height = canvashoogte - getImgHeight('gfx/krantTitel.gif');
		document.getElementById('kolommenLinksRepeat').style.height = canvashoogte - (getImgHeight('gfx/krantTitel.gif') + document.getElementById('kolom1').offsetHeight);
		document.getElementById('kolommenRechts').style.height = canvashoogte - getImgHeight('gfx/krantTitel.gif');
	}
}
function showPaper() {
	document.getElementById('krantRepeat').style.visibility = "visible";
	document.getElementById('krant').style.visibility = "visible";
}

function writeFlash() {
	var alternateContent = ''+'<div id="noscript">&nbsp;<\/div>';
	if (flashinstalled == 2) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="100%" HEIGHT="100%">');
		document.write('<PARAM NAME="movie" VALUE="gfx/decoweda_sluiten.swf">');
		document.write('<PARAM NAME="loop" VALUE="false">');
		document.write('<PARAM NAME="menu" VALUE="false">');
		document.write('<PARAM NAME="quality" VALUE=best>');
		document.write('<PARAM NAME="scale" VALUE="exactfit">');
		document.write('<PARAM NAME="wmode" VALUE="transparent">');
		document.write('<PARAM NAME="bgcolor" VALUE="#FFFFFF">');
		document.write('<EMBED src="gfx/decoweda_sluiten.swf" loop=false menu=false quality=best scale=exactfit wmode=transparent bgcolor=#FFFFFF  WIDTH=100% HEIGHT=100% TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"><\/EMBED>');
		document.write('<noembed>'+alternateContent+'<\/noembed><\/OBJECT>');
	} else {
		if (flashinstalled == 1) { // geen flash
			document.write(alternateContent);
		} else { // onduidelijk of flash geactiveerd is
			document.write(alternateContent);
		}
		showPaper();
	}
}

//-->
